Python - Tag
2015
-
▸
Python 3.5 and Django 1.7's HTMLParseError
Python 3.5 removed html.parser.HTMLParseError which breaks Django 1.7. Workaround involves upgrading Django or applying the django-autoconfig patch to fix the compatibility issue.
2014
-
▸
Python's venv problem with ensurepip in Ubuntu
Fix for Python 3.4 venv issues on Ubuntu 14.04. Workaround involves creating venv without pip first, then manually installing pip using get-pip.py bootstrap script.
2013
-
▸
Python Dictionary Comprehension
Python dictionary comprehensions from Python 3 backported to 2.7. Shows conversion from list of lists, conditional key/value expressions, and performance comparison to loops.
-
▸
Zen of Python by Tim Peters
The Zen of Python - Tim Peters' famous guiding principles for Python design. Displays all 19 aphorisms including 'Beautiful is better than ugly' and 'There should be one obvious way to do it'.
-
▸
SPOJ Best Solutions for The Double Helix
Celebrates the author's Python solution being featured in SPOJ's Top 20 for The Double Helix problem. A competitive programming milestone.
-
▸
Python equivalent of C's freopen
Shows how to redirect stdin and stdout in Python to work with files, similar to C's freopen(). Enables automating interactive programs in competitive programming.
-
▸
MongoDB Aggregation Framework Basics Explained
Introduction to MongoDB aggregation framework with SQL equivalents. Covers $match, $project, $group, $sort pipeline operators with examples comparing to SQL queries.
-
▸
Installing python-ldap in Ubuntu
Step-by-step guide to install python-ldap in Ubuntu. Details required packages: python-dev, libldap2-dev, and libsasl2-dev to resolve missing header file errors.
-
▸
Check python package version in program
Shows how to check Python package versions at runtime using pkg_resources. Demonstrates getting both the full distribution object and just the version string.
-
▸
Deploying web.py application in Apache with mod_wsgi
Comprehensive guide to deploy web.py applications on Apache using mod_wsgi. Covers installing Apache, Python with shared libraries, mod_wsgi configuration, and common pitfalls.
-
▸
Installing python-ldap in cygwin
Installing python-ldap in Cygwin requires multiple dependencies. Details the installation process including the required libraries and common errors encountered during the build process.