obfuscated python

Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Fri, 17 Sep 1993 17:33:24 -0400

Of course, in the intentional obfuscation category,
there is always:

>>> a = range( 1, 11 )
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

>>> ( eval( 'a.'+[].__methods__[-2] )() or a )

# ( take a guess ... )

[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

or maybe:

>>> import sys
>>> eval( eval( 'dir()[-1]', sys.__dict__ ), sys.__dict__ )


'0.9.9 (Sep 7 1993)'

And numerous other ways to avoid actually naming the act!

- Steve M.