78 Commits (0cb8e5131d0797d3bdb1494de842e98798174cf2)

Author SHA1 Message Date
Antoine Pitrou 796564c27b Issue #18112: PEP 442 implementation (safe object finalization). 13 years ago
Victor Stinner 85c761d3d3 Issue #18408: Fix fileio_read() on _PyBytes_Resize() failure 13 years ago
Victor Stinner 14b9b11098 If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified. 13 years ago
Christian Heimes 91e8b8180d Check for correct macro, code uses S_ISDIR(). 13 years ago
Victor Stinner 3e269397e3 FileIO.readall(): remove trailing space from an exception message 13 years ago
Richard Oudkerk af7260e81a Issue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity. 13 years ago
Serhiy Storchaka 74f49ab28b Issue #15989: Fix several occurrences of integer overflow 13 years ago
Serhiy Storchaka 441d30fac7 Issue #15989: Fix several occurrences of integer overflow 13 years ago
Serhiy Storchaka 7898043868 Issue #15989: Fix several occurrences of integer overflow 13 years ago
Victor Stinner c44057dfbd Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB 13 years ago
Victor Stinner 23a32ba0e5 Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB 13 years ago
Victor Stinner 292c835548 Issue #15478: Raising an OSError doesn't decode or encode the filename anymore 14 years ago
Gregory P. Smith 99716166b1 Fixes Issue #12268 for the io module - File readline, readlines and 14 years ago
Antoine Pitrou 9235b254dc Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 14 years ago
Antoine Pitrou c2ec992698 Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 14 years ago
Gregory P. Smith 5135992164 Fixes issue #12268: File readline, readlines and read() or readall() methods 14 years ago
Hynek Schlawack 7f59fd7c7c Simplify code in fileio_init 14 years ago
Hynek Schlawack 9ed8b4e4ca #10053: Don't close FDs when FileIO.__init__ fails 14 years ago
Hynek Schlawack 9bd4bf2a3d #10053: Don't close FDs when FileIO.__init__ fails 14 years ago
Hynek Schlawack 2cc7156515 #4841: Fix FileIO constructor to honor closefd when called repeatedly 14 years ago
Hynek Schlawack 877effc298 #4841: Fix FileIO constructor to honor closefd when called repeatedly 14 years ago
Antoine Pitrou a3f4457b17 Speed up reading of small files. This avoids multiple C read() calls on pyc files. 14 years ago
Antoine Pitrou 1334884ff2 Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name. 14 years ago
Charles-François Natali d612de10e5 Issue #12760: Refer to the new 'x' open mode as "exclusive creation" mode. 14 years ago
Charles-François Natali dc3044c704 Issue #12760: Add a create mode to open(). Patch by David Townshend. 14 years ago
Antoine Pitrou c345ce1a69 Issue #10350: Read and save errno before calling a function which might overwrite it. 14 years ago
Martin v. Löwis 767046aab1 Replace {Get,Set,Has}AttrString with *AttrId. 15 years ago
Ross Lagerwall 59142db6d3 Issue #12797: Added custom opener parameter to builtin open() and FileIO.open(). 15 years ago
Martin v. Löwis bd928fef42 Rename _Py_identifier to _Py_IDENTIFIER. 15 years ago
Nadeem Vawda 36248154a9 Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one. 15 years ago
Nadeem Vawda d41a98bdd9 Issue #13159: Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one. 15 years ago
Victor Stinner c5af7730e3 Fix FileIO.readall() (new_buffersize()) for large files 15 years ago
Victor Stinner a2a6477ba0 Fix io.FileIO.readall() on Windows 64 bits 15 years ago
Martin v. Löwis afe55bba33 Add API for static strings, primarily good for identifiers. 15 years ago
Victor Stinner fe9a861e74 fileio_init() checks for failure on conversion to Py_UNICODE* 15 years ago
Victor Stinner c655a726db Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows. 15 years ago
Victor Stinner 59729ff609 Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and 15 years ago
Victor Stinner e9d44ccb22 Issue #12175: FileIO.readall() now only reads the file position and size once. 15 years ago
Victor Stinner 5100a405dc Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if 15 years ago
Victor Stinner b79f28ccbd Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if 15 years ago
Victor Stinner e0daff1c61 Issue #11395: io.FileIO().write() clamps the data length to 32,767 bytes on 15 years ago
Victor Stinner 7234479580 Issue #9611: remove useless and dangerous explicit conversion to size_t 15 years ago
Victor Stinner 89e3436606 Issue #10841: set binary mode on files; the parser translates newlines 15 years ago
Victor Stinner e6edec2371 Issue #9015, #9611: FileIO.readinto(), FileIO.write() and os.write() clamp the 15 years ago
Georg Brandl d62ecbf0ba Merged revisions 85728,85731,85735,85766-85771,85773,85777 via svnmerge from 16 years ago
Georg Brandl 1060380ea4 Merged revisions 85768-85771,85773,85777,85823,85825 via svnmerge from 16 years ago
Antoine Pitrou 243757eb79 Issue #10180: Pickling file objects is now explicitly forbidden, since 16 years ago
Antoine Pitrou 594a046b88 Merged revisions 85982 via svnmerge from 16 years ago
Antoine Pitrou 735e3b195a Merged revisions 85982 via svnmerge from 16 years ago
Benjamin Peterson bbb0412ad1 if FileIO.__init__ fails, close fd 16 years ago