summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* #775964: skip YP/NIS entries instead of failing the testR. David Murray2010-12-141-1/+3
| | | | | | | Also includes doc updates mentioning that these entries may not be retrievable via getgrnam and getgrgid. Patch by Bobby Impollonia.
* Issue #6559: fix the subprocess.Popen pass_fds implementation. Add a unittest.Gregory P. Smith2010-12-141-1/+1
| | | | | | | | Issue #7213: Change the close_fds default on Windows to better match the new default on POSIX. True when possible (False if stdin/stdout/stderr are supplied). Update the documentation to reflect all of the above.
* #10699: fix docstring for tzset: it does not take a parameterR. David Murray2010-12-141-1/+1
| | | | Thanks to Garrett Cooper for the fix.
* issue7213: Open the pipes used by subprocesses with the FD_CLOEXEC flag fromGregory P. Smith2010-12-131-0/+44
| | | | | the C code, using pipe2() when available. Adds unittests for close_fds and cloexec behaviors.
* Reverted accidental commit (from r87159)Alexander Belopolsky2010-12-101-12/+22
|
* Updated UCD version and unicode.org links to Unicode 6.0.0Alexander Belopolsky2010-12-101-22/+12
|
* Should call Py_INCREF for Py_None (Modules/_ssl.c: PySSL_cipher)Hirokazu Yamamoto2010-12-091-2/+4
|
* Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵Alexander Belopolsky2010-12-088-77/+115
| | | | NULL
* Issue #10637: Called CloseHandle twice in os.stat/os.lstat (Windows)Hirokazu Yamamoto2010-12-071-4/+4
|
* Should use posix_error here.Hirokazu Yamamoto2010-12-051-5/+3
|
* Sorry, I had introduced tab in source code.Hirokazu Yamamoto2010-12-051-1/+1
|
* issue6559: Adds a pass_fds parameter to subprocess.Popen that allows the callerGregory P. Smith2010-12-041-9/+33
| | | | to list exactly which file descriptors should be kept open.
* #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; ↵Georg Brandl2010-12-041-9/+17
| | | | the code follows unicode_repeat.
* #1772833: add -q command line option.Georg Brandl2010-12-041-3/+10
|
* Fixed several corner case issues on os.stat/os.lstat related to reparseHirokazu Yamamoto2010-12-041-93/+110
| | | | | | | points. (Windows) - Set S_IEXEC via final path name not link name. - Set S_IFLNK also via FindFirstFile (when CreateFile fails)
* #6045: provide at least get() and setdefault() for all dbm modules.Georg Brandl2010-12-041-0/+47
|
* Merge branches/pep-0384.Martin v. Löwis2010-12-038-13/+296
|
* Issue #10272: The ssl module now raises socket.timeout instead of a genericAntoine Pitrou2010-12-033-7/+10
| | | | SSLError on socket timeouts.
* Issue #10478: Reentrant calls inside buffered IO objects (for example byAntoine Pitrou2010-12-031-19/+52
| | | | | way of a signal handler) now raise a RuntimeError instead of freezing the current process.
* Simplify the signature for itertools.accumulate() to match numpy. Handle ↵Raymond Hettinger2010-12-031-23/+15
| | | | one item iterable the same way as min()/max().
* Fix #9333. Expose os.symlink on Windows only when usable.Brian Curtin2010-12-021-8/+55
| | | | | | | | | | | | | | | | In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege is an account privilege that is required to be held by the user. Not only must the privilege be enabled for the account, the activated privileges for the currently running application must be adjusted to enable the requested privilege. Rather than exposing an additional function to be called prior to the user's first os.symlink call, we handle the AdjustTokenPrivileges Windows API call internally and only expose os.symlink when the privilege escalation was successful. Due to the change of only exposing os.symlink when it's available, we can go back to the original test skipping methods of checking via `hasattr`.
* Add itertools.accumulate().Raymond Hettinger2010-12-011-0/+142
|
* Issue #4113: Added custom __repr__ method to functools.partial.Alexander Belopolsky2010-12-011-1/+43
|