log Python/getargs.c @ 46644:ea594306ea85

age author description
Tue, 22 Apr 2008 19:02:40 +0000 Trent Nelson Issue 2440: remove the guard around the handling of case 'n' in getargs.c's convertsimple() such that we always treat it as an index type, regardless of whether or not sizeof(size_t) == sizeof(long). Fix the test_args2.Signed_TestCase.test_n() such that it tests for adherence to PEP 357 (don't try and coerce objects that don't have nb_index slots but do have nb_int slots (i.e. floats) into indexes 'just because we can'). Three other commits are related to this one: r62269 and r62279, which were changes to PyNumber_Index (among other things) to check for nb_int slots when we lack nb_index slots -- and r62292, which is when I reverted these changes after various people pointed out that the test was in fact wrong, not the code.
Fri, 11 Apr 2008 23:02:37 +0000 Trent Nelson Issue 2440: revert r62269 and r62279. These changes were made in an effort to fix test_args2.Signed_TestCase.test_n(), which was failing on Windows x64 on the following line: 'self.failUnlessEqual(99, getargs_n(Long()))'. Although the two commits *did* fix the test on Windows x64, it's become clear that it's the test that's incorrect, and the changes to PyNumber_Index() in particular were not warranted (and actually violate PEP 357). This commit will get us back to where we were at r62268, before I started butchering things.
Thu, 10 Apr 2008 16:25:37 +0000 Trent Nelson Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that have nb_int slots, and update test_getargs2 to test that an exception is thrown when __int__() returns a non-int object.
Fri, 21 Mar 2008 20:46:11 +0000 Georg Brandl Add XXX comments for whoever cleans up getargs.c :)
Thu, 28 Feb 2008 11:19:05 +0000 Christian Heimes Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61062,61066,61068,61070,61081-61095 via svnmerge from
Tue, 26 Feb 2008 08:18:30 +0000 Christian Heimes Merged revisions 61038,61042-61045,61047,61050,61053,61055-61056,61061-61064,61066-61080 via svnmerge from
Sun, 02 Dec 2007 14:31:20 +0000 Christian Heimes Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
Fri, 30 Nov 2007 22:12:06 +0000 Christian Heimes Merged revisions 59239-59244 via svnmerge from
Thu, 22 Nov 2007 02:48:12 +0000 Amaury Forgeot d'Arc PyString_AsString is permissive and accepts unicode strings.
Wed, 21 Nov 2007 21:53:51 +0000 Guido van Rossum Fix error messages for buffer objects to say "bytes" instead of "string".
Tue, 06 Nov 2007 21:34:58 +0000 Guido van Rossum Merging the py3k-pep3137 branch back into the py3k branch.
Tue, 23 Oct 2007 19:24:22 +0000 Georg Brandl #1316: remove redundant PyLong_Check calls when PyInt_Check was already called.
Sun, 14 Oct 2007 02:05:51 +0000 Alexandre Vassalotti Remove the buffer API from PyUnicode as specified by PEP 3137. Also,
Sat, 13 Oct 2007 21:03:27 +0000 Travis E. Oliphant Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer interface. Fix up array module to export the correct format for wide-builds.
Sun, 23 Sep 2007 02:00:13 +0000 Travis E. Oliphant Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
Fri, 31 Aug 2007 05:32:33 +0000 Neal Norwitz Ugh, hopefully I can get this right. The code is only compiled on Win64
Fri, 31 Aug 2007 05:20:36 +0000 Neal Norwitz Try to fix the problem of passing a non-int on Win64 right this time.
Fri, 31 Aug 2007 04:31:47 +0000 Neal Norwitz Try to fix a problem with large values on Win64. Diagnosed by Thomas Heller
Wed, 29 Aug 2007 18:38:11 +0000 Guido van Rossum Three patches from issue #1047, by Amaury Forgeot d'Arc:
Sat, 18 Aug 2007 11:21:56 +0000 Travis E. Oliphant Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118.
Sun, 01 Jul 2007 21:58:22 +0000 Walter Dörwald Revert r56044 (which changed the %c format specifier to accept a
Wed, 20 Jun 2007 11:02:38 +0000 Walter Dörwald Change %c format specifier for PyArg_ParseTuple() so that it accepts
Wed, 09 May 2007 23:35:09 +0000 Guido van Rossum Be more robust around bytes for e[st]#? formats.
Mon, 07 May 2007 23:57:08 +0000 Guido van Rossum Checkpoint. A b it closer to working pickles and pickletools.
Fri, 04 May 2007 19:28:21 +0000 Walter Dörwald Change UnicodeDecodeError objects so that the 'object' attribute
Fri, 04 May 2007 04:17:33 +0000 Guido van Rossum Compare and hash unicode objects like their UTF-8 representations.
Fri, 04 May 2007 00:41:39 +0000 Guido van Rossum More coding by random modification.
Thu, 03 May 2007 17:49:24 +0000 Guido van Rossum Get rid of all #ifdef Py_USING_UNICODE (it is always present now).
Fri, 27 Apr 2007 23:53:51 +0000 Guido van Rossum Checkpoint. Manipulated things so that string literals are always
Sun, 14 Jan 2007 03:31:43 +0000 Guido van Rossum Merged the int/long unification branch, by very crude means (sorry Thomas!).
Wed, 13 Dec 2006 04:49:30 +0000 Thomas Wouters Four months of trunk changes (including a few releases...)
Fri, 11 Aug 2006 14:57:12 +0000 Thomas Wouters Merged revisions 46753-51188 via svnmerge from
Thu, 27 Jul 2006 21:53:35 +0000 Guido van Rossum Get rid of most of the flags (in tp_flags) that keep track of various
Fri, 21 Apr 2006 10:40:58 +0000 Thomas Wouters Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
Wed, 15 Mar 2006 04:58:47 +0000 Guido van Rossum Checkpoint. 218 tests are okay; 53 are failing. Done so far:
Wed, 01 Mar 2006 21:31:21 +0000 Thomas Wouters Fix C99-ism, and add XXX to comment legacy-trunk
Wed, 01 Mar 2006 05:38:39 +0000 Thomas Wouters Use %zd format characters for Py_ssize_t types. legacy-trunk
Wed, 01 Mar 2006 04:06:10 +0000 Martin v. Löwis Use Py_ssize_t for PyArg_UnpackTuple arguments. legacy-trunk
Mon, 27 Feb 2006 16:46:16 +0000 Martin v. Löwis Revert backwards-incompatible const changes. legacy-trunk
Mon, 20 Feb 2006 18:57:39 +0000 Neal Norwitz Based on discussion with Martin and Thomas on python-checkins legacy-trunk
Sun, 19 Feb 2006 19:34:15 +0000 Neal Norwitz Fix compiler warning on amd64. We can't use zd here since this is legacy-trunk
Thu, 16 Feb 2006 14:37:16 +0000 Martin v. Löwis Use Py_ssize_t to count the legacy-trunk
Wed, 15 Feb 2006 17:27:45 +0000 Martin v. Löwis Merge ssize_t branch. legacy-trunk
Fri, 20 Jan 2006 17:53:27 +0000 Georg Brandl typo legacy-trunk
Mon, 19 Dec 2005 06:10:07 +0000 Neal Norwitz Remove extra parens legacy-trunk
Mon, 19 Dec 2005 06:05:18 +0000 Neal Norwitz Fix SF bug #1072182, problems with signed characters. legacy-trunk
Sat, 10 Dec 2005 18:50:16 +0000 Jeremy Hylton Add const to several API functions that take char *. legacy-trunk
Wed, 14 Sep 2005 19:29:53 +0000 Georg Brandl Complete format code support in getargs.c::skipitem(), which is called when legacy-trunk
Fri, 26 Aug 2005 06:42:30 +0000 Georg Brandl Disallow keyword arguments for type constructors that don't use them. legacy-trunk
Wed, 30 Mar 2005 16:41:55 +0000 Michael W. Hudson I suppose a bug report or even a fix would be a better response, but legacy-trunk
Wed, 09 Aug 2006 07:15:29 +0000 Georg Brandl Backport fixes for #1523610 (crashes in PyArg_ParseTuple): 2.4
Thu, 08 Jun 2006 13:31:14 +0000 Georg Brandl Argh. "integer" is a very confusing word ;) 2.4
Thu, 08 Jun 2006 12:45:05 +0000 Georg Brandl Bug #1502750: Fix getargs "i" format to use LONG_MIN and LONG_MAX for bounds checking. 2.4
Wed, 14 Sep 2005 19:30:11 +0000 Georg Brandl Complete format code support in getargs.c::skipitem(), which is called when 2.4
Fri, 26 Aug 2005 06:43:16 +0000 Georg Brandl Disallow keyword arguments for type constructors that don't use them 2.4
Thu, 03 Mar 2005 12:26:20 +0000 Martin v. Löwis Revert previous checkin on getargs 'L' code. Try to convert all 2.4
Thu, 03 Mar 2005 09:24:05 +0000 Martin v. Löwis Clear internal call error in 'L' format. Fixes #723201. 2.4
Sat, 07 Aug 2004 17:57:16 +0000 Michael W. Hudson Fix legacy-trunk
Sat, 10 Jul 2004 22:20:32 +0000 Brett Cannon Add PyArg_VaParseTupleAndKeywords(). Document this function and legacy-trunk
Sat, 03 May 2003 10:00:22 +0000 Martin v. Löwis Patch #684981: Add cleanup capability for argument parsers. Fixes 501716. legacy-trunk