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-- 17 bytes
abstract.c -rw-r--r-- 34.2 KB
bufferobject.c -rw-r--r-- 11.1 KB
cellobject.c -rw-r--r-- 2.3 KB
classobject.c -rw-r--r-- 47.8 KB
cobject.c -rw-r--r-- 3.6 KB
complexobject.c -rw-r--r-- 13.9 KB
dictobject.c -rw-r--r-- 31.0 KB
fileobject.c -rw-r--r-- 33.8 KB
floatobject.c -rw-r--r-- 17.9 KB
frameobject.c -rw-r--r-- 10.0 KB
funcobject.c -rw-r--r-- 8.1 KB
intobject.c -rw-r--r-- 19.2 KB
listobject.c -rw-r--r-- 40.5 KB
longobject.c -rw-r--r-- 38.8 KB
methodobject.c -rw-r--r-- 5.0 KB
moduleobject.c -rw-r--r-- 5.7 KB
object.c -rw-r--r-- 36.0 KB
obmalloc.c -rw-r--r-- 22.2 KB
rangeobject.c -rw-r--r-- 6.5 KB
sliceobject.c -rw-r--r-- 4.1 KB
stringobject.c -rw-r--r-- 74.9 KB
tupleobject.c -rw-r--r-- 12.3 KB
typeobject.c -rw-r--r-- 1.3 KB
unicodectype.c -rw-r--r-- 8.5 KB
unicodeobject.c -rw-r--r-- 122.4 KB
unicodetype_db.h -rw-r--r-- 37.0 KB
xxobject.c -rw-r--r-- 2.4 KB

back to top