cpython/Python
Jeremy Hylton 4f0dcc9a9a Provide __module__ attributes for functions defined in C and Python.
__module__ is the string name of the module the function was defined
in, just like __module__ of classes.  In some cases, particularly for
C functions, the __module__ may be None.

Change PyCFunction_New() from a function to a macro, but keep an
unused copy of the function around so that we don't change the binary
API.

Change pickle's save_global() to use whichmodule() if __module__ is
None, but add the __module__ logic to whichmodule() since it might be
used outside of pickle.
2003-01-31 18:33:18 +00:00
..
.cvsignore
atof.c
bltinmodule.c Patch #636005: Filter unicode into unicode. 2003-01-25 22:46:11 +00:00
ceval.c SF patch #670367: Micro-optimizations for ceval.c 2003-01-19 05:08:13 +00:00
codecs.c Properly compute array size even for --disable-unicode. 2002-11-21 23:53:25 +00:00
compile.c A. Lloyd Flanagan pointed out a spelling error on c.l.py. 2003-01-16 15:39:07 +00:00
dup2.c
dynload_aix.c Fix SF #639945, 64-bit bug on AIX 2002-12-31 00:06:24 +00:00
dynload_atheos.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c Fix SF # 551504, python -v sometimes fails to find init (HPUX) 2002-11-02 20:58:05 +00:00
dynload_mac.c Got rid of old (non-carbon-ppc and even cfm68k) file extensions for 2002-12-16 13:16:25 +00:00
dynload_next.c Squashed compiler warnings by adding casts, making sure prototypes are in 2002-12-23 21:03:36 +00:00
dynload_os2.c
dynload_shlib.c
dynload_stub.c
dynload_win.c Fix a couple of whitespace consistency nits. 2002-08-26 21:20:30 +00:00
errors.c Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
exceptions.c Provide __module__ attributes for functions defined in C and Python. 2003-01-31 18:33:18 +00:00
fmod.c
frozen.c This is my patch 2002-08-15 14:59:02 +00:00
frozenmain.c
future.c Constify filenames and scripts. Fixes #651362. 2002-12-11 14:04:59 +00:00
getargs.c Raise a TypeError if a float is passed when an integer is specified. 2003-01-24 22:15:21 +00:00
getcompiler.c
getcopyright.c Another copyright update. (JvR: can you backport this to the 2.3a1 2003-01-02 16:27:15 +00:00
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c
hypot.c
import.c MacPython-OS9 specific fix: If there are non-string items on sys.path don't try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter. 2003-01-24 16:15:45 +00:00
importdl.c Simplify, and avoid PyModule_GetDict() while we're at it. 2002-08-26 21:15:11 +00:00
importdl.h PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
mactoolboxglue.c It turns out that some calls return AEDesc records that are "borrowed", 2003-01-17 23:11:17 +00:00
marshal.c
memmove.c
modsupport.c Provide __module__ attributes for functions defined in C and Python. 2003-01-31 18:33:18 +00:00
mysnprintf.c
mystrtoul.c
pyfpe.c
pystate.c Assorted patches from Armin Rigo: 2002-11-08 12:53:11 +00:00
pythonrun.c MacPython-OS9 has had an abort() function for quite a while now, so there's no reason to stall in an endless loop, just call abort() on a fatal error. 2003-01-24 16:17:18 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c
symtable.c
sysmodule.c Patch #664376: sys.path[0] should contain absolute pathname. 2003-01-08 14:33:48 +00:00
thread.c
thread_atheos.h
thread_beos.h
thread_cthread.h
thread_foobar.h
thread_lwp.h
thread_nt.h
thread_os2.h reformat for PEP-7 style conformance 2002-12-04 12:29:37 +00:00
thread_pth.h
thread_pthread.h Don't use Posix semaphores on Solaris 8. Fixes #662787. 2003-01-21 10:14:41 +00:00
thread_sgi.h
thread_solaris.h
thread_wince.h
traceback.c This is my patch 2002-08-15 14:59:02 +00:00