<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/fileobject.c, branch v2.2a3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.2a3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.2a3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-09-06T00:32:15Z</updated>
<entry>
<title>Enable large file support on Win32 systems.</title>
<updated>2001-09-06T00:32:15Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-09-06T00:32:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6e13a562ae01a962612ca76f9afcc7211240236e'/>
<id>urn:sha1:6e13a562ae01a962612ca76f9afcc7211240236e</id>
<content type='text'>
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions &gt; 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
</content>
</entry>
<entry>
<title>Changes to automatically enable large file support on some systems.</title>
<updated>2001-09-05T14:58:11Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-09-05T14:58:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b855216099771117388fdf38df80e5214e812955'/>
<id>urn:sha1:b855216099771117388fdf38df80e5214e812955</id>
<content type='text'>
I believe this works on Linux (tested both on a system with large file
support and one without it), and it may work on Solaris 2.7.

The changes are twofold:

(1) The configure script now boldly tries to set the two symbols that
    are recommended (for Solaris and Linux), and then tries a test
    script that does some simple seeking without writing.

(2) The _portable_{fseek,ftell} functions are a little more systematic
    in how they try the different large file support options: first
    try fseeko/ftello, but only if off_t is large; then try
    fseek64/ftell64; then try hacking with fgetpos/fsetpos.

I'm keeping my fingers crossed.  The meaning of the
HAVE_LARGEFILE_SUPPORT macro is not at all clear.

I'll see if I can get it to work on Windows as well.
</content>
</entry>
<entry>
<title>repr's converted to using PyString_FromFormat() instead of sprintf'ing</title>
<updated>2001-08-24T18:34:26Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2001-08-24T18:34:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ce3694a527afe425a2b9df65c049b0ef4e75960'/>
<id>urn:sha1:7ce3694a527afe425a2b9df65c049b0ef4e75960</id>
<content type='text'>
into a hardcoded char* buffer.

Closes patch #454743.
</content>
</entry>
<entry>
<title>Patch #427190: Implement and use METH_NOARGS and METH_O.</title>
<updated>2001-08-16T13:15:00Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2001-08-16T13:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e3eb1f2b2320bceb10a763ec8691200b85ec287a'/>
<id>urn:sha1:e3eb1f2b2320bceb10a763ec8691200b85ec287a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply anonymous SF patch #441229.</title>
<updated>2001-08-09T18:14:59Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-09T18:14:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=29206bc8a3641b6d15cd5c30a3a74658d582362a'/>
<id>urn:sha1:29206bc8a3641b6d15cd5c30a3a74658d582362a</id>
<content type='text'>
  Previously, f.read() and f.readlines() checked for
  errors on their file object and possibly raised an
  IOError, but f.readline() didn't. This patch makes
  f.readline() behave like the others.

Note that I've added a call to clearerr() since the other calls to
ferror() include that too.

I have no way to test this code. :-)
</content>
</entry>
<entry>
<title>Remove spurious "closed" attribute definition from the memberlist</title>
<updated>2001-08-06T18:51:38Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-08-06T18:51:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=63e0a645624e7772a3c0c7132d8051d1af2d8320'/>
<id>urn:sha1:63e0a645624e7772a3c0c7132d8051d1af2d8320</id>
<content type='text'>
table.  (reported as an aside in SF #446049).
</content>
</entry>
<entry>
<title>Merge of descr-branch back into trunk.</title>
<updated>2001-08-02T04:15:00Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-08-02T04:15:00Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d6c1a35e08b95a83dbe47dbd9e6474daff00354'/>
<id>urn:sha1:6d6c1a35e08b95a83dbe47dbd9e6474daff00354</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Kill more warnings from the SGI compiler.</title>
<updated>2001-07-19T21:49:38Z</updated>
<author>
<name>Fred Drake</name>
<email>fdrake@acm.org</email>
</author>
<published>2001-07-19T21:49:38Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1'/>
<id>urn:sha1:1bc8fab0e770071c8476a92fa0da5c1daa3ad4a1</id>
<content type='text'>
Part of SF patch #434992.
</content>
</entry>
<entry>
<title>file_getiter(): make iter(file) be equivalent to file.xreadlines().</title>
<updated>2001-05-22T16:48:37Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-05-22T16:48:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5b021848ac728b9815d6c5c5b9622d3956665bbb'/>
<id>urn:sha1:5b021848ac728b9815d6c5c5b9622d3956665bbb</id>
<content type='text'>
This should be faster.

This means:

(1) "for line in file:" won't work if the xreadlines module can't be
    imported.

(2) The body of "for line in file:" shouldn't use the file directly;
    the effects (e.g. of file.readline(), file.seek() or even
    file.tell()) would be undefined because of the buffering that goes
    on in the xreadlines module.
</content>
</entry>
<entry>
<title>Mondo changes to the iterator stuff, without changing how Python code</title>
<updated>2001-04-23T14:08:49Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-23T14:08:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=213c7a6aa5889f42495352199715a1c1a0833a00'/>
<id>urn:sha1:213c7a6aa5889f42495352199715a1c1a0833a00</id>
<content type='text'>
sees it (test_iter.py is unchanged).

- Added a tp_iternext slot, which calls the iterator's next() method;
  this is much faster for built-in iterators over built-in types
  such as lists and dicts, speeding up pybench's ForLoop with about
  25% compared to Python 2.1.  (Now there's a good argument for
  iterators. ;-)

- Renamed the built-in sequence iterator SeqIter, affecting the C API
  functions for it.  (This frees up the PyIter prefix for generic
  iterator operations.)

- Added PyIter_Check(obj), which checks that obj's type has a
  tp_iternext slot and that the proper feature flag is set.

- Added PyIter_Next(obj) which calls the tp_iternext slot.  It has a
  somewhat complex return condition due to the need for speed: when it
  returns NULL, it may not have set an exception condition, meaning
  the iterator is exhausted; when the exception StopIteration is set
  (or a derived exception class), it means the same thing; any other
  exception means some other error occurred.
</content>
</entry>
</feed>
