Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision dfdac1af4d323f4f69775794777197ea31d804ef authored by Barry Warsaw on 23 March 2001, 16:13:30 UTC, committed by Barry Warsaw on 23 March 2001, 16:13:30 UTC
#403666. Specifically, In codestr, force `c' to be global. It's unclear what the semantics should be for a code object compiled at module scope, but bound and run in a function. In CPython, `c' is global (by accident?) while in Jython, `c' is local. The intent of the test clearly is to make `c' global, so let's be explicit about it. Jython also does not have a __builtins__ name in the module's namespace, so we use a more portable alternative (though I'm not sure why the test requires "__builtins__" in the g namespace). Finally, skip the new.code() test if the new module doesn't have a `code' attribute. Jython will never have this.
1 parent 101651c
Tip revision: dfdac1af4d323f4f69775794777197ea31d804ef authored by Barry Warsaw on 23 March 2001, 16:13:30 UTC
Several changes for Jython portability. This closes SF patch
Several changes for Jython portability. This closes SF patch
Tip revision: dfdac1a
File | Mode | Size |
---|---|---|
Build | ||
Compat | ||
Contrib | ||
Demo | ||
Distributions | ||
IDE scripts | ||
Include | ||
Lib | ||
MPW | ||
Modules | ||
OSX | ||
PlugIns | ||
Python | ||
Resources | ||
Tools | ||
Unsupported | ||
Wastemods | ||
mwerks | ||
scripts | ||
tclmods | ||
HISTORY | -rw-r--r-- | 27.2 KB |
ReadMe | -rw-r--r-- | 8.1 KB |
ReadMe-dev | -rw-r--r-- | 482 bytes |
ReadMe-src | -rw-r--r-- | 563 bytes |
Relnotes | -rw-r--r-- | 5.9 KB |
_checkversion.py | -rw-r--r-- | 415 bytes |
errno_unix.h | -rw-r--r-- | 307 bytes |
fopenRF.c | -rw-r--r-- | 5.9 KB |
mkapplet.py | -rw-r--r-- | 5.7 KB |
mwerksglue.c | -rw-r--r-- | 566 bytes |
Computing file changes ...