[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-12-18 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: I shot too fast, you were right. The mapping returned by __prepare__ is used during class creation, but __dict__ on the instance is a basic dict afterwards (not sure the doc is clear, I tested it in a shell). -- ___

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-08 Thread Éric Araujo
Éric Araujo added the comment: Andreas: metaclass.__prepare__ can return any mapping object. See http://docs.python.org/dev/reference/datamodel#customizing-class-creation -- nosy: +eric.araujo ___ Python tracker

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-07 Thread Andreas Stührk
Andreas Stührk added the comment: Can you perhaps elaborate on the first part? I really can't see right now how a class __dict__ can be something different from a dictionary. It's true that the class dict can be any mapping while the class is being created, but that's uninteresting for getatt

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-07 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-05 Thread ysj.ray
Changes by ysj.ray : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-04-04 Thread Michael Foord
New submission from Michael Foord : In Python 3 a metclass can create a class __dict__ that is not a true dictionary. This can trigger code execution when accessing __dict__ members. getattr_static should not access them directly but do so using dict methods directly for dict subclasses and sk