java to python

Duncan Booth duncan at NOSPAMrcp.co.uk
Fri Nov 8 10:53:26 EST 2002


"Christian Stockhammer" <christian.stockhammer at students.uni-linz.ac.at>
wrote in news:1036768161.439599 at news.liwest.at: 
> Is there anybody who is willing to help me. I really appreciate any
> suggestions

*any* suggestions? Here is a Python program that does the same as your
Java one :^)

import zlib, base64
print zlib.decompress(base64.decodestring(
'''eJxNj9EKwjAMRd/9inxBaJom7fwKEZ98E1e2wZjg3Itfb1PK3IXAbe4
JTS75Pb36DNe8ftbnuM09mO7TsubF3G2ah20ZTrUNDoCcCZ2zt+yWmm0gl
Ur/FIKXHYxyAH0p7fYUOKhHqaAKx2IbyPadj9RS8MqCal2KrAE5NTAYLBw
SEtdVokYMthAlz2W8a+BBdv73Mc7l0nMdIRIUPv0Apwk4QA=='''))


-- 
Duncan Booth                                            
duncan at rcp.co.uk int month(char
*p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" 
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? 



More information about the Python-list mailing list