diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-17 18:02:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-17 18:02:44 (GMT) |
commit | 55e00f279f6e662f0f7cfc53398fa854d9666e09 (patch) | |
tree | ea6b31b08ddcc6011d969e69feb52888e2890510 /Modules/symtablemodule.c | |
parent | 8ba92f65021900ac088aed3f65f8650efab5d416 (diff) | |
download | cpython-55e00f279f6e662f0f7cfc53398fa854d9666e09.zip cpython-55e00f279f6e662f0f7cfc53398fa854d9666e09.tar.gz cpython-55e00f279f6e662f0f7cfc53398fa854d9666e09.tar.bz2 |
Merged revisions 65715,65724,65726,65732,65736-65739,65775 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r65715 | benjamin.peterson | 2008-08-16 16:04:16 -0500 (Sat, 16 Aug 2008) | 1 line
add some documentation for symtable
........
r65724 | benjamin.peterson | 2008-08-16 17:11:33 -0500 (Sat, 16 Aug 2008) | 2 lines
include filename and line number in SyntaxError
........
r65726 | georg.brandl | 2008-08-16 17:37:05 -0500 (Sat, 16 Aug 2008) | 2 lines
Review symtable docs.
........
r65732 | benjamin.peterson | 2008-08-16 18:29:40 -0500 (Sat, 16 Aug 2008) | 1 line
PySTEntry's constructor is static; there's no point in a fancy API name
........
r65736 | benjamin.peterson | 2008-08-16 20:09:17 -0500 (Sat, 16 Aug 2008) | 1 line
expose PySTEntry.nested so the symtable module will work
........
r65737 | benjamin.peterson | 2008-08-16 20:17:15 -0500 (Sat, 16 Aug 2008) | 1 line
a few improvements
........
r65738 | benjamin.peterson | 2008-08-16 20:27:30 -0500 (Sat, 16 Aug 2008) | 1 line
fix compile errors
........
r65739 | benjamin.peterson | 2008-08-16 21:23:43 -0500 (Sat, 16 Aug 2008) | 1 line
uhh PySTEntry->ste_unoptimized has to be exposed too
........
r65775 | benjamin.peterson | 2008-08-17 12:13:26 -0500 (Sun, 17 Aug 2008) | 5 lines
get the symtable module back in working order
- Fix broken functions
- Add (hopefully) extensive tests
- Modernize a little
........
Diffstat (limited to 'Modules/symtablemodule.c')
-rw-r--r-- | Modules/symtablemodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index e3c9e51..3388d63 100644 --- a/Modules/symtablemodule.c +++ b/Modules/symtablemodule.c @@ -92,6 +92,10 @@ PyInit__symtable(void) PyModule_AddIntConstant(m, "GLOBAL_IMPLICIT", GLOBAL_IMPLICIT); PyModule_AddIntConstant(m, "FREE", FREE); PyModule_AddIntConstant(m, "CELL", CELL); + + PyModule_AddIntConstant(m, "SCOPE_OFF", SCOPE_OFFSET); + PyModule_AddIntConstant(m, "SCOPE_MASK", SCOPE_MASK); + if (PyErr_Occurred()) { Py_DECREF(m); m = 0; |