summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Use ValueError, not RuntimeError for a utime flag combination illegal on ↵Georg Brandl2012-06-261-1/+1
| | | | some systems.
* If main() is called and an argument cannot be decoded, make sure toBrett Cannon2012-06-251-0/+1
| | | | | | free the copy of the command-line. Found using Clang's static analyzer.
* Issue #15181: importlib bytecode is unsigned and shouldn't have negative ↵Antoine Pitrou2012-06-251-3/+4
| | | | | | numbers. This fixes a compiler warning with suncc.
* Update test script to Visual Studio 2010.Stefan Krah2012-06-252-42/+32
|
* Issue #15176: Clarified behavior, documentation, and implementationLarry Hastings2012-06-251-13/+22
| | | | of os.listdir().
* Minor grammar refinement for hmac.compare_digest().Larry Hastings2012-06-251-2/+2
|
* Small wording update from Larry.Georg Brandl2012-06-241-1/+1
|
* Improve hmac.compare_digest() docstring and documentation, courtesy of Larry H.Georg Brandl2012-06-241-7/+7
|
* Make the benchmark more fair for _decimal/decimal.py by setting context.precStefan Krah2012-06-241-6/+6
| | | | only once (float obviously doesn't set any context at all).
* Whitespace cleanup.Georg Brandl2012-06-241-6/+6
|
* Remove unused variable.Georg Brandl2012-06-241-1/+0
|
* Fix a refleak in c82451eeb595.Georg Brandl2012-06-241-3/+1
|
* Issue #15061: Re-implemented hmac.compare_digest() in CChristian Heimes2012-06-241-0/+142
|
* Issue #15118: Change return value of os.uname() and os.times() fromLarry Hastings2012-06-241-24/+138
| | | | | plain tuples to immutable iterable objects with named attributes (structseq objects).
* Closes #15161: add support for giving path as a fd for truncate() and ↵Georg Brandl2012-06-241-20/+62
| | | | pathconf().
* Speed up _decimal by another 10-15% by caching the thread local contextStefan Krah2012-06-241-21/+58
| | | | | that was last accessed. In the pi benchmark (64-bit platform, prec=9), _decimal is now only 1.5x slower than float.
* Issue #14815: Bugfix: the PyLong fed into the seed generator must be unsigned.Larry Hastings2012-06-241-4/+5
|
* Issue #14815: Use Py_ssize_t instead of long for the object hash, toLarry Hastings2012-06-241-2/+2
| | | | preserve all 64 bits of hash on Win64.
* Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-245-10/+49
|\ | | | | | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods.
| * Fixes issue #12268: File readline, readlines and read() or readall() methodsGregory P. Smith2012-06-245-8/+49
| | | | | | | | | | | | no longer lose data when an underlying read system call is interrupted. IOError is no longer raised due to a read system call returning EINTR from within these methods.
* | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"Larry Hastings2012-06-231-34/+67
| | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
* | Fix test_re failure under Windows.Antoine Pitrou2012-06-231-5/+1
| |
* | Try to fix shutil.which() tests on Windows by fixing a typo introduced in ↵Georg Brandl2012-06-231-1/+1
| | | | | | | | 27f9c26fdd8b in posix_access().
* | Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
|\ \ | |/
| * Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
| |
* | Issue #14626: Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)Larry Hastings2012-06-231-2/+5
| |
* | Issue #14626: Fix buildbot issue on x86 Tiger 3.x.Larry Hastings2012-06-231-1/+1
| |
* | Issue #14626: Large refactoring of functions / parameters in the os module.Larry Hastings2012-06-221-2318/+2528
| | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings.
* | Whitespace.Stefan Krah2012-06-221-1/+1
| |
* | Issue #9527: tm_gmtoff has 'correct' sign.Alexander Belopolsky2012-06-221-7/+3
| |
* | MergeAntoine Pitrou2012-06-222-25/+22
|\ \
| * | Issue #15124: Optimize _thread.LockType deletion and acquisition whenKristjan Valur Jonsson2012-06-221-21/+17
| | | | | | | | | | | | not contested, similar to what _thread.RLock already has.
| * | Fixed compiler warnings in datetime_astimezone()Alexander Belopolsky2012-06-221-4/+5
| | |
* | | Add forgotten files for #14837.Antoine Pitrou2012-06-221-0/+1653
| | |
* | | Issue #14837: SSL errors now have `library` and `reason` attributes ↵Antoine Pitrou2012-06-221-63/+199
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | describing precisely what happened and in which OpenSSL submodule. The str() of a SSLError is also enhanced accordingly. NOTE: this commit creates a reference leak. The leak seems tied to the use of PyType_FromSpec() to create the SSLError type. The leak is on the type object when it is instantiated: >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 35 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 36 >>> e = ssl.SSLError() >>> sys.getrefcount(ssl.SSLError) 37
* | Issue #9527: Fixes for platforms without tm_zoneAlexander Belopolsky2012-06-221-20/+22
| |
* | Closes #10142: Support for SEEK_HOLE/SEEK_DATAJesus Cea2012-06-222-3/+25
| |
* | Issue #9527: datetime.astimezone() method will now supply a classAlexander Belopolsky2012-06-221-4/+82
| | | | | | | | | | timezone instance corresponding to the system local timezone when called with no arguments.
* | Issue #14769: test_capi now has SkipitemTest, which cleverly checksLarry Hastings2012-06-221-38/+60
| | | | | | | | | | for "parity" between PyArg_ParseTuple() and the Python/getargs.c static function skipitem() for all possible "format units".
* | Simplify code in fileio_initHynek Schlawack2012-06-221-2/+1
| | | | | | | | | | | | If an identical code line is in both at the end of if and else, it can as well stand after the block. :) The code is from 464cf523485e, I didn't see it before checking the commits in the web interface of course.
* | Document the rest of zlib.compressobj()'s arguments.Nadeem Vawda2012-06-211-4/+17
| | | | | | | | Original patch by Jim Jewett; see issue 14684.
* | Tidy up comments from dd4f7d5c51c7 (zlib compression dictionary support).Nadeem Vawda2012-06-211-1/+1
| |
* | Make lzma.{encode,decode}_filter_properties private.Nadeem Vawda2012-06-211-20/+14
| | | | | | | | | | | | | | | | These functions were originally added to support LZMA compression in the zipfile module, and are not of interest for the majority of users. They can be made public in 3.4 if there is user interest, but in the meanwhile, I've opted to present a smaller, simpler API for the module's initial release.
* | #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-6/+6
|\ \ | |/ | | | | Loosely based on the work by Hirokazu Yamamoto.
| * #10053: Don't close FDs when FileIO.__init__ failsHynek Schlawack2012-06-211-6/+5
| | | | | | | | Loosely based on the work by Hirokazu Yamamoto.
| * Issue #10133: Make multiprocessing deallocate buffer if socket read fails.Richard Oudkerk2012-06-111-13/+16
| | | | | | | | Patch by Hallvard B Furuseth.
* | md5_{init,process,done}: make staticdoko@ubuntu.com2012-06-211-4/+6
| |
* | sha1_{init,process,done}: make staticdoko@ubuntu.com2012-06-211-3/+6
| |
* | ... and fix the name of the sha1 file name.doko@ubuntu.com2012-06-211-1/+1
| |
* | Fix name of the sha1 extension.doko@ubuntu.com2012-06-211-1/+1
| |