Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
6db15d7 Whitespace normalization. 04 August 2004, 02:36:18 UTC
cea2cc4 test_threadsignals is an expected skip on win32. 04 August 2004, 02:32:03 UTC
81676dc To raise TestSkipped, you must import TestSkipped. 04 August 2004, 02:30:45 UTC
3d3cfdb ihooks FancyModuleLoader.load_module() imputils Importer._process_result(): remove name from modules dict if exec fails. This is what all the builtin importers do now, new in 2.4. 04 August 2004, 02:29:12 UTC
51fa3b7 Tkapp_New(): Rewrite in C so it compiles again. 04 August 2004, 02:16:48 UTC
edcac8f make sure distutils logging is shut off in tests to avoid spurious output 03 August 2004, 18:53:07 UTC
1fa649f Patch #986929: Add support for wish -sync and -use options. 03 August 2004, 18:45:31 UTC
9441c07 Patch #986929: Add support for wish -sync and -use options. 03 August 2004, 18:36:25 UTC
b217cd8 Wait for visibility before setting a grab. Fixes #946153. 03 August 2004, 18:36:25 UTC
f901abd allow ctime(), gmtime(), and localtime() to take None as equivalent to an omitted arg (closes SF bug #658254, patch #663482) 03 August 2004, 17:58:55 UTC
d04573f This allows additional commands to be provided for existing setup.py scripts without modifying either the distutils installation or the setup.py scripts of packages with which the new commands will be used. Specifically, an option is added to distutils that allows additional packages to be searched for command implementations in addition to distutils.command. The additional packages can be specified on the command line or via the installation or personal configuration files already loaded by distutils. For discussion, see the thread starting with: http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html This closes SF patch #102241. 03 August 2004, 16:37:40 UTC
4818748 add missing import! 03 August 2004, 16:14:13 UTC
2be406b let's avoid the extra nesting where reasonable 03 August 2004, 16:02:35 UTC
7bc58a3 on to a2! 03 August 2004, 15:57:39 UTC
4354ba3 avoid fragility: make sure POSIXLY_CORRECT is completely controlled for the tests, and restored properly when done 03 August 2004, 15:54:45 UTC
34fba3b Add the same guard as test_signal. 03 August 2004, 15:35:29 UTC
6d3265d Be more careful about maintaining the invariants; it was actually possible that the callback-less flavors of the ref or proxy could have been added during GC, so we don't want to replace them. 03 August 2004, 14:47:25 UTC
43220ea Argh! This was meant to be part of patch #960406. 03 August 2004, 14:37:14 UTC
9513e34 Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP(). 03 August 2004, 14:36:32 UTC
0b49e02 Patch #977074: Move Encode/Decode to the top so gcc can inline them. 03 August 2004, 13:08:07 UTC
65a7975 Patch #994595: Recognize Basic auth even if other schemes are offered. Will backport to 2.3. 03 August 2004, 12:59:55 UTC
7db57b3 Patch #870382: Automatically add msvcr71 to the list of libraries if Python was built with VC 7.1. 03 August 2004, 12:41:42 UTC
61147f6 Check in my refleak hunting code. It's not the 100% solution -- it may not even be the 90% solution -- but it does seem to help. 03 August 2004, 11:33:28 UTC
0bb8454 Fix the reference count errors revealed by the test suite... 03 August 2004, 11:31:31 UTC
afd5ce1 nice tests dont leave little suprises in the environ 03 August 2004, 11:14:19 UTC
5bf2516 More "noone expected this to run twice"ness removal. 03 August 2004, 11:14:09 UTC
fe27ff8 make this test work when run repeatedly. 03 August 2004, 11:08:32 UTC
d271721 Removed use of 'cgi.initlog()' - the first call to cgi.log is actually an initlog() (and initlog()'s docstring says "don't use this"!) This allows test_cgi to be run repeatedly in a single run of the interpreter. 03 August 2004, 11:05:04 UTC
fcc09bb Don't exit test_main() with the lock 'done' held -- there's no cleaner way to guarantee a deadlock on the next call! If I've inadvertently done some damage to this test, sorry (but I don't think I have). 03 August 2004, 10:45:59 UTC
782d8ff Don't intern the filename of a file being compiled. Hard to believe it ever helped anything, and it hurts finding reference leaks. 03 August 2004, 10:24:03 UTC
3f3b668 Repair the same thinko in two places about handling of _Py_RefTotal in the case of __del__ resurrecting an object. This makes the apparent reference leaks in test_descr go away (which I expected) and also kills off those in test_gc (which is more surprising but less so once you actually think about it a bit). 03 August 2004, 10:21:03 UTC
3bfed9c Delete the items variable (and explain why). 03 August 2004, 10:17:34 UTC
cbcff93 Restore compilation on MSVC++ 6.0 03 August 2004, 08:52:46 UTC
a412769 SF bug #808756: refleaks in _hotshot.c. 03 August 2004, 08:33:55 UTC
31d485c update to Expat 1.95.8 03 August 2004, 07:06:22 UTC
70fcdb8 Document general mappings for the locals argument for exec and execfile(). 03 August 2004, 05:17:58 UTC
a57ec93 Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts on connect error 03 August 2004, 05:06:26 UTC
5ad28e1 Tweak previous patch to silence a warning about the unused left value in the comma expression in listpop() that was being returned. Still essentially unused (as it is meant to be), but now the compiler thinks it is worth *something* by having it incremented. 03 August 2004, 04:53:29 UTC
bec69f6 fix a little lie ;-( 02 August 2004, 23:05:25 UTC
7fdd92f Fix typo though 02 August 2004, 21:56:33 UTC
e72bd4d fix markup error 02 August 2004, 21:50:26 UTC
0c84c7f start filling in documentation on extending distutils 02 August 2004, 21:39:11 UTC
576298d - fix description of option table entries - fix broken assert statement; should just raise 02 August 2004, 17:58:51 UTC
c75f112 Use isabs() in conditional, not abspath 02 August 2004, 14:54:16 UTC
a3711f7 Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem have differing refcount semantics. If anyone sees a prettier way to acheive the same ends, then please go for it. I think this is the first time I've ever used Py_XINCREF. 02 August 2004, 14:50:43 UTC
77a602f Add PEP318 02 August 2004, 13:48:18 UTC
c9f510a Any call to insort_{left,right} with a non-list leaked a reference to None (or to whatever the 'insert' method chose to return). 02 August 2004, 13:24:54 UTC
f8df9a8 Add a missing decref. 02 August 2004, 13:22:01 UTC
52db519 for some reason, the lack of adherence to Python's C whitespace rules must have annoyed me at some point. 02 August 2004, 13:21:09 UTC
d91fcbe Add import change; add empty section for function decorators 02 August 2004, 12:44:28 UTC
1455f79 Update item 02 August 2004, 12:09:58 UTC
270fe88 and a unit test for the staticmethod-of-a-non-method failure just fixed 02 August 2004, 11:34:10 UTC
4e7785a fix for @decorators under a debug build. 02 August 2004, 11:08:15 UTC
829d6c4 Fix doubled word. 02 August 2004, 08:36:07 UTC
66bd233 Completed the patch for Bug #215126. * Fixes an incorrect variable in a PyDict_CheckExact. * Allow general mapping locals arguments for the execfile() function and exec statement. * Add tests. 02 August 2004, 08:30:07 UTC
32083f6 notes for @decorator 02 August 2004, 06:24:59 UTC
c2a5a63 PEP-0318, @decorator-style. In Guido's words: "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728. 02 August 2004, 06:10:11 UTC
fd7dc51 Typo repair. 02 August 2004, 04:30:37 UTC
0c6199e Completed a sentence I left dangling. 02 August 2004, 04:14:10 UTC
99d001e Removed reliance on damaged module object appearing in sys.modules after a failed import. This is the last checkin in the "change import failure semantics" series. 02 August 2004, 03:59:57 UTC
08138fd New tests: test_failing_import_sticks -- if an import raises an exception, ensure that trying to import it again continues raising exceptions test_failing_reload -- if a module loads OK, but a reload raises an exception, ensure that the module is still in sys.modules, and that its __dict__ reflects as much of the reload attempt as succeeded. That doesn't seem like sane semantics, but it is backward-compatible semantics <wink>. 02 August 2004, 03:58:27 UTC
d464838 Removed no-longer-needed convolutions to recover from damaged modules getting left beyind in sys.modules. 02 August 2004, 03:55:18 UTC
1cd7017 PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases. PyImport_ReloadModule(): restore the module to sys.modules in error cases. load_package(): semantic-neutral refactoring from an earlier stab at this patch; giving it a common error exit made the code easier to follow, so retaining that part. _RemoveModule(): new little utility to delete a key from sys.modules. 02 August 2004, 03:52:12 UTC
94f9b86 "Core" and "C API" news about new semantics for failing imports. 02 August 2004, 03:48:03 UTC
cfd575d PyImport_ImportModule, PyImport_ImportModuleEx, PyImport_ExecCodeModule: in failure cases, incompletely initalized module objects are no longer left behind in sys.modules. 02 August 2004, 03:46:45 UTC
a7c6509 lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were already correct, so not changed here. 01 August 2004, 23:26:05 UTC
86c7d2f Trimmed trailing whitespace. 01 August 2004, 23:24:21 UTC
0e67fd4 Fix SF #1001053, wave.open() with unicode filename fails Backport candidate. 01 August 2004, 22:48:06 UTC
4ecd8cd Fix typo in comment 01 August 2004, 22:45:27 UTC
750f060 SF bug #1001088, incorrect reference to macro named foo Backport candidate. 01 August 2004, 22:36:40 UTC
8fc4a91 list_ass_slice(): Document the obscure new intent that deleting a slice of no more than 8 elements cannot fail. listpop(): Take advantage of that its calls to list_resize() and list_ass_slice() can't fail. This is assert'ed in a debug build now, but in an icky way. That is, you can't say: assert(some_call() >= 0); because then some_call() won't occur at all in a release build. So it has to be a big pile of #ifdefs on Py_DEBUG (yuck), or the pleasant: status = some_call(); assert(status >= 0); But in that case, compilers may whine in a release build, because status appears unused then. I'm not certain the ugly trick I used here will convince all compilers to shut up about status (status is always "used" now, as the first (ignored) clause in a comma expression). 31 July 2004, 21:53:19 UTC
c0cbc86 Whitespace normalization. 31 July 2004, 21:17:37 UTC
579f735 Be more careful about reverting mutuations to system-wide (sys) variables. This fixes 15 spurious test failures on Windows (probably all due to the test leaving a wrong path in sys.argv[0], which then prevented regrtest.py from finding the expected-output files for tests running after test_optparse). 31 July 2004, 21:14:28 UTC
9c8fe1a Mention upgrade of optparse to Optik 1.5a1. 31 July 2004, 16:16:11 UTC
eba20e6 Upgrade optparse module and tests to Optik 1.5a1: * add expansion of default values in help text: the string "%default" in an option's help string is expanded to str() of that option's default value, or "none" if no default value. * bug #955889: option default values that happen to be strings are now processed in the same way as values from the command line; this allows generation of nicer help when using custom types. Can be disabled with parser.set_process_default_values(False). * bug #960515: don't crash when generating help for callback options that specify 'type', but not 'dest' or 'metavar'. * feature #815264: change the default help format for short options that take an argument from e.g. "-oARG" to "-o ARG"; add set_short_opt_delimiter() and set_long_opt_delimiter() methods to HelpFormatter to allow (slight) customization of the formatting. * patch #736940: internationalize Optik: all built-in user- targeted literal strings are passed through gettext.gettext(). (If you want translations (.po files), they're not included with Python -- you'll find them in the Optik source distribution from http://optik.sourceforge.net/ .) * bug #878453: respect $COLUMNS environment variable for wrapping help output. * feature #988122: expand "%prog" in the 'description' passed to OptionParser, just like in the 'usage' and 'version' strings. (This is *not* done in the 'description' passed to OptionGroup.) 31 July 2004, 16:15:44 UTC
7357222 list_ass_slice(): The difference between "recycle" and "recycled" was impossible to remember, so renamed one to something obvious. Headed off potential signed-vs-unsigned compiler complaints I introduced by changing the type of a vrbl to unsigned. Removed the need for the tedious explanation about "backward pointer loops" by looping on an int instead. 31 July 2004, 02:54:42 UTC
8d9eb10 Armin asked for a list_ass_slice review in his checkin, so here's the result. list_resize(): Document the intent. Code is increasingly relying on subtle aspects of its behavior, and they deserve to be spelled out. list_ass_slice(): A bit more simplification, by giving it a common error exit and initializing more values. Be clearer in comments about what "size" means (# of elements? # of bytes?). While the number of elements in a list slice must fit in an int, there's no guarantee that the number of bytes occupied by the slice will. That malloc() and memmove() take size_t arguments is a hint about that <wink>. So changed to use size_t where appropriate. ihigh - ilow should always be >= 0, but we never asserted that. We do now. The loop decref'ing the recycled slice had a subtle insecurity: C doesn't guarantee that a pointer one slot *before* an array will compare "less than" to a pointer within the array (it does guarantee that a pointer one beyond the end of the array compares as expected). This was actually an issue in KSR's C implementation, so isn't purely theoretical. Python probably has other "go backwards" loops with a similar glitch. list_clear() is OK (it marches an integer backwards, not a pointer). 31 July 2004, 02:24:20 UTC
bcc95cb Repair typo in docstring. 31 July 2004, 00:19:43 UTC
63a5d0b re-wrap paragraphs containing long lines 30 July 2004, 19:12:38 UTC
69013d0 - document the termination condition for cmd.Cmd.cmdloop() - document the use of the return value for cmd.Cmd.do_*() methods 30 July 2004, 18:58:54 UTC
479b7a7 Fix typo. 30 July 2004, 16:09:19 UTC
8ddb638 Add closing methoddesc. Add versionadded. Rewrap. 30 July 2004, 16:08:49 UTC
1dd04a0 This is a reorganization of list_ass_slice(). It should probably be reviewed, though I tried to be very careful. This is a slight simplification, and it adds a new feature: a small stack-allocated "recycled" array for the cases when we don't remove too many items. It allows PyList_SetSlice() to never fail if: * you are sure that the object is a list; and * you either do not remove more than 8 items, or clear the list. This makes a number of other places in the source code correct again -- there are some places that delete a single item without checking for MemoryErrors raised by PyList_SetSlice(), or that clear the whole list, and sometimes the context doesn't allow an error to be propagated. 30 July 2004, 11:38:22 UTC
a37bbf2 What if you call lst.__init__() while it is being sorted? :-) The invariant checks would break. 30 July 2004, 11:20:18 UTC
c0aaa2d * Simplify and speed-up list_resize(). Relying on the newly documented invariants allows the ob_item != NULL check to be replaced with an assertion. * Added assertions to list_init() which document and verify that the tp_new slot establishes the invariants. This may preclude a future bug if a custom tp_new slot is written. 29 July 2004, 23:31:29 UTC
93677f0 * drop the unreasonable list invariant that ob_item should never come back to NULL during the lifetime of the object. * listobject.c nevertheless did not conform to the other invariants, either; fixed. * listobject.c now uses list_clear() as the obvious internal way to clear a list, instead of abusing list_ass_slice() for that. It makes it easier to enforce the invariant about ob_item == NULL. * listsort() sets allocated to -1 during sort; any mutation will set it to a value >= 0, so it is a safe way to detect mutation. A negative value for allocated does not cause a problem elsewhere currently. test_sort.py has a new test for this fix. * listsort() leak: if items were added to the list during the sort, AND if these items had a __del__ that puts still more stuff into the list, then this more stuff (and the PyObject** array to hold them) were overridden at the end of listsort() and never released. 29 July 2004, 12:40:23 UTC
f414fc4 Minor memory leak. 29 July 2004, 10:56:55 UTC
e12f715 Ignore exceptions which occur when closing files in shutdown() 29 July 2004, 09:19:30 UTC
f9fd0d7 SF bug #997533: "disjunct" should be "disjoint" * Use plain wording in docs for id(). * Use normal quotation marks instead of single quotes in the description. 29 July 2004, 06:06:34 UTC
51b4ade Fix obscure breakage (relative to 2.3) in listsort: the test for list mutation during list.sort() used to rely on that listobject.c always NULL'ed ob_item when ob_size fell to 0. That's no longer true, so the test for list mutation during a sort is no longer reliable. Changed the test to rely instead on that listobject.c now never NULLs-out ob_item after (if ever) ob_item gets a non-NULL value. This new assumption is also documented now, as a required invariant in listobject.h. The new assumption allowed some real simplification to some of the hairier code in listsort(), so is a Good Thing on that count. 29 July 2004, 04:07:15 UTC
014f103 SF bug #999776, zlib home page wrong Backport candidate. 29 July 2004, 03:55:56 UTC
f9f0b21 SF #998170, fix typo. Backport candidate 29 July 2004, 03:48:59 UTC
a995a2d Document what the members of PyListObject are used for, and the crucial invariants they must satisfy. 29 July 2004, 03:29:15 UTC
b38e2b6 Trimmed trailing whitespace. 29 July 2004, 02:29:26 UTC
3986d4e PyList_New(): we went to all the trouble of computing and bounds-checking the size_t nbytes, and passed nbytes to malloc, so it was confusing to effectively recompute the same thing from scratch in the memset call. 29 July 2004, 02:28:42 UTC
6d3db70 Add missing doc for Py_True/Py_False. Use the correct macro to define Py_RETURN_FALSE and Py_RETURN_TRUE. 29 July 2004, 02:16:04 UTC
a18331d Use PyMODINIT_FUNC. 28 July 2004, 20:02:52 UTC
17b6d28 New codec: [ 996067 ] hp-roman8 codec 28 July 2004, 15:37:54 UTC
cd8a4cb Added new codec hp-roman8 submitted as patch [ 996067 ] hp-roman8 codec. 28 July 2004, 15:35:29 UTC
671c506 Add new encodings 28 July 2004, 15:29:39 UTC
back to top