Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 2052:d7e91437f0a2 legacy-trunk
Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 02 Jan 1995 19:04:15 +0000 |
| parents | b724599401ff |
| children | d0d0a69b5ca3 |
comparison
equal
deleted
inserted
replaced
| 2051:23dfca8aa73b | 2052:d7e91437f0a2 |
|---|---|
| 202 XDECREF(v); | 202 XDECREF(v); |
| 203 dictinsert(sysdict, "maxint", v = newintobject(getmaxint())); | 203 dictinsert(sysdict, "maxint", v = newintobject(getmaxint())); |
| 204 XDECREF(v); | 204 XDECREF(v); |
| 205 dictinsert(sysdict, "modules", get_modules()); | 205 dictinsert(sysdict, "modules", get_modules()); |
| 206 dictinsert(sysdict, "builtin_module_names", | 206 dictinsert(sysdict, "builtin_module_names", |
| 207 list_builtin_module_names()); | 207 v = list_builtin_module_names()); |
| 208 XDECREF(v); | |
| 208 if (err_occurred()) | 209 if (err_occurred()) |
| 209 fatal("can't insert sys.* objects in sys dict"); | 210 fatal("can't insert sys.* objects in sys dict"); |
| 210 } | 211 } |
| 211 | 212 |
| 212 static object * | 213 static object * |
