Perl in Python
The Zen of Python encourages us to write clean code, and there are techniques available to help you make ugly code beautiful - decorators, metaclasses, even monkeypatching can be used to shift complexity away from the code you're writing and leave your logic clear and uncluttered.
Perl in Python
I introduced my new Perl module for Python - bringing the elegance of Perl's native regular expression syntax into your daily python code:
$ pip install perl
$ python
>>> import perl
>>> value = "Hello there"
>>> if value =~ /^hello (.+?)$/i:
... print("Found greeting:", $1)
...
Found greeting: there
>>> value =~ s/there/world/
>>> print(value)
Hello world
It is, by any measure, an abomination - an exercise in what you definitely shouldn't do, even though Python lets you.



