I think in some cases, it would be better to explain why the PHP function was a bad idea to begin with, rather than letting people bring it's mess over to Python. For example, Python doesn't need dumb shit like nl2br() [1].<p>[1] <a href="http://www.php2python.com/wiki/function.nl2br/" rel="nofollow">http://www.php2python.com/wiki/function.nl2br/</a>
Thought for a second that somebody had invented a Python library with functions that work identically with their PHP counterparts. Like php.js [1].<p>Turns out it's much more than that. Rather than handing out ready-made functions to make Python behave like PHP, this site actually teaches you how to write Python like a real Pythonista. For example, str[2:5] instead of substr(str, 2, 3). Well done!<p>[1] <a href="http://phpjs.org/" rel="nofollow">http://phpjs.org/</a>
I actually found this quite useful today. A rare case where I needed to translate the Wordpress post decoding function to get the rendered HTML form from a post into Python. Soon pelican's importer will be better able to preserve content from Wordpress blogs.
I was pleasantly surprised to see this wasn't a link to php.py, the somewhat bizarre port of the PHP standard library to python:<p><a href="http://code.google.com/p/php-py/source/browse/trunk/src/php/php.py" rel="nofollow">http://code.google.com/p/php-py/source/browse/trunk/src/php/...</a>
Just like with PHPJS (an effort to bring PHP standard library to JS) there are missing implementations:<p><a href="http://www.php2python.com/wiki/function.mt-rand/" rel="nofollow">http://www.php2python.com/wiki/function.mt-rand/</a>
PHP may have its flaws, but Python does not seem to be the answer either. By the way, have they already found a fail-safe way to visually represent the difference between a space and a tab? Since space is a keyword and a tab too, how does the programming with invisible differences in whitespace combinations work? Does it already support all possible unicode whitespace? I guess I should ask a high priest in Python whitespace calculus ... Why not simplify the whole thing and use brainfuck characters instead?