summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #10989: Fix a crash on SSLContext.load_verify_locations(None, True).Victor Stinner2011-01-291-1/+1
| | | | Patch reviewed by Antoine Pitrou, okayed by Georg Brandl.
* Issue #11004: Repair edge case in deque.count().Raymond Hettinger2011-01-251-4/+7
| | | | | | | | | (Reviewed by Georg Brandl.) Also made similar changes to deque.reverse() though this wasn't strictly necessary (the edge case cannot occur with two pointers moving to meet in the middle). Making the change in reverse() was more a matter of future-proofing.
* Issue #10987: Fix the recursion limit handling in the _pickle module.Antoine Pitrou2011-01-231-12/+19
|
* Issue #10955: zipimport uses ASCII at bootstrapVictor Stinner2011-01-221-1/+19
| | | | | | | zipimport uses ASCII encoding instead of cp497 to decode filenames, at bootstrap, if the codec registry is not ready yet. It is still possible to have non-ASCII filenames using the Unicode flag (UTF-8 encoding) for file entries in the ZIP file.
* Issue #10955: Fix a potential crash when trying to mmap() a file past itsAntoine Pitrou2011-01-201-0/+11
| | | | | | length. Initial patch by Ross Lagerwall. This fixes a regression introduced by r88022.
* Issue #10898: Allow compiling the posix module when the C library definesAntoine Pitrou2011-01-191-0/+2
| | | | a symbol named FSTAT.
* Fix mmap and test_mmap under Windows too (followup to r88022)v3.2rc1Antoine Pitrou2011-01-151-0/+1
|
* Issue #10916: mmap should not segfault when a file is mapped using 0 asAntoine Pitrou2011-01-151-1/+1
| | | | | | | length and a non-zero offset, and an attempt to read past the end of file is made (IndexError is raised instead). Patch by Ross Lagerwall. Requested by Georg.
* Remove call to nonexisting function (relic from Python 2.x) under #ifdef ↵Eli Bendersky2011-01-141-1/+0
| | | | __INSURE__. Issue 9844
* Issue #5109: array.array constructor will now use fast code whenAlexander Belopolsky2011-01-111-5/+15
| | | | initial data is provided in an array object with correct type.
* Issue #1726687: time.mktime() will now correctly compute value oneAlexander Belopolsky2011-01-111-1/+4
| | | | | second before epoch. Original patch by Peter Wang, reported by Martin Blais.
* Issue #9611: remove useless and dangerous explicit conversion to size_tVictor Stinner2011-01-112-3/+3
|
* Issue #9566: Fix pyparse.xmlparser.ParseFile()Victor Stinner2011-01-101-22/+12
| | | | | | Fix readinst() if file.read(n) returns a bytes object longer than n: return -1 instead of the the buffer size to raise an exception. Simplify also the function code.
* Issue #10872: The repr() of TextIOWrapper objects now includes the modeAntoine Pitrou2011-01-091-7/+34
| | | | | | if available. (at Georg's request)
* Issue #10864: limit year to [1; 9999] for strftime() on SolarisVictor Stinner2011-01-081-1/+1
|
* Issue #1777412: Remove all limits on tm_year from time.strftime()Victor Stinner2011-01-081-8/+1
| | | | The buildbots will tell us which platform does support or not negative years.
* Issue #1777412: strftime() accepts year >= 1 instead of year >= 1900Victor Stinner2011-01-081-6/+12
| | | | | * With Visual Studio, year have to be in [1; 9999] * Add more tests on the year field
* Fixed error handling branches. ThanksAlexander Belopolsky2011-01-081-14/+19
| | | | Victor Stinner for pointing this out.
* Issue #1777412: extended year range of strftime down to 1000.Alexander Belopolsky2011-01-082-8/+8
|
* Issue #10827: Changed the rules for 2-digit years. The time.asctimeAlexander Belopolsky2011-01-071-15/+32
| | | | | | | | function will now format any year when time.accept2dyear is false and will accept years >= 1000 otherwise. The year range accepted by time.mktime and time.strftime is still system dependent, but time.mktime will now accept full range supported by the OS. Conversion of 2-digit years to 4-digit is deprecated.
* Issue #10841: set binary mode on files; the parser translates newlinesVictor Stinner2011-01-072-3/+11
| | | | | | On Windows, set the binary mode on stdin, stdout, stderr and all io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser translates newlines (\r\n => \n).
* Further simplify gettmarg()Alexander Belopolsky2011-01-061-19/+5
|
* Issue #7858: Raise an error properly when os.utime() fails under WindowsAntoine Pitrou2011-01-061-0/+1
| | | | | | on an existing file. (this does not seem to be easily testable)
* Use PyOS_snprintf for better portability.Alexander Belopolsky2011-01-061-5/+5
|
* - time.accept2dyear = True is now equivalent to time.accept2dyear = 1Alexander Belopolsky2011-01-051-34/+19
| | | | | | - removed unnecessary struct_time to tuple conversion - added more unit tests (See issue #10827 for discussion.)
* Issue #10756: atexit normalizes the exception before displaying it.Victor Stinner2011-01-051-0/+1
|
* test_unicode: use ctypes to test PyUnicode_FromFormat()Victor Stinner2011-01-051-12/+0
| | | | | Instead of _testcapi.format_unicode() because it has a limited API: it requires exactly one argument of type unicode.
* Issue #9566: PyUnicode_FromFormatV() doesn't support %zi, use %zd insteadVictor Stinner2011-01-041-1/+1
|
* Issue #9566: explain why (int)len cannot underflowVictor Stinner2011-01-041-0/+1
|
* Whitespace cleanupAlexander Belopolsky2011-01-041-2/+1
|
* Issue #8013: time.asctime and time.ctime no longer call system asctimeAlexander Belopolsky2011-01-041-22/+39
| | | | | | | and ctime functions. The year range for time.asctime is now 1900 through maxint. The range for time.ctime is the same as for time.localtime. The string produced by these functions is longer than 24 characters when year is greater than 9999.
* Issue #9566: use Py_ssize_t instead of intVictor Stinner2011-01-0410-26/+23
|
* Issue #8650: zlib.compress() and zlib.decompress() raise an OverflowError ifVictor Stinner2011-01-041-4/+18
| | | | | the input buffer length doesn't fit into an unsigned int (length bigger than 2^32-1 bytes).
* Issue #9015, #9611: FileIO.readinto(), FileIO.write() and os.write() clamp theVictor Stinner2011-01-042-6/+27
| | | | length to 2^31-1 on Windows.
* Issue #10333: Remove ancient GC API, which has been deprecated sinceAntoine Pitrou2011-01-042-9/+1
| | | | Python 2.2.
* Issue #10806, issue #9905: Fix subprocess pipes when some of the standardAntoine Pitrou2011-01-031-8/+21
| | | | | file descriptors (0, 1, 2) are closed in the parent process. Initial patch by Ross Lagerwall.
* Make C helper function more closely match the pure python version, and add ↵Raymond Hettinger2011-01-031-22/+49
| | | | tests.
* #8278: In the Windows implementation of stat() and utime(),Amaury Forgeot d'Arc2011-01-031-12/+21
| | | | | use time_t instead of int. This gives support for dates after 2038, at least when compiled with VS2003 or later, where time_t is 64bit.
* #8013 follow-up:Georg Brandl2011-01-021-7/+13
| | | | | | * In asctime and ctime, properly remove the newline if the year has more than four digits * Consistent error message for both functions * Fix the test comments and add a check for the removed newline
* issue10802: fallback to pipe+fcntl when the pipe2 syscall fails with errno ↵Gregory P. Smith2011-01-021-17/+29
| | | | ENOSYS.
* Issue #8013: Fixed time.asctime segfault when OS's asctime failsAlexander Belopolsky2011-01-021-0/+4
|
* Add sys.flags.quiet attribute for the new -q option, as noted missing by ↵Georg Brandl2010-12-281-3/+2
| | | | Eric in #1772833.
* Fix #9333. The symlink function is always available now, raising OSErrorBrian Curtin2010-12-281-19/+13
| | | | when the user doesn't hold the symbolic link privilege rather than hiding it.
* Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8Victor Stinner2010-12-281-21/+6
| | | | | | | * Replace "bytes" by "bytes object" in struct error messages * Document the API change in What's new in Python 3.2 * Fix test_wave * Remove also ugly implicit conversions in test_struct
* Issue #10254: Fixed a crash and a regression introduced by the ↵Alexander Belopolsky2010-12-231-4/+9
| | | | implementation of PRI 29.
* fix a compiler warning about err_msg potentially being used uninitialized.Gregory P. Smith2010-12-221-1/+1
|
* Issue #10750: The `raw` attribute of buffered IO objects is now read-only.Antoine Pitrou2010-12-211-3/+3
|
* #9907: call rl_initialize early when using editline on OSXR. David Murray2010-12-181-2/+15
| | | | | | | | | | editline rl_initialize apparently discards any mappings done before it is called, which makes tab revert to file completion instead of inserting a tab. So now on OSX we call rl_initialize first if we are using readline, and then re-read the users .editrc (if any) afterward so they can still override our defaults. Patch by Ned Deily, modified by Ronald Oussoren.
* Issue #8844: Regular and recursive lock acquisitions can now be interruptedAntoine Pitrou2010-12-151-13/+67
| | | | by signals on platforms using pthreads. Patch by Reid Kleckner.
* Issue 10667: Fast path for collections.CounterRaymond Hettinger2010-12-151-1/+67
|