Python Patterns & Practices

Find The Best Answers To Your Python Coding Problems

pointers - Using python ctypes to get buffer of floats from shared library into python string

signal.alarm replacement in Windows [Python]

javascript - What's easiest way to get Python script output on the web?

python - Problem using py2app with the lxml package

Python : is it ok returning both boolean and string?

python - What is a good tutorial on the QuickTime API for MS Windows?

Creating lists using yield in Ruby and Python

django - How to make a singleton class with Python Flup fastcgi server?

python: finding a missing letter in the alphabet from a list - least lines of code

python - Pygame Invalid Syntax I just can't figure out

parameters - Python Newbie: Returning Multiple Int/String Results in Python

soap - How to access Yahoo Enterprise Web Services using Python SOAPpy?

python - How can I get the width of a wx.ListCtrl and its column name?

python - How should I conditionally assign based on the existence of a dictionary key?

Python list of objects with random attributes

python - Excluding a top-level directory from a setuptools package

python - Monitoring internet activity

Python: load words from file into a set

python - How do I schedule a process' termination?

python - How can I get useful information from flash swf files?

file io - Python: Prevent fileinput from adding newline characters

Do Python lists have an equivalent to dict.get?

python - Concurrency implications of EAFP/LBYL

What host to use when making a UDP socket in python?

draw text with GLUT / OpenGL in Python

python - Select Distinct Years and Months for Django Archive Page

How can I convert a character to a integer in Python, and viceversa?

What's a good two-way encryption library implemented in Python?

Where can i get free GSM libraries/components for delphi or python?

file - Directory checksum with python?

What's the best way to replace the ternary operator in Python?

python - Django templates stripping spaces?

iterator - Iterability in Python

How do I rewrite $x = $hash{blah} || 'default' in Python?

python - Tired of ASP.NET, which of the following should I learn and why?

php - What payment processing frameworks, like ActiveMerchant, are available for other languages?

python - String inside a string

python - Loading files into variables

python - How to properly ignore exceptions

Communicating with a running python daemon

sql - Using "like" in a cursor/query with a parameter in python (django)

python - Is there any particular reason why this syntax is used for instantiating a class?

python - How can I add non-sequential numbers to a range?

curl - HTTP Authentication in Python

java - Print space after each word

decorator - In Python, is it possible to access the class which contains a method, given only a method object?

iterator - Python: Elegant way of dual/multiple iteration over the same list

python - soaplib with mod_wsgi/cherrypy

multithreading - Python/wxPython: Doing work continuously in the background

python - GitPython and sending commands to the Git object

Why are Python objects of different types ordered by type names?

python - Does any one know of an RTF report generator in Django?

Convert unicode codepoint to UTF8 hex in python

In Python, how do I take a list and reduce it to a list of duplicates?

python - Removing specific items from Django's cache?

python - PyWinAuto still useful?

Python - list transformation

python - django to send AND receive email?

Where can I find good python Twisted framework documentation, blog entries, articles, etc?

Creating a wrapper for a C library in Python

Problem using Python comtypes library to add a querytable to Excel

Function definition in Python

How to install cogen python coroutine framework on Mac OS X

Python lib to Read a Flash swf Format File

python - How to catch str exception?

python - How do i use Django session to read/set cookies?

python - Timesheet Program to Track Days/Hours worked?

easy install - Does python's pip support http authentication?

python - wxPython: Making a fixed-height panel

python convert microsoft office docs to plain text on linux

regex - Find Hyperlinks in Text using Python (twitter related)

Print out list of function parameters in Python

weak references - weakref list in python

Numbers Comparison - Python Bug?

python - mercurial + OSX == fail? hg log abort: Is a directory

python - How can I use numpy.correlate to do autocorrelation?

windows - Handling file attributes in python 3.0

django - Converting to safe unicode in python

python - How do I apply Django model Meta options to models that I did not write?

php - Implementation: How to retrieve and send emails for different Gmail accounts?

python - Use case for nested/multiple list comprehensions or generator expressions. When is it more elegant?

Replace html entities with the corresponding utf-8 characters in Python 2.6

python - How to put comments in Django templates?

Why did Python 2.6 add a global next() function?

how can i figure if a vim buffer is listed or unlisted from vim's python api?

python - Django Model set foreign key to a field of another Model

database - Fill Django application with data using very large Python script

python - How do I put a scrollbar inside of a gtk.ComboBoxEntry?

Anyone use Pyjamas (pyjs) python to javascript compiler (like GWT..)

How do languages such as Python overcome C's Integral data limits?

python - PyUnit: stop after first failing test?

Help Me Figure Out A Random Scheduling Algorithm using Python and PostgreSQL

python - Doctest for dynamically created objects

Seting up Python on IIS 5.1

Python's most efficient way to choose longest string in list?

python - How can I auto-fill a paragraph in Eclipse?

python - Can I get rows from SQLAlchemy that are plain arrays, rather than dictionaries?

A trivial Python SWIG error question

Writing Digg like system in django/python

debugging - How do you pass script arguments to pdb (Python)?

regex - python regular expression for retweets

Python Class Members Initialization

python - regular expression help with converting exp1^exp2 to pow(exp1, exp2)

python - Pythonic Way to Initialize (Complex) Static Data Members

python and symbian - keystroke capture

python - Clashing guidelines

python - How can domain aliases be set up using Django?

winapi - querying through wmi & win32.client objects with python

python - How to I get scons to invoke an external script?

Python script at Visual C++ 2005 build step not spawning other processes

python - Why is wx.SingleChoiceDialog not subclassing properly

How to make a list comprehension with the group() method in python?

Python and MySQL: is there an alternative to MySQLdb?

python - pycurl: RETURNTRANSFER option doesn't exist

dictionary - What is the best ordered dict implementation in python?

tcp - db connection in python

design patterns - Hierarchy / Flyweight / Instancing Problem in Python

python - How to configure IPython to use gvim on Windows?

does someone know how to show content on screen (covering up any window) using Ruby or Python?

php - How do I set Session name with Cherrypy?

python - separate threads in pygtk application

python - Getting file path of imported module

python - Specifying different template names in Django generic views

function - python instance variables as optional arguments

python - Sending Rich Text Format email using Outlook 2003

python - wxPython auinotebook.GetSelection() return index to the first page

python - WinXP button-style with wxPython

php - mod_php vs mod_python

class - What is the purpose of python's inner classes?

python - Can I segment a document in BeautifulSoup before converting it to text based on my analysis of the document?

python - Identifying a map in groovy

postgresql - python postgres cursor timestamp issue

unit testing - Python - test that succeeds when exception is not raised

resources - Is it safe to yield from within a "with" block in Python (and why)?

python - How can I record live video with gstreamer without dropping frames?

python - Looking for a recommendation of a good tutorial on best practices for a web scraping project?

python - Find intersection of two nested lists?

Python process management

Python generates an IO error while interleaving open/close/readline/write on the same file

python - File handling in Django when posting image from service call

python - wxPython: Making a scrollable DC

Python's eval() and globals()

python - Creating a new terminal/shell window to simply display text

Python 3: formatting zip module arguments correctly (newb)

python - Django Template if tag not working under FastCGI when checking bool True

socket trouble in python

ctypes - Some help with some Python code

Python script - SCP on windows

python - In Django, how can you change the User class to work with a different db table?

Is it possible to replace a Python function/method decorator at runtime?

python - How do I create a unique value for each key using dict.fromkeys?

Trapping MySQL Warnings In Python

python - distutils: How to pass a user defined parameter to

python - numpy linear algebra basic help

python - splitting a ManyToManyField over multiple form fields in a ModelForm

How to re import an updated package while in Python Interpreter?

python - keyerror inside django model class __init__

command line - How do I format positional argument help using Python's optparse?

c# - XML schema

python - How can I build multiple submit buttons django form?

port python code to javascript

python - Using 'old' database with django

winapi - Is there any preferable way to get user/group information from an Active Directory domain in Python?

types - python dealing with Nonetype before cast\addition

python, regex split and special character

windows - Example of how to use msilib to create a .msi file from a python module

Rename files, Python/Jython

python - Using BeautifulSoup to find a HTML tag that contains certain text

Python file modes detail

Most Efficient Way to Find Whether a Large List Contains a Specific String (Python)

python - How to check if an RGB image contains only one color?

python - can you distinguish between a test & a variable setting?

How can I find where Python is installed on Windows?

iteration - Python "round robin"

Python Hash Functions

How to convert python date format to 10-digit date format for mysql?

What's the best online tutorial for starting with Spring Python

python - Algorithm: How to Delete every other file

macos - Highlighting trailing whitespace in Textmate for Python?

Python: File IO - Disable incremental flush

Equivalent for LinkedHashMap in Python

python - How do I forward a complete email without downloading attachments?

operator overloading - Is there a way to overload += in python?

Python SVN bindings for Windows

multithreading - how to put a function and arguments into python queue?

python - A simple freeze behavior decorator

python - Sorting a list of objects by attribute

Can 3D OpenGL game written in Python look good and run fast?

unit testing - condition coverage in python

python - Multiple overlapping plots with independent scaling in Matplotlib

python - How to save an xml file to disk?

if statement - "else" considered harmful in Python?

Python - Acquire value from dictionary depending on location/index in list

What's wrong with this Python code?

python - Dynamically creating a menu in Tkinter. (lambda expressions?)

httpwebrequest - Timeout on a HTTP request in python

python - verbose_name_plural unexpected in a model?

python - How to convert html entities into symbols?

conditional - "Pythonic" equivalent for handling switch and multiple string compares

python - Django Forms, set an initial value to request.user

Best way to integrate Python and JavaScript?

python - How do I notify a process of an SQLite database change done in a different process?

date - How can I perform divison on a datetime.timedelta in python?

python - Provide discount to preferred customer with Satchmo?

Python/urllib suddenly stops working properly

python - Can pysvn 1.6.3 be made to work with Subversion 1.6 under linux?

python - Breaking out of nested loops

Intercepting changes of attributes in classes within a class - Python

python - how to isinstance(x, module)?

logging - How should I log while using multiprocessing in Python?

python - Visual Editor for Django Templates?

Is there a cross-platform python low-level API to capture or generate keyboard events?

sorting - How can I cluster a graph in Python?

reflection - How can I get the name of a python class?

user interface - Why can I not paste the output of Pythons REPL without manual-editing?

Django, Python Loop Logic Problem

Python vs. C# Twitter API libraries

security - Securely Erasing Password in Memory (Python)

Advice for C# programmer writing Python

Are there any built-in cross-thread events in python?

multithreading - How can I profile a multithread program in Python?

Unable to set iPython to use 2.6.1 Python

python - Using exec() with recursive functions

python - How do you grep through code that lives in many different directories?

python - Data Synchronization framework / algorithm for server<->device?

Python: Downloading a large file to a local path and setting custom http headers

python - How to create a decorator that can be used either with or without parameters?

python - Simple List of All Java Standard Classes and Methods?

python - Display some free text in between Django Form fields

python - Email integration

destructor - How do I correctly clean up a Python object?

python - Dynamically change the choices in a wx.ComboBox()

Need a simple "Hello World" example using the Webkit library in Python

Transferring Python modules

Python program using os.pipe and os.fork() issue

python - Can anyone point out the pros and cons of TG2 over Django?

Python: Plugging into a separate process

Python and text manipulation

Effective way to iteratively append to a string in Python?

Workflow for configuring apache on a webfaction account via ssh and ftp. (django/python)

class attributes - Redirecting function definitions in python

How do I generate test data for my Python script?

c++ - How to tell whether a file is executable on Windows in Python?

python - How to unlock an sqlite3 db?

python - What to do with "The input line is too long" error message?

python - XPath - How can I query for a parent node satisfying an attribute presence condition?

windows - Writing to the serial port in Vista from Python

python - Problems using nose in a virtualenv

Python Desktop Integration - Drag and drop

Writing a binary buffer to a file in python

python - escape problem in django templates

python - Full examples of using pySerial package

PIR sensors + Arduino + Python + email alerts

Beginning Windows Mobile 6.1 Development With Python

python - How can I convert Unicode to uppercase to print it?

Python introspection: How to get an 'unsorted' list of object attributes?

python - Getting pywin32 working on Windows XP Microsoft Excel 2007

How do I write a float list of lists to file in Python

Create static graphics files (png, gif, jpg) using Ruby or Python

python - Unit testing with nose: tests at compile time?

Python Virtual Machine architecture diagrams/references

python - Django: Overriding __init__ for Custom Forms

python - Check if value exists in nested lists

pty - Python os.forkpty why can't I make it work

learning python 3.0 on ubuntu

tell whether python is in -i mode

python - Installing ipython with readline on the mac

python - What is a clean "pythonic" way to implement multiple constructors?

How to get last items of a list in Python?

python - How to generate a file with DDL in the engine's SQL dialect in SQLAlchemy?

docstring - How to comment out a block of code in Python

python - How to get a subclassed object of a django model

python - Pythonic way to split comma separated numbers into pairs

sorting a list of dictionary values by date in python

web services - Is there any good Python tutorial/guide to use XML-RPC with API?

python - How do I upload a file with mod_python?

regex - Splitting out the output of ps using Python

macos - Tab-completion in Python interpreter in OS X Terminal

wav - Detect & Record Audio in Python

python - Can a neural network be used to find a functions minimum(a)?

python - Can I override the html_name for a tabularinline field in the admin interface?

python - In what way would you present an algorithm to detect collisions between different objects?

Good Python modules for fuzzy string comparison?

Python While Loop Condition Evaluation

How would one build an smtp client in python?

python - How do you filter a string such that only characters in your list are returned?

php - Is it possible to implement properties in languages other than C#?

debugging - Python: How to detect debug interpreter

Is there any linux distribution that comes with python 2.6 yet?

Is it possible to create anonymous objects in Python?

Which version of python added the else clause for for loops?

python - Dynamic use of a class method defined in a Cython extension module

unit testing - which build tool(s) do you recommend for python?

python - What is an elegant way to find versions of packages on a pypi package index?

python - How to modify choices on Django Admin

python - Finding all *rendered* images in a HTML file

python - How to write PNG image to string with the PIL?

python class __getitem__ negative index handling

python - SOAPpy - reserved word in named parameter list

python - What's the nearest equivalent of Beautiful Soup for Ruby?

python - Simultaneously inserting and extending a list?

A data-structure for 1:1 mappings in python?

python - How to decorate a class?

python - Satchmo donations

python - TLS connection with timeouts (and a few other difficulties)

python - How can I remove text within parentheses with a regex?

Any alternatives to IronPython, Python for .NET for accessing CLR from python?

python - How to make pdb recognize that the source has changed between runs?

Scheduling a JasperServer Report via SOAP using Python

Integrating MySQL with Python in Windows

How to generate XML documents with namespaces in Python

python - Django: Access primary key in models.filefield(upload_to) location

python - How is string.find implemented in CPython?

Help translation PYTHON to VB.NET

Examples for string find in Python

unzip - Unzipping directory structure with python

Python distutils, how to get a compiler that is going to be used?

Is there a way to build a C-like DLL from a Python module?

python - Which PEP governs the ordering of dict.values()?

python - How do you deploy django applications for windows?

How to call a Perl script from Python, piping input to it?

Validating Oracle dates in Python

windows - Changing prompt working directory via Python script

python - benchmarking PHP vs Pylons

user interface - Indentation in a Python GUI

Python and Collective Intelligence

python - Discussion of multiple inheritance vs Composition for a project (+other things)

serialization - Python: Incrementally marshal / pickle an object?

refactoring - Python tool that builds a dependency diagram for methods of a class

python - Nullable ForeignKeys and deleting a referenced model instance

stdin - Python equivalent of Perl's while (<>) {...}?

macos - Which version of python is currently best for os x?

python - BWSplitView and PyObjc

In Python 2.6, How Might You Pass a List Object to a Method Which Expects A List of Arguments?

python - Setting object owner with generic create_object view in django

Bimodal distribution in C or Python

Python, __init__ and self confusion

Python Module by Path

python - Django: Redirect to previous page after login

python - Game map from Code

Algorithm for neatly indenting SQL statements (Python implementation would be nice)

python - Implementing a node-based graphical interface?

Running unit tests with Nose inside a Python environment such as Autodesk Maya?

encryption - Can I encrypt email and decrypt it back using python default library set?

Python: adding namespaces in lxml

Trappings MySQL Warnings on Calls Wrapped in Classes -- Python

Populating a list/array by index in Python?

python - Whats the difference between list[-1:][0] and list[len(list)-1]?

What is the quickest way to HTTP GET in Python?

multithreading - How to make two python programs interact?

python - url method of ImageField returns a non-Url value - Django

How do I iterate over a Python dictionary, ordered by values?

PHP vs. long-running process (Python, Java, etc.)?

python - Django caching - can it be done pre-emptively?

factory - Python dynamic function names

urllib2 - Downloading file using post method and python

How to hash a large object (dataset) in Python?

How would you write a @debuggable decorator in python?

introspection - python: determine if a class is nested

Python "protected" attributes

javascript - How can you make a vote-up-down button like in Stackoverflow?

indexing - python create slice object from string

debugging - How do I disassemble a Python script?

c - problems Wrapping Patricia Tries using Swig, python

FastCGI C++ vs. A Script Language (PHP/Python/Perl)

python - Running unittest.main() from a module?

python - str.startswith() not working as I intended

python - Django Template - New Variable Declaration

python - how can I debug more than one script in pyscripter?

ironpython - Python 2.5.2 continued

python - Sphinx automated image numbering/captions?

metaprogramming - Reversible version of compile() in Python

indexing - Python list.index throws exception when index not found

performance - Why is looping over range() in Python faster than using a while loop?

python - import statement fails for one module

file - Using MultipartPostHandler to POST form-data with Python

python - How to display errors to the user while still logging it?

python - Django syncdb locking up on table creation

python - Changing the title of a Tab in wx.Notebook

python - How to query filter in django without multiple occurrences

theory - Newbie teaching self python, what else should I be learning?

How do I tell which Python interpreter I'm using?

python - How to get field names when running plain sql query in django

python - Is windows's setsockopt broken?

Python: How to extract variable name of a dictionary entry?

python - How can I make the Django contrib Admin change list for a particular model class editable with drop downs for related items displayed in the listing?

Unable to put Python code to Joomla

CGI & Python - return choice to python script

upload - Problem with python curl while submitting file

python - Error while deploying Django on Apache

How to install SimpleJson Package for Python

python - What is the best way to access stored procedures in Django's ORM

python - Paypal NVP API with Django

python method to extract content (excluding navigation) from an HTML page

sql - What are the viable database abstraction layers for Python

c++ - Learning Graphical Layout Algorithms

python - Pygtk graphics contexts and allocating colors

object - min heap in python

multithreading - Self-repairing Python threads

javascript - How to limit choice field options based on another choice field in django admin

How can I get the results of a Perl script in Python script?

unicode - Python IRC bot and encoding issue

Strengths of Shell Scripting compared to Python

python - can pylons + authkit ignore particular responses with 401 status?

Python "Task Server"

caching - Does the Python library httplib2 cache URIs with GET strings?

.net - IronPython - Convert int to byte array

wsdl - What's wrong with my Python SOAPpy webservice call?

Server Side Google Markers Clustering - Python/Django

Python and sockets +upnp

python - Why does windows give an sqlite3.OperationalError and linux does not?

python - Can't subtract offset-naive and offset-aware datetimes

Parsing HTML in Python

python - Wrapping a script with subprocess.Popen()

If monkey patching is permitted in both Ruby and Python, why is it more controversial in Ruby?

How to consume XML from RESTful web services using Django / Python?

python - How can I script the creation of a movie from a set of images?

Is there anything in the Django / Python world equivalent to SimplePie Plugin for Wordpress?

python - Queue.Queue vs. collections.deque

python - mod_wsgi yield output buffer instead of return

python - DBus interface properties

python - How do you open and transfer a file on the filesystem in mod_python?

python - Publish feeds using Django

Python's subprocess.Popen returns the same stdout even though it shouldn't

code analysis - Tool to determine what lowest version of Python required?

python - Numpy: Should I use newaxis or None?

Best way to convert a Unicode URL to ASCII (UTF-8 percent-escaped) in Python?

python - How do I enable SMS notifications in my web apps?

python - Correlate one set of vectors to another in numpy?

python - How to extract nested tables from HTML?

Passing functions with arguments to another function in Python?

multithreading - Is there an easy way to tell how much time is spent waiting for the Python GIL?

exception - Locating (file/line) the invocation of a constructor in python

python - How do you use FCKEditor's image upload and browser with mod-wsgi?

Packaging Ruby or Python applications for distribution?

python - How to compare value of 2 fields in Django QuerySet?

python versus java runtime footprint

join list of lists in python

multithreading - Python embedding with threads -- avoiding deadlocks?

python - Best practice for using assert?

python - Why is my PyObjc Cocoa view class forgetting its fields?

django - Merge two lists of lists - Python

python - How to perform common post-initialization tasks in inherited classes?

Efficient way of creating recursive paths Python

My first python program: can you tell me what I'm doing wrong?

bash - Execution of a OS command from a Python daemon

How to convert datetime to string in python in django

python - copy worksheet from one spreadsheet to another

matrix - Matrices in Python

objective c - Converting to Precomposed Unicode String using Python-AppKit-ObjectiveC

Python - Possible to force raise exceptions regardless try/except blocks?

python - PyQT combobox only react on user interaction

persistence - Why can't environmental variables set in python persist?

destructor - Method that gets called on module deletion in Python

java - `final` keyword equivalent for variables in Python?

python - OptionParser - supporting any option at the end of the command line

python - pygtk gui freezes with pyjack thread

Python list comprehension - access last created element?

python - A wxPython timeline widget

python - Accessing MultipleChoiceField choices values

python - Connect to a running instance of Visual Studio 2003 using COM, build and read output

c++ - How can I enumerate/list all installed applications in Windows XP?

python - Populating form field based on query/slug factor

python - Returning an object vs returning a tuple

Face-tracking libraries for Java or Python

python - String manipulation in Cython

Launching a .py python script from within a cgi script

windows - Python: Getting file modification times with greater resolution than a second

python - SQLAlchemy - MappedCollection problem

python - Changing user agent on urllib2.urlopen

python - Notifying container object: best practices

python - Best way to encode tuples with json

python - how to get the function declaration or definitions using regex

python - Benefit of installing Django from .deb versus .tar.gz?

python - Remove lines from file

Is Python faster and lighter than C++?

How can I talk to UniProt over HTTP in Python?

python - psycopg2 "TypeError: not all arguments converted during string formatting"

python - Flash-based file upload (swfupload) fails with Apache/mod-wsgi

informix - Why Python informixdb package is throwing an error!

How epoll detect clientside close in Python?

python - What HTTP framework to use for simple but scalable app?

data structures - Is a list or dictionary faster in Python?

How can I print entity numbers in my xml document instead of entity names using python's lxml?

python - Django equivalent of PHP's form value array/associative array

python - How do I get the dimensions of the view (not obstructed by scrollbars) in a wx.ScrolledWindow?

python - How to Change Mouse Cursor in PythonCard

C# Nmath to Python SciPy

python - What are some recommended resources and tutorials for learning the VTK library toolkit?

python - How do I iterate over all lines of files passed on the command line?

python - Getting Aspen and Gheat on Windows working

Looking for a PHP and/or Python RAD

python - retrieve bounding box of a geodjango multipolygon object

python dict update diff

python - Missing 'Median' Aggregate Function in Django?

What's going on with the lambda expression in this python function?

python - Nice IDE with GUI designer for wxPython or Tkinter

python - Operation on every pair of element in a list

python - wxPython: Drawing inside a ScrolledPanel

Database Reporting Services in Django or Python