Staging
v0.5.1
https://github.com/python/cpython
Revision 40b33c648a2d777636603356c12b644dd4c92876 authored by Guido van Rossum on 02 August 1997, 03:07:46 UTC, committed by Guido van Rossum on 02 August 1997, 03:07:46 UTC
Py_Initmodule(), which is a macro wrapper around it).

The return value is now a NULL pointer if the initialization failed.
This may make old modules fail with a SEGFAULT, since they don't
expect this kind of failure.  That's OK, since (a) it "never" happens,
and (b) they would fail with a fatal error otherwise, anyway.

Tons of extension modules should now check the return value of
Py_Initmodule*() -- that's on my TODO list.
1 parent aee094c
History
Tip revision: 40b33c648a2d777636603356c12b644dd4c92876 authored by Guido van Rossum on 02 August 1997, 03:07:46 UTC
Removed fatal errors from Py_Initmodule4() (and thus from
Tip revision: 40b33c6
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
Parser
Python
Tools
.hgtags -rw-r--r-- 904 bytes
BUGS -rw-r--r-- 11.6 KB
Makefile.in -rw-r--r-- 15.1 KB
README -rw-r--r-- 30.0 KB
acconfig.h -rw-r--r-- 2.8 KB
config.h.in -rw-r--r-- 9.7 KB
configure -rwxr-xr-x 111.7 KB
configure.in -rw-r--r-- 17.1 KB
install-sh -rwxr-xr-x 2.1 KB

README

back to top