mypy

Category: General

Debugging Python code using pdb: a crash course.

pdb (Python Debugger) is a standard debugging utility for Python. If you have been using print statements to debug your Python code so far then you should definitely invest in learning this tool as it will save you time in the long run.  Let's consider following Python code...

Workaround for Python bug: 'ascii' codec can't encode character u'\xa0' in position 111: ordinal not in range(128)

Have you ever needed to read unicode data file from Python? If so, you know that it is harder than it sounds. Even if you set your environment (e.g. export LANG=fr_FR.UTF8) to use utf-8 Python as of 2.7.1 still might not pick up this and will try to read file in ascii resulting...

Python vs. Haskell vs. PHP - real world performance

Recently I had to optimize a legacy PHP cgi application, which worked fine but was too slow for its purpose. The main bottleneck was in selecting matching lines from a file containing about 15000 lines. Not finding a way to optimize PHP code I decided to change the language. Two candidates...

Python 3000

Python 3000 is coming.  Guido van Rossum explains what Python developer should expect from Python 3000 in his blog article and keynote . Python 3000 is not compatible with current Python 2. Most changes represent language clean-up and removal of deprecated features...
 
Accessible and Valid XHTML 1.0 Strict and CSS
Powered by LT - Design by BalearWeb