Staging
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
History
Tip revision: dfdac1af4d323f4f69775794777197ea31d804ef authored by Barry Warsaw on 23 March 2001, 16:13:30 UTC
Several changes for Jython portability. This closes SF patch
Tip revision: dfdac1a
File Mode Size
api
dist
doc
ext
html
info
inst
lib
mac
paper-a4
paper-letter
perl
ref
templates
texinputs
tools
tut
whatsnew
.cvsignore -rwxr-xr-x 22 bytes
ACKS -rw-r--r-- 2.7 KB
Makefile -rw-r--r-- 13.2 KB
Makefile.deps -rw-r--r-- 5.9 KB
README -rw-r--r-- 7.9 KB
TODO -rw-r--r-- 2.8 KB
libmods.tex -rwxr-xr-x 342 bytes
libstd.tex -rwxr-xr-x 345 bytes

README

back to top