summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Remove references to removed md5.h and md5.c files.doko@ubuntu.com2012-06-211-3/+2
| |
* | Issue #14684: Add support for predefined compression dictionaries to the ↵Nadeem Vawda2012-06-211-22/+96
| | | | | | | | | | | | zlib module. Original patch by Sam Rushing.
* | Fix comment.Stefan Krah2012-06-201-1/+1
| |
* | Many cleanups of redundant code in mpd_qrem_near():Stefan Krah2012-06-201-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) _mpd_qdivmod() uses the context precision only in two places, and the new code should be exactly equivalent to the previous code. 2) Remove misleading comment. 3) The quotient *is* an integer with exponent 0, so calling mpd_qtrunc() is pointless. 4) Replace two instances of identical code by a single one. 5) Use _mpd_cmp_abs() instead of mpd_cmp_total_mag(): the operands are not special. 6) Don't clear MPD_Rounded in the status (with the current code it should not be set within the function).
* | Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵Antoine Pitrou2012-06-191-0/+131
| | | | | | | | (Modules/_freeze_importlib) to build Python/importlib.h.
* | Add comments to the power functions, in particular to _mpd_qpow_real().Stefan Krah2012-06-181-5/+34
| |
* | Issue #14055: Add __sizeof__ support to _elementtree.Martin v. Löwis2012-06-171-0/+14
| |
* | 1) State the relative errors of the power functions for integer exponents.Stefan Krah2012-06-161-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2) _mpd_qpow_mpd(): Abort the loop for all specials, not only infinity. 3) _mpd_qpow_mpd(): Make the function more general and distinguish between zero clamping and folding down the exponent. The latter case is currently handled by setting context->clamp to 0 before calling the function. 4) _mpd_qpow_int(): Add one to the work precision in case of a negative exponent. This is to get the same relative error (0.1 * 10**-prec) for both positive and negative exponents. The previous relative error for negative exponents was (0.2 * 10**-prec). Both errors are _before_ the final rounding to the context precision.
* | Issue #15006: Allow equality comparison between naive and aware timeAlexander Belopolsky2012-06-161-0/+16
| | | | | | | | or datetime objects.
* | Fix windows compilation problems caused by previous commit.Eli Bendersky2012-06-151-2/+4
| |
* | Replace the iter/itertext methods of Element in _elementtree with true C ↵Eli Bendersky2012-06-151-90/+272
| | | | | | | | | | | | implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents. Also reorganized the tests a bit to be more robust.
* | Issue #14936: curses_panel was converted to PEP 3121 and PEP 384 API.Martin v. Löwis2012-06-141-43/+29
| | | | | | | | Patch by Robin Schreiber.
* | Issue #14936: curses_panel was converted to PEP 3121 API.Martin v. Löwis2012-06-141-12/+42
| | | | | | | | Patch by Robin Schreiber.
* | Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fieldsAlexander Belopolsky2012-06-141-2/+34
| | | | | | | | | | | | in struct tm, time.struct_time objects returned by time.gmtime(), time.localtime() and time.strptime() functions now have tm_zone and tm_gmtoff attributes. Original patch by Paul Boddie.
* | PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() resultVictor Stinner2012-06-121-21/+15
| | | | | | | | | | | | | | | | Fix also its value on Windows and Linux according to its documentation: "adjustable" indicates if the clock *can be* adjusted, not if it is or was adjusted. In most cases, it is not possible to indicate if a clock is or was adjusted.
* | time.get_clock_info() uses a namespace instead of structseqVictor Stinner2012-06-121-37/+20
| |
* | Fixed a typo in time_localtime()Alexander Belopolsky2012-06-121-1/+1
| |
* | 1) Fix signature of _mpd_qpow_uint(): contrary to the comment base is constant.Stefan Krah2012-06-121-7/+9
| | | | | | | | | | | | | | | | 2) Abort the loop for all specials, not only infinity. 3) Make the function more general and distinguish between zero clamping and folding down the exponent. The latter case is currently handled by setting context->clamp to 0 before calling the function.
* | 1) Replace long-winded abort() construct by assert().Stefan Krah2012-06-111-31/+28
| | | | | | | | | | 2) Remove micro optimization (inline checking for NaN before calling mpd_qcheck_nans()) that probably has no benefit in this case.
* | 1) State restrictions for the transform length.Stefan Krah2012-06-101-5/+10
| | | | | | | | | | 2) Switch argument order to match the function signature of mpd_calloc() (cosmetic change, since the order is irrelevant).
* | Add one extra comparison to the _mpd_shortmul() case to avoid repetitive code.Stefan Krah2012-06-091-16/+8
| |
* | Enumerate all cases in the overflow detection strategy in mpd_qlog10().Stefan Krah2012-06-081-4/+17
| |
* | Merge.Stefan Krah2012-06-081-0/+49
|\ \