<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/getargs.c, branch v1.5.2b2</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>Patch by Tommy Burnette to accept an arbitrary sequence when "(...)"</title>
<updated>1999-02-17T23:16:43+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-02-17T23:16:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=66368ccc558f9658617aa2a967261da98c153c09'/>
<id>66368ccc558f9658617aa2a967261da98c153c09</id>
<content type='text'>
is used in the format string, instead of requiring a tuple.  This is
in line with the general trend towards accepting arbitrary sequences.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
is used in the format string, instead of requiring a tuple.  This is
in line with the general trend towards accepting arbitrary sequences.
</pre>
</div>
</content>
</entry>
<entry>
<title>Change rare occurrences of #if HAVE_LONG_LONG to #ifdef.</title>
<updated>1999-01-25T21:48:56+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1999-01-25T21:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3dbba6ec3a065a573216bc79b5e4d655ee0cd899'/>
<id>3dbba6ec3a065a573216bc79b5e4d655ee0cd899</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement new format character 't#'.  This is like s#, accepting an</title>
<updated>1998-10-08T02:21:21+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-10-08T02:21:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b317f8aa0d1387f30c72df47bf18cb7517f45f2a'/>
<id>b317f8aa0d1387f30c72df47bf18cb7517f45f2a</id>
<content type='text'>
object that implements the buffer interface, but requires a buffer
that contains 8-bit character data.  Greg Stein.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
object that implements the buffer interface, but requires a buffer
that contains 8-bit character data.  Greg Stein.
</pre>
</div>
</content>
</entry>
<entry>
<title>Patch by Mark Hammond to support 64-bit ints on MS platforms.</title>
<updated>1998-08-25T16:07:15+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-08-25T16:07:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3293b07df58a875afaf3fc82c1e499af59bc99e4'/>
<id>3293b07df58a875afaf3fc82c1e499af59bc99e4</id>
<content type='text'>
The MS compiler doesn't call it 'long long', it uses __int64,
so a new #define, LONG_LONG, has been added and all occurrences
of 'long long' are replaced with it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The MS compiler doesn't call it 'long long', it uses __int64,
so a new #define, LONG_LONG, has been added and all occurrences
of 'long long' are replaced with it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Changes for BeOS, QNX and long long, by Chris Herborth.</title>
<updated>1998-08-04T22:46:29+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-08-04T22:46:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=1a8791e0b875df8e9428c2d9969f64e5967ac0b4'/>
<id>1a8791e0b875df8e9428c2d9969f64e5967ac0b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Another veeeeeery old patch...</title>
<updated>1998-05-15T22:04:07+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-05-15T22:04:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fccfe89753cf73a28894d0c9d3ab53a5ccd91723'/>
<id>fccfe89753cf73a28894d0c9d3ab53a5ccd91723</id>
<content type='text'>
Date:    Thu, 14 Sep 1995 12:18:20 -0400
From:    Alan Morse &lt;alan@dvcorp.com&gt;
To:      python-list@cwi.nl
Subject: getargs bug in 1.2 and 1.3 BETA

We have found a bug in the part of the getargs code that we added
and submitted, and which was incorporated into 1.1.

The parsing of "O?" format specifiers is not handled correctly;
there is no "else" for the "if" and therefore it can never fail.
What's worse, the advancing of the varargs pointer is not
handled properly, so from then on it is out of sync, wreaking
all sorts of havoc. (If it had failed properly, then the out-of-sync
varargs would not have been an issue.)

Below is the context diff for the change.

Note that I have made a few stylistic changes beyond adding the
else case, namely:

1) Making the "O" case follow the convention established by the other
format specifiers of getting all their vararg arguments before
performing the test, rather than getting some before and some after
the test passes.

2) Making the logic of the tests parallel, so the "if" part indicates
that the format is accepted and the "else" part indicates that the
format has failed. They were inconsistent with each other and with the
the other format specifiers.

-Alan Morse (amorse@dvcorp.com)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Date:    Thu, 14 Sep 1995 12:18:20 -0400
From:    Alan Morse &lt;alan@dvcorp.com&gt;
To:      python-list@cwi.nl
Subject: getargs bug in 1.2 and 1.3 BETA

We have found a bug in the part of the getargs code that we added
and submitted, and which was incorporated into 1.1.

The parsing of "O?" format specifiers is not handled correctly;
there is no "else" for the "if" and therefore it can never fail.
What's worse, the advancing of the varargs pointer is not
handled properly, so from then on it is out of sync, wreaking
all sorts of havoc. (If it had failed properly, then the out-of-sync
varargs would not have been an issue.)

Below is the context diff for the change.

Note that I have made a few stylistic changes beyond adding the
else case, namely:

1) Making the "O" case follow the convention established by the other
format specifiers of getting all their vararg arguments before
performing the test, rather than getting some before and some after
the test passes.

2) Making the logic of the tests parallel, so the "if" part indicates
that the format is accepted and the "else" part indicates that the
format has failed. They were inconsistent with each other and with the
the other format specifiers.

-Alan Morse (amorse@dvcorp.com)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make new gcc -Wall happy</title>
<updated>1998-04-10T22:27:42+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-04-10T22:27:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=730806d3d9bd8c54466e4a864b2b1f94df4413d2'/>
<id>730806d3d9bd8c54466e4a864b2b1f94df4413d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Protect PyErr_Format format string argument from overflow (ironically,</title>
<updated>1998-01-19T22:22:44+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1998-01-19T22:22:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0d6b49eff2bae85a7ea5231e665faafc6e598513'/>
<id>0d6b49eff2bae85a7ea5231e665faafc6e598513</id>
<content type='text'>
the error was about a bad format string :-).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the error was about a bad format string :-).
</pre>
</div>
</content>
</entry>
<entry>
<title>Oops -- '(' is also a legal start character of a new format...</title>
<updated>1997-12-19T04:25:23+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-12-19T04:25:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7d4f68c15f9cd63e26dc5da0795b5ad6a44fe470'/>
<id>7d4f68c15f9cd63e26dc5da0795b5ad6a44fe470</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add explicit check for correct next character in format at end of</title>
<updated>1997-12-09T20:36:39+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>1997-12-09T20:36:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=231a41e7085d85591eb5361335a5cc2661c16aa1'/>
<id>231a41e7085d85591eb5361335a5cc2661c16aa1</id>
<content type='text'>
format.  This will complain about illegal formats like "O#" instead of
ignoring the '#'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
format.  This will complain about illegal formats like "O#" instead of
ignoring the '#'.
</pre>
</div>
</content>
</entry>
</feed>
