[Announce] pyobfuscate

Peter Astrand peter at cendio.se
Tue Feb 17 19:38:33 CET 2004


> It is not entirely uncommon to write python code that depends on exact 
> method or variable names:
> 
> if hasattr(obj, "somemethod"):
> 	doOneThing()
> else:
> 	doSomethingElse()
> 
> Will the pyobfuscate break code like this?

Currently, pyobfuscate does not change method names. So this should work. 
There are probably other cases with hasattr() and getattr() that fails, 
though. 


-- 
Peter Åstrand		www.thinlinc.com
Cendio			www.cendio.se
Teknikringen 3		Phone: +46-13-21 46 00
583 30 Linköping








More information about the Python-list mailing list