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
.cvsignore -rw-r--r-- 87 bytes
BUILDno.txt -rw-r--r-- 2.0 KB
_socket.dsp -rwxr-xr-x 4.0 KB
_sre.dsp -rwxr-xr-x 7.6 KB
_symtable.dsp -rw-r--r-- 4.0 KB
_testcapi.dsp -rw-r--r-- 4.0 KB
_tkinter.dsp -rw-r--r-- 8.6 KB
bsddb.dsp -rw-r--r-- 8.4 KB
mmap.dsp -rw-r--r-- 3.9 KB
parser.dsp -rw-r--r-- 7.7 KB
pcbuild.dsw -rw-r--r-- 5.1 KB
pyexpat.dsp -rwxr-xr-x 7.9 KB
python.dsp -rw-r--r-- 6.7 KB
python20.wse -rw-r--r-- 40.7 KB
pythoncore.dsp -rw-r--r-- 38.4 KB
pythonw.dsp -rw-r--r-- 7.3 KB
readme.txt -rw-r--r-- 4.6 KB
rmpyc.py -rw-r--r-- 684 bytes
rt.bat -rwxr-xr-x 1.4 KB
select.dsp -rwxr-xr-x 4.1 KB
unicodedata.dsp -rwxr-xr-x 4.1 KB
w9xpopen.dsp -rw-r--r-- 3.4 KB
winreg.dsp -rw-r--r-- 4.0 KB
winsound.dsp -rw-r--r-- 3.8 KB
zlib.dsp -rw-r--r-- 4.1 KB

readme.txt

back to top