Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace resolution problem (?) #2

Open
astrand opened this issue Aug 24, 2012 · 0 comments
Open

namespace resolution problem (?) #2

astrand opened this issue Aug 24, 2012 · 0 comments

Comments

@astrand
Copy link
Owner

astrand commented Aug 24, 2012

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

Opened: 2004-08-01 01:07

see the example:


def test1():
a='apple'
def test2():
print a
test2()

class foo:
def init(self):
pass

def test3(self,arg):
pass

def test4(self):
self.test3(1)
map(lambda x:self.test3(x),[1,2,3])


this example obfuscates to:

def oo000 ( ) :
ii = 'apple'
def oOOo ( ) :
print a
oOOo ( )
class IIi1IiiiI1Ii :
def init ( self ) :
pass
def test3 ( self , arg ) :
pass
def test4 ( self ) :
self . test3 ( 1 )
map ( lambda O0oO : o0oO0 . test3 ( O0oO ) , [ 1 , 2 , 3 ] )


there are two errors:

  1. the variable 'a' in test1 is obfuscated but not in test2
  2. self.test3 is preserved in test4, but gets obfuscated in the lambda function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant