cpython/Python
Guido van Rossum 340cbe74b9 A tentative fix for SF bug #503837 (Roeland Rengelink):
type.__module__ problems (again?)

This simply initializes the __module__ local in a class statement from
the __name__ global.  I'm not 100% sure that this is the correct fix,
although it usually does the right thing.  The problem is that if the
class statement executes in a custom namespace, the __name__ global
may be taken from __builtins__, in which case it would have the value
__builtin__, or it may not exist at all (if the custom namespace also
has a custom __builtins__), in which case the class statement will
fail.

Nevertheless, unless someone finds a better solution, this is a 2.2.1
bugfix too.
2002-01-15 21:06:07 +00:00
..
.cvsignore
atof.c
bltinmodule.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
ceval.c Patch #494783: Rename cmp_op enumerators. 2002-01-01 19:59:11 +00:00
codecs.c
compile.c A tentative fix for SF bug #503837 (Roeland Rengelink): 2002-01-15 21:06:07 +00:00
dup2.c
dynload_aix.c aix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer 2001-11-28 21:35:49 +00:00
dynload_beos.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
dynload_dl.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_hpux.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_mac.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_next.c Don't fail on importing things with undefined references. Unfortunately we 2001-12-06 22:58:56 +00:00
dynload_os2.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_shlib.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
dynload_stub.c
dynload_win.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
errors.c SF bug [#467265] Compile errors on SuSe Linux on IBM/s390. 2001-10-02 21:32:07 +00:00
exceptions.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:24:33 +00:00
fmod.c
frozen.c Squash compiler wng about signed/unsigned mismatch. 2001-10-18 18:57:31 +00:00
frozenmain.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
future.c Fix SF bug [ #450245 ] Error in parsing future stmts 2001-08-20 20:32:33 +00:00
getargs.c Fixed "u#" parser marker to pass through Unicode objects as-is without 2002-01-09 16:21:27 +00:00
getcompiler.c
getcopyright.c
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
graminit.c Very subtle syntax change: in a list comprehension, the testlist in 2001-10-15 15:44:05 +00:00
hypot.c
import.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
importdl.c SF patch #471839: Bug when extensions import extensions (Shane Hathaway) 2001-10-16 20:07:34 +00:00
importdl.h SF patch 473749 compile under OS/2 VA C++, from Michael Muller. 2001-11-05 02:45:59 +00:00
mactoolboxglue.c More sprintf -> PyOS_snprintf. 2001-12-04 01:11:32 +00:00
marshal.c Use PyObject_CheckReadBuffer(). 2001-11-09 22:02:48 +00:00
memmove.c
modsupport.c Patch #445762: Support --disable-unicode 2001-08-17 18:39:25 +00:00
mysnprintf.c PyOS_vsnprintf(): Change PyMem_Malloc() call to PyMem_MALLOC() macro, 2001-12-21 16:32:15 +00:00
mystrtoul.c
pyfpe.c
pystate.c
pythonrun.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
sigcheck.c
strdup.c
strerror.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00
strtod.c
structmember.c Fix SF bug #486144: Uninitialized __slot__ vrbl is None. 2001-12-04 16:23:42 +00:00
symtable.c Add a comment explaining the st_symbols cache. 2001-12-10 00:53:18 +00:00
sysmodule.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
thread.c Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
thread_beos.h More sprintf -> PyOS_snprintf. 2001-11-28 22:07:30 +00:00
thread_cthread.h Patch #497098: build support for GNU/Hurd. 2002-01-01 18:41:33 +00:00
thread_foobar.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_lwp.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_nt.h Fix a bug in the previous checkin. The wrong bootstrap function was 2001-10-16 21:50:04 +00:00
thread_os2.h SF patch #474500: Make OS/2 locks work like posix locks, from Michael 2001-10-31 03:50:45 +00:00
thread_pth.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_pthread.h Workaround for what is probably a problem in Apple's gcc: <pthread.h> fails 2002-01-15 20:36:14 +00:00
thread_sgi.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_solaris.h Include <unistd.h> in Python.h. Fixes #500924. 2002-01-12 11:05:12 +00:00
thread_wince.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
traceback.c Use PyOS_snprintf instead of sprintf. 2001-11-28 20:42:20 +00:00