Moving from Perl to Python
You have been programming in Perl for years? And you started programming Python? Then you will often ask yourself how a certain Perl paradigm is handled in Python. These pages are meant to help you find the appropriate pythonism for a certain task.
Common tasks:
Perl |
Python |
'a' .. 'z' |
import string; string.lowercase |
0 .. 9 |
xrange(10) |
mkdir() |
import os; os.mkdir() |
|
import os; os.makedir() |
