This is an old copy of the Python FAQ. The information here may be outdated.

Category: comments

This index is updated by an off-site script, at irregular intervals.

87 comments on 48 articles:

Can I create an object class with some methods implemented in C and others in Python (e.g. through inheritance)? (2)
Can Python be compiled to machine code, C or some other language? (2)
How can I create a stand-alone binary from a Python script? (1)
How can I find the methods or attributes of an object? (1)
How do I avoid blocking in the connect() method of a socket? (1)
How do I check if an object is an instance of a given class or of a subclass of it? (1)
How do I convert a string to a number? (1)
How do I create a multidimensional list? (2)
How do I delete a file? (And other file questions…) (1)
How do I emulate os.kill() in Windows? (1)
How do I escape SQL values when using the DB-API? (2)
How do I freeze Tkinter applications? (1)
How do I interface to C++ objects from Python? (1)
How do I make a Python script executable on Unix? (1)
How do I make python scripts executable? (1)
How do I modify a string in place? (1)
How do I run a subprocess with pipes connected to both input and output? (1)
How do I send mail from a Python script? (1)
How do I specify hexadecimal and octal integers? (1)
How do I tell “incomplete input” from “invalid input”? (1)
How do you set a global variable in a function? (1)
How do you specify and enforce an interface spec in Python? (1)
__import__(‘x.y.z’) returns module ‘x’; how do I get z? (1)
(A Semi-Official) Python FAQ Zone (3)
Why is Python installed on my machine? (1)
Is it reasonable to propose incompatible changes to Python? (1)
Is there a tool to help find bugs or perform static analysis? (2)
My class defines __del__ but it is not called when I delete the object. (1)
Suggestions (14)
Tutor FAQ Suggestions (3)
How do I make public and private attributes and methods in my classes? (1)
I need help; I’m getting an error in my program. What should I do? (1)
I’m learning Python. What should I program? (2)
What is ‘if __name__ == “__main__”’ for? (1)
What’s the best editor/IDE for Python? (1)
What does ‘UnicodeError: ASCII decoding error: ordinal not in range(128)’ and ‘UnicodeError: ASCII encoding error: ordinal not in range(128)’ mean? (1)
What is a class? (2)
What is self? (3)
What kinds of global value mutation are thread-safe? (7)
What module should I use to help with generating HTML? (2)
What new developments are expected for Python in the future? (1)
What platform-specific GUI toolkits exist for Python? (1)
Why are default values shared between objects? (1)
Why are Python strings immutable? (1)
Why can’t raw strings (r-strings) end with a backslash? (1)
Why does -22 / 10 return -3? (3)
Why must ‘self’ be used explicitly in method definitions and calls? (5)
Writing C is hard; are there any alternatives? (1)


A Django site. rendered by a django application. hosted by webfaction.