Mercurial > cpython-lru_cache-weakref
comparison Python/getcompiler.c @ 5925:93304b2e14cb legacy-trunk
Removed fatal errors from Py_Initmodule4() (and thus from
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.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 02 Aug 1997 03:07:46 +0000 |
| parents | 728a083242a2 |
| children | 916fb024ce94 |
comparison
equal
deleted
inserted
replaced
| 5924:08b1e9d847e6 | 5925:93304b2e14cb |
|---|
