comparison Python/pythonrun.c @ 45026:ebfbaa1051e2

Merged revisions 60364-60378 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60364 | neal.norwitz | 2008-01-27 19:09:48 +0100 (Sun, 27 Jan 2008) | 4 lines Update the comment and remove the close. If we close we can't flush anymore. We might still need to close after the for loop if flushing 6! times still doesn't cause the signal/exception. ........ r60365 | georg.brandl | 2008-01-27 19:14:43 +0100 (Sun, 27 Jan 2008) | 2 lines Remove effectless expression statement. ........ r60367 | neal.norwitz | 2008-01-27 19:19:04 +0100 (Sun, 27 Jan 2008) | 1 line Try to handle socket.errors properly in is_unavailable ........ r60370 | christian.heimes | 2008-01-27 20:01:45 +0100 (Sun, 27 Jan 2008) | 1 line Change isbasestring function as discussed on the cvs list a while ago ........ r60372 | neal.norwitz | 2008-01-27 21:03:13 +0100 (Sun, 27 Jan 2008) | 3 lines socket.error doesn't have a headers attribute like ProtocolError. Handle that situation where we catch socket.errors. ........ r60375 | georg.brandl | 2008-01-27 21:25:12 +0100 (Sun, 27 Jan 2008) | 2 lines Add refcounting extension to build config. ........ r60377 | jeffrey.yasskin | 2008-01-28 00:08:46 +0100 (Mon, 28 Jan 2008) | 6 lines Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() because it's useful outside of rational numbers. This is my first C code that had to do anything significant. Please be more careful when looking over it. ........ r60378 | christian.heimes | 2008-01-28 00:34:59 +0100 (Mon, 28 Jan 2008) | 1 line Added clear cache methods to clear the internal type lookup cache for ref leak test runs. ........
author Christian Heimes <christian@cheimes.de>
date Sun, 27 Jan 2008 23:50:43 +0000
parents fb5a6330f71b
children 2a821e001a2b
comparison
equal deleted inserted replaced
45023:727cc810d690 45026:ebfbaa1051e2
401 PyOS_FiniInterrupts(); 401 PyOS_FiniInterrupts();
402 402
403 /* drop module references we saved */ 403 /* drop module references we saved */
404 Py_XDECREF(warnings_module); 404 Py_XDECREF(warnings_module);
405 warnings_module = NULL; 405 warnings_module = NULL;
406
407 /* Clear type lookup cache */
408 PyType_ClearCache();
406 409
407 /* Collect garbage. This may call finalizers; it's nice to call these 410 /* Collect garbage. This may call finalizers; it's nice to call these
408 * before all modules are destroyed. 411 * before all modules are destroyed.
409 * XXX If a __del__ or weakref callback is triggered here, and tries to 412 * XXX If a __del__ or weakref callback is triggered here, and tries to
410 * XXX import a module, bad things can happen, because Python no 413 * XXX import a module, bad things can happen, because Python no