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

sort by:
Revision Author Date Message Commit Date
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
25d8892 Since build_py handles package data installation, the list of outputs can contain more than just .py files. Make sure we only report bytecode files for the .py files. 28 July 2004, 14:55:10 UTC
33ee76a A little boolean music if you please, maestro... (Not sure I have the versionadded{} args quite right). 28 July 2004, 14:17:04 UTC
efdc16f Remove unused source file from Windows project files. 28 July 2004, 09:45:20 UTC
978d262 Add missing _codecs_iso2022 module of cjkcodecs. I'll add unittest for it soon. 28 July 2004, 09:39:54 UTC
eb34110 Remove CJKCodecs implementation of UTF-7 and UTF-8 codec which aren't intended to be part of Python distributiuon. This was accidently imported on mass converting from standalone version of CJKCodecs. 28 July 2004, 09:36:52 UTC
bee4174 Add versionadded info 28 July 2004, 02:34:12 UTC
49667c2 Ack, removed useless import of os I just introduced. 27 July 2004, 21:05:21 UTC
5cfb05e Added a new fileno() method. ZODB's repozo.py wants this so it can apply os.fsync() to the GzipFile backup files it creates. 27 July 2004, 21:02:02 UTC
fe393f4 Use intptr_t/uintptr_t on Windows 27 July 2004, 15:57:24 UTC
b600fe9 Switch arguments to memset (kudos to MSVC C4318 for finding that) 27 July 2004, 15:03:53 UTC
512efb4 Properly check for Win64 compilers. 27 July 2004, 14:16:14 UTC
ce4bae6 Add an item 27 July 2004, 12:13:25 UTC
544f119 Patch #995766: Keyword argument support in cPickle. 27 July 2004, 05:22:33 UTC
7b9190b Patch #998149: imaplib deleteacl and myrights. 27 July 2004, 05:07:19 UTC
5785a13 Add some items 26 July 2004, 19:28:46 UTC
e03664f Two typo fixes 26 July 2004, 19:25:54 UTC
e3e1eca [Bug #997166] Fix example 26 July 2004, 18:52:48 UTC
fdccf1a fix information about what flag database files are opened with by default 26 July 2004, 16:33:29 UTC
c8ae31d Patch #962487: Don't crash for empty locale names. 26 July 2004, 12:45:18 UTC
cc0f932 Patch #605370: Add description[s] for RFC 2980 compliance. 26 July 2004, 12:40:50 UTC
32d0c1b Patch #995782: Add FreeBSD 5 expectations. Will backport to 2.3. 26 July 2004, 12:09:13 UTC
37ead8f Patch #997668: Correct explanation of salts. Will backport to 2.3. 26 July 2004, 12:05:16 UTC
abba5c0 Explain that most floats are actually integers. This is a common confusion for people using floor(), ceil() and modf(). 26 July 2004, 05:12:01 UTC
9a729a1 Typo in new docs. 26 July 2004, 04:58:50 UTC
d6ef193 SF bugs 996748: os.environ documentation should indicate unreliability Clarifed that os.environ is captured once; emphasized that it's better to assign to os.environ than to call putenv() directly (the putenv() docs said so, but the environ docs didn't). 26 July 2004, 00:42:41 UTC
d945f4e Generate rc[_d].h after linking 25 July 2004, 09:49:26 UTC
66bb6e6 SF bug 996392: math and cmath docs don't specify radians Major rewrite of the math module docs. Slapped in "radians" where appropriate; grouped the functions into reasonable categories; supplied many more words to address common confusions about some of the subtler issues. 24 July 2004, 23:00:24 UTC
5253da1 added test for bug #996359. 24 July 2004, 19:56:03 UTC
3414c1c add missing newlines to read/readline. fixes bug #996359. 24 July 2004, 19:54:44 UTC
612eb09 Factored out a method to determine the final installer filename. 23 July 2004, 19:58:28 UTC
6fa2474 Make the distutils version number the same as the python version. It must be literally contained here, because it is still possible to install this distutils in older Python versions. 23 July 2004, 19:47:32 UTC
ee6fd06 bdist_wininst does now properly handle unicode strings or byte strings with umlauts in the author argument and others. Fixes sf # 993943. 23 July 2004, 19:44:29 UTC
b314ce9 Add news item for u'%s' change. 23 July 2004, 16:14:57 UTC
d25c650 Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__(). 23 July 2004, 16:13:25 UTC
fe08083 Fix an uncorrect function prototype. Will backport to release23-maint. BTW: Shouldn't it read PY_LONG_LONG instead of 'long long' ? 23 July 2004, 14:49:52 UTC
5ae638c Remove copyright notices from gencodec.py output. The script was originally used to create the initial set of codecs (and these were (c) CNRI). While the script itself still is (c) CNRI, the output certainly isn't anymore. 23 July 2004, 10:09:57 UTC
f9cbf21 Whitespace normalization. 23 July 2004, 02:50:10 UTC
336689b A few trivial edits. 23 July 2004, 02:48:24 UTC
cab5b94 SF bug #995983 and #995987: Documentation nits. 22 July 2004, 19:33:53 UTC
7bd33c5 This change implements the following gettext features, as discussed recently in python-dev: In _locale module: - bind_textdomain_codeset() binding In gettext module: - bind_textdomain_codeset() function - lgettext(), lngettext(), ldgettext(), ldngettext(), which return translated strings encoded in preferred system encoding, if bind_textdomain_codeset() was not used. - Added equivalent functionality in translate() function and catalog classes. Every change was also documented. 22 July 2004, 18:44:01 UTC
5980ff2 SF bug 994255: Py_RETURN_NONE causes too much warnings Rewrote Py_RETURN_{NONE, TRUE, FALSE} to expand to comma expressions rather than "do {} while(0)" thingies. The OP complained because he likes using MS /W4 sometimes, and then all his uses of these things generate nuisance warnings about testing a constant expression (in the "while(0)" part). Comma expressions don't have this problem (although it's a lucky accident that comma expressions suffice for these macros!). 22 July 2004, 01:46:43 UTC
aa1c7ff SF patch 995225: tarfile.py fix for bug #990325 Removes CVS keywords from this binary file, so that test_tarfile passes regardless of whether Python is checked out with -kk. 22 July 2004, 00:54:37 UTC
c12527e [Bug #990524] Fix typo 21 July 2004, 21:34:45 UTC
b3d55d3 elaborate package data test to make sure get_outputs() gives the right results when byte-code compilation is requested (in particular, make sure that package data doesn't get a bogus byte-code listing generated) 21 July 2004, 18:53:06 UTC
4ab0e9e revise wording to avoid confusion for non-native English speakers (second occurance of the same wording) 21 July 2004, 17:36:47 UTC
20938f5 revise wording to avoid confusion for non-native English speakers 21 July 2004, 17:18:19 UTC
b4bf62f Added an extra example to the basic example section 21 July 2004, 14:40:11 UTC
0ad20f1 Update Decimal section to match the current module 21 July 2004, 13:00:06 UTC
65a3332 Add PEP 331; add constancy of None; minor edits 21 July 2004, 12:41:38 UTC
c2632a5 Patch #984714: Properly diagnose E_DECODE errors. Backported to 2.3. 21 July 2004, 05:35:02 UTC
2142993 Thread.__delete: Discussion of internal obscurities belongs in comments rather than in docstrings. Rewrote so that _active_limbo_lock is released no matter what happens (it could have been left locked if _sys got None'd out). Use "in" in preference to has_key() for dict lookup. Don't bother looking for 'dummy_threading' in sys.modules unless KeyError is raised. Since the heart of the method is the del, do that in only one place. 21 July 2004, 03:36:52 UTC
090e636 EditorWindow.py was not finding the .chm help file on Windows. Typo at Rev 1.54. Python Bug 990954 21 July 2004, 03:33:58 UTC
bf76075 fix typo, highlight True/False correctly 21 July 2004, 02:47:10 UTC
8b3d92a Fix bug where a KeyError was raised if -O was being used for the interpreter and Thread.__delete() was called after a Thread instance was created. Problem resulted from a currentThread() call in an 'assert' statement being optimized out and dummy_thread.get_ident() always returning -1 and thus overwriting the entry for the _MainThread() instance created in 'threading' at import time. Closes bug #993394. 21 July 2004, 02:21:58 UTC
7728b47 SF #994605, fcntl example is broken The last call to fcntl (which wasn't changed) doesn't work for me, but the first part works now. Backport candidate. 21 July 2004, 01:41:14 UTC
dc8e194 Fix SF #994580, typo in time.tzsets docstring. Backport candidate 20 July 2004, 22:34:37 UTC
0260519 Remove unused variables 20 July 2004, 22:31:34 UTC
d96d101 SF #918101, allow files >= 8 GB using GNU extension 20 July 2004, 22:23:02 UTC
a4f651a SF #857297 and 916874, improve handling of hard links when extracting 20 July 2004, 22:07:44 UTC
0662f8a SF #846659, fix bufsize violation and GNU longname/longlink extensions 20 July 2004, 21:54:18 UTC
13e50fe Add Itanium targets. 20 July 2004, 14:37:48 UTC
4d0bddf Fix bug in addsitedir() to properly handle the lack of a second argument. Fixed to keep backwards-compatibility for the undocumented function. Closes bug #986795. 20 July 2004, 02:28:28 UTC
ad00913 ossaudiodev is available on FreeBSD 5 too. 20 July 2004, 01:42:06 UTC
81aec4b Patch #984654: Add more address family constants. 19 July 2004, 17:01:20 UTC
5e4a3b8 Move comment that goes along with audioop 19 July 2004, 16:55:07 UTC
8fbefe2 Patch #993173: Enable audioop on 64-bit platforms. 19 July 2004, 16:42:20 UTC
b0c319a Patch #993187: Make rstrip doc similar to lstrip. Backported to 2.3. 19 July 2004, 16:34:01 UTC
3a313e3 Check the type of values returned by __int__, __float__, __long__, __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618. 19 July 2004, 16:29:17 UTC
66edb62 Don't return spurious empty fields if 'keep_empty_values' is True. Fixes SF bug #990307. 19 July 2004, 15:38:11 UTC
36a0f89 The binary layout of cfgdata has changed, so the magic number has to change as well. Recompiled binaries after this change. 19 July 2004, 10:07:28 UTC
876d990 The binary layout of cfgdata has changed, so the magic number has to change as well. Display an additional message box when a mismatch is detected. 19 July 2004, 09:57:58 UTC
b8f134e The binary layout of cfgdata has changed, so the magic number has to change as well. Add a comment explaining this. 19 July 2004, 09:45:46 UTC
back to top