Guides and How-Tos¶
A collection of practical guides written by community members over the years. These cover specific tasks – packaging, exception handling, building executables, working with Tkinter – rather than teaching Python from scratch. Some pages are well-maintained; others are historical artifacts from the MoinMoin wiki era. Check dates and versions before following any advice here too literally.
General How-To Collections¶
Getting Help¶
Asking for Help – advice on how to ask good Python questions and where to ask them
How to start learning Python? – community suggestions for new learners looking for direction
Specific Tasks¶
Handling Exceptions – patterns and practices for exception handling in Python
How to Edit Python Code – history and overview of editors and IDEs for Python
How to Make exe on Windows – building standalone Windows executables from Python scripts
How to Publish Python Modules – getting your code onto PyPI (redirects to current packaging docs)
How to Use gzip with pickle – compressing pickled data using the gzip module
Mutable Buffers in Python 2.3 – working with mutable byte buffers in older Python
Tkinter and Tcl¶
How Tkinter Can Exploit Tcl – using Tcl features and extensions from within Tkinter
Code Snippets¶
Powerful Python One-Liners – collected one-liners with explanations
Powerful Python One-Liners – single-page version of the one-liner collection
C/C++ Integration¶
Boost.Python – using Boost.Python to wrap C++ code for use in Python