summaryrefslogtreecommitdiffstats
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-27 22:56:16 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-27 22:56:16 (GMT)
commitc59e22000082722655517942d7662eec5a4a70ce (patch)
tree9657ac8cb34b3b319ac0333ae0f5fe0239f8ccd0 /Python/codecs.c
parente7d8322630f82d22984987a97c11371ddacba59e (diff)
downloadcpython-c59e22000082722655517942d7662eec5a4a70ce.zip
cpython-c59e22000082722655517942d7662eec5a4a70ce.tar.gz
cpython-c59e22000082722655517942d7662eec5a4a70ce.tar.bz2
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()
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions