<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/fileobject.c, branch v2.1c2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.1c2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/fileobject.c?h=v2.1c2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-04-14T17:55:09Z</updated>
<entry>
<title>Make some private symbols static.</title>
<updated>2001-04-14T17:55:09Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-14T17:55:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f68d8e52e7ce833d123de034a4f123ec710a639f'/>
<id>urn:sha1:f68d8e52e7ce833d123de034a4f123ec710a639f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Two improvements to large file support:</title>
<updated>2001-03-01T18:26:53Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-03-01T18:26:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f53da07bf79b98c4131fcb9a49e6987298973a7'/>
<id>urn:sha1:4f53da07bf79b98c4131fcb9a49e6987298973a7</id>
<content type='text'>
- In _portable_ftell(), try fgetpos() before ftello() and ftell64().
  I ran into a situation on a 64-bit capable Linux where the C
  library's ftello() and ftell64() returned negative numbers despite
  fpos_t and off_t both being 64-bit types; fgetpos() did the right
  thing.

- Define a new typedef, Py_off_t, which is either fpos_t or off_t,
  depending on which one is 64 bits.  This removes the need for a lot
  of #ifdefs later on.  (XXX Should this be moved to pyport.h?  That
  file currently seems oblivious to large fille support, so for now
  I'll leave it here where it's needed.)
</content>
</entry>
<entry>
<title>Move distributed and duplicated config for stat() and fstat() into pyport.h.</title>
<updated>2001-01-18T03:03:16Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-18T03:03:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=60f42b50d894d3c9798c50e063ae758a1a5987a2'/>
<id>urn:sha1:60f42b50d894d3c9798c50e063ae758a1a5987a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rationalizing the fallback code for portable fseek -- this is all much</title>
<updated>2001-01-16T20:53:31Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-16T20:53:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e54e0be3b6f611914a078ec646a269a71fa8bf7f'/>
<id>urn:sha1:e54e0be3b6f611914a078ec646a269a71fa8bf7f</id>
<content type='text'>
simpler if we use fgetpos and fsetpos, rather than trying to mess with
platform-specific TELL64 alternatives.

Of course, this hasn't been tested on a 64-bit platform, so I may have
to withdraw this -- but I'm hopeful, and Trent Mick supports this
patch!
</content>
</entry>
<entry>
<title>Speed getline_via_fgets(), by supplying two "fast paths", although one is</title>
<updated>2001-01-15T10:36:56Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T10:36:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=142297ac9204042743c72cee04ec501236c7986d'/>
<id>urn:sha1:142297ac9204042743c72cee04ec501236c7986d</id>
<content type='text'>
faster than the other.  Should be faster for Mark Favas's 254-character
mail log lines, and *is* 3-4% quicker for my test case with much shorter
lines (but they're typical of *my* text files, and I'm tired of optimizing
for everyone else at my expense &lt;wink&gt; -- in fact, the only one who loses
here is Guido ...).
</content>
</entry>
<entry>
<title>Use the "MS" getline hack (fgets()) by default on non-get_unlocked</title>
<updated>2001-01-15T06:33:19Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-15T06:33:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f29b64d243a5a1fd64923b9fe40f582fc6eb592a'/>
<id>urn:sha1:f29b64d243a5a1fd64923b9fe40f582fc6eb592a</id>
<content type='text'>
platforms.  See NEWS for details.
</content>
</entry>
<entry>
<title>Jeff Epler's patch adding an xreadlines() method.  (It just imports</title>
<updated>2001-01-09T21:50:24Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-09T21:50:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e07d5cf9663c69d4656249df65543fdca7d6966c'/>
<id>urn:sha1:e07d5cf9663c69d4656249df65543fdca7d6966c</id>
<content type='text'>
the xreadlines module and lets it do its thing.)
</content>
</entry>
<entry>
<title>Tsk, tsk, tsk.  Treat FreeBSD the same as the other BSDs when defining</title>
<updated>2001-01-09T02:00:11Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-09T02:00:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dcf5715db180e09e2ce150e42ce3a6fb4b1b1888'/>
<id>urn:sha1:dcf5715db180e09e2ce150e42ce3a6fb4b1b1888</id>
<content type='text'>
a fallback for TELL64.  Fixes SF Bug #128119.
</content>
</entry>
<entry>
<title>A few reformats; no logic changes.</title>
<updated>2001-01-08T04:02:07Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-01-08T04:02:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1c73323d6fb1807123ccbf56019d70d4832f9590'/>
<id>urn:sha1:1c73323d6fb1807123ccbf56019d70d4832f9590</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Let's hope that three time's a charm...</title>
<updated>2001-01-08T01:26:47Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-01-08T01:26:47Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8628206b954541e1d47fe38f4c215ebbdb16baed'/>
<id>urn:sha1:8628206b954541e1d47fe38f4c215ebbdb16baed</id>
<content type='text'>
Tim discovered another "bug" in my get_line() code: while the comments
said that n&lt;0 was invalid, it was in fact still called with n&lt;0 (when
PyFile_GetLine() was called with n&lt;0).  In that case fortunately
executed the same code as for n==0.

Changed the comment to admit this fact, and changed Tim's MS speed
hack code to use 'n &lt;= 0' as the criteria for the speed hack.
</content>
</entry>
</feed>
