Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 5b7221849e240c2a62ebbc48d58607417b42ef44 authored by Guido van Rossum on 30 March 1993, 17:46:03 UTC, committed by Guido van Rossum on 30 March 1993, 17:46:03 UTC
f_fastlocals in a traceback object (this is a core dump hazard if there are <nil> entries), but instead eval_code() merges the fast locals back into the locals dictionary if it looks like the local variables will be retained. Also, the merge routines save exceptions since this is sometimes needed (alas!). * Added id() to bltinmodule.c, which returns an object's address (identity). Useful to walk arbitrary data structures containing cycles. * Added compile() to bltinmodule.c and compile_string() to pythonrun.[ch]: support to exec/eval arbitrary code objects. The code that defaults globals and locals is moved from run_node in pythonrun.c (which is now identical to eval_node) to eval_code in ceval.c. [XXX For elegance a clean-up session is necessary.]
1 parent 8b17d6b
Tip revision: 5b7221849e240c2a62ebbc48d58607417b42ef44 authored by Guido van Rossum on 30 March 1993, 17:46:03 UTC
* Fixed some subtleties with fastlocals. You can no longer access
* Fixed some subtleties with fastlocals. You can no longer access
Tip revision: 5b72218
File | Mode | Size |
---|---|---|
classobject.c | -rw-r--r-- | 18.2 KB |
dictobject.c | -rw-r--r-- | 15.7 KB |
fileobject.c | -rw-r--r-- | 11.9 KB |
floatobject.c | -rw-r--r-- | 8.0 KB |
frameobject.c | -rw-r--r-- | 5.8 KB |
funcobject.c | -rw-r--r-- | 2.8 KB |
intobject.c | -rw-r--r-- | 9.1 KB |
listobject.c | -rw-r--r-- | 12.5 KB |
longobject.c | -rw-r--r-- | 28.2 KB |
mappingobject.c | -rw-r--r-- | 15.7 KB |
methodobject.c | -rw-r--r-- | 4.3 KB |
moduleobject.c | -rw-r--r-- | 3.4 KB |
object.c | -rw-r--r-- | 6.7 KB |
stringobject.c | -rw-r--r-- | 15.0 KB |
tupleobject.c | -rw-r--r-- | 7.0 KB |
typeobject.c | -rw-r--r-- | 1.8 KB |
xxobject.c | -rw-r--r-- | 3.5 KB |
Computing file changes ...