pyobfuscate icon indicating copy to clipboard operation
pyobfuscate copied to clipboard

pyobfuscate can't handle function parameters in lambdas

Open astrand opened this issue 13 years ago • 0 comments

Moved from http://bugzilla.lysator.liu.se/show_bug.cgi?id=1583:

As seen by the below example, pyobfuscate incorrectly obfuscates function parameters when they are used in lambdas.

cat ~/slask/pyobf_lambda.py def foo(bar): lambda x: x.startswith(bar)

pyobfuscate ~/slask/pyobf_lambda.py def oo000 ( bar ) : lambda ii : ii . startswith ( oOOo )

------- Comment #1 From Erik Forsberg 2005-10-14 12:57:32 [reply] -------

I've implemented a test case in the test suite for this bug, but the actual bug remains to be solved. I'll leave that to Mr Åstrand.

astrand avatar Aug 24 '12 08:08 astrand