I love obfuscated python!

Jesse W jessw at loop.com
Mon Feb 4 02:47:31 EST 2002


To all Pythonicks-

	Horrey!  I have finally solved the piece of obfuscated python 
posted by Greg Stein in November of 1998.*  I stumbled on it 
searching through Google's archive and decided to try to solve it.  I 
noticed there was a solution, but I have not yet looked at it.
	That code is simply amazing.  Not only does it obfuscate itself, 
but it obfuscates it's obfuscation... (I won't say more because it 
would spoil it for others.  See the above mentioned solution message 
if you are interested)
	I really believe that obfuscated code is a wonderful and 
honorable hackish art form.  It shows off the skill of the creator, and 
rewards the solver with a distinct feeling of accomplishment.  Like 
many hacker traditions, it is a showing of skill, but does not put 
down those who it is shown too(as long as they put in the effort to 
solve it)  As the subject lines says, "I love obfuscated python!"

		Glory and love to Python and all it's works,
				Jesse Weinstein

#The horrifying code itself:
f=lambda 
x=['31312405171810171211313126112','7189749374747628707','96
26701', 
'8873809195908988937382747529513','80797974818230697965292
2711', '25141421122626106','hi there!'], z=globals(),y= lambda x: 
reduce(lambda x,y:x+y, map(lambda x,y=x,z=lambda 
x:int(x[:2]):chr((z(y[x*int(y[-5]):])^z(y[-4:]))+z(y[-4:])),range(int(x[-
2:])))):map(lambda 
z,x=y,y=x,w=z:z(z(w[x(y[2])],x(y[3]))[0],x(y[5]))(x(y[4])),[vars(z[y(x[0]
)])[y(x[1])]]) and x[-1];print f()
#By Greg Stein

* See
http://groups.google.com/groups?oi=djq&selm=an_398922825
for the actual message.




More information about the Python-list mailing list