cpython/Lib/compiler
Jeremy Hylton c59e220000 Handle private names
(Hard to believe these were never handled before)

Add misc.mangle() that mangles based on the rules in compile.c.
XXX Need to test the corner cases

Update CodeGenerator with a class_name attribute bound to None.  If a
particular instance is created within a class scope, the instance's
class_name is bound to that class's name.

Add mangle() method to CodeGenerator that mangles if the class_name
has a class_name in it.

Modify the FunctionCodeGenerator family to handle an extra argument--
the class_name.

Wrap all name ops and attrnames in calls to self.mangle()
2001-08-27 22:56:16 +00:00
..
__init__.py typo 2001-04-09 04:23:55 +00:00
ast.py Generate correct reprs for Mul, Add, etc. 2001-08-18 00:14:37 +00:00
consts.py Define constants for types of scopes 2001-04-12 06:39:24 +00:00
future.py Track removal of doc string from Module().nodes[0] 2001-08-18 00:07:46 +00:00
misc.py Handle private names 2001-08-27 22:56:16 +00:00
pyassem.py SF bug 430991: wrong co_lnotab 2001-06-09 09:26:21 +00:00
pycodegen.py Handle private names 2001-08-27 22:56:16 +00:00
symbols.py Handle private names 2001-08-27 22:56:16 +00:00
transformer.py Add lookup_name() to optimize use of stack frames 2001-08-27 21:02:51 +00:00
visitor.py Two changes to visitor API: 2001-08-27 20:47:08 +00:00