Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #14065: Added cyclic GC support to ET.Element | Eli Bendersky | 2012-03-30 | 1 | -15/+48 |
| | |||||
* | Merge. | Stefan Krah | 2012-03-30 | 1 | -0/+8 |
|\ | |||||
| * | #14416: conditionally add LOG_AUTHPRIV facility and LOG_ODELAY to syslog. | R David Murray | 2012-03-29 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | Unlike the other facilities, we don't use a fallback for AUTHPRIV if it doesn't exist. Because it is intended for logging sensitive log messages, it is better that a program trying to log such messages fail than that it log them insecurely. Initial patch by Federico Reghenzani. | ||||
* | | Use abort() rather than exit() to appease tools like rpmlint. abort() is used | Stefan Krah | 2012-03-30 | 1 | -1/+1 |
|/ | | | | | | in libmpdec to prevent undefined behavior if an invalid context is used. This cannot occur for the _decimal module since user input for the context is validated. | ||||
* | time.time() now uses clock_gettime(CLOCK_REALTIME) if available | Victor Stinner | 2012-03-28 | 1 | -0/+11 |
| | | | | | | clock_gettime(CLOCK_REALTIME) has a better resolution than gettimeofday(). time.time() falls back on gettimeofday() (and then on other functions) on error. | ||||
* | Document the fact that mach_timebase_info() cannot fail | Victor Stinner | 2012-03-28 | 1 | -4/+8 |
| | | | | And call mach_absolute_time() after mach_timebase_info(). | ||||
* | Issue #11826: Fix memory leak in atexitmodule. | Stefan Krah | 2012-03-27 | 1 | -1/+9 |
| | |||||
* | Fix time.steady(strict=True): don't use CLOCK_REALTIME | Victor Stinner | 2012-03-26 | 1 | -7/+28 |
| | |||||
* | Issue #14368: _PyTime_gettimeofday() cannot fail | Victor Stinner | 2012-03-26 | 1 | -7/+1 |
| | | | | floattime() must not raise an error if the current time is 1970.1.1 at 00:00. | ||||
* | Issue #3367: Merge fix from 3.2. | Stefan Krah | 2012-03-26 | 1 | -2/+4 |
|\ | |||||
| * | Issue #3367: NULL-terminate argv[] copies to prevent an invalid access | Stefan Krah | 2012-03-26 | 1 | -2/+4 |
| | | | | | | | | in sys_update_path(). | ||||
* | | Raise MemoryError instead of InvalidOperation/MallocError for compatibility | Stefan Krah | 2012-03-25 | 1 | -1/+8 |
| | | | | | | | | | | | | with decimal.py. The standard specifies InsufficientStorage (MallocError) as a sub-condition of InvalidOperation. This allows a calculation to continue with NaN results when allocation fails. | ||||
* | | Issue #14154: Reimplement the bigmem test memory watchdog as a subprocess. | Charles-François Natali | 2012-03-24 | 1 | -184/+0 |
| | | |||||
* | | Fix formatting after removing tabs. | Stefan Krah | 2012-03-23 | 2 | -4/+8 |
| | | |||||
* | | Whitespace. | Stefan Krah | 2012-03-23 | 2 | -102/+102 |
| | | |||||
* | | Use the same exception hierarchy as decimal.py. FloatOperation now also | Stefan Krah | 2012-03-23 | 1 | -20/+65 |
| | | | | | | | | | | inherits from TypeError. Cleanup in module initialization to make repeated import failures robust. | ||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | append, extend and insert now consistently type-check their argument in both the C and Python implementations, and raise TypeError for non-Element argument. Added tests | ||||
* | | Issue #14387: Do not include accu.h from Python.h. | Antoine Pitrou | 2012-03-22 | 2 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. | Ross Lagerwall | 2012-03-19 | 1 | -1/+12 |
| | | | | | | | | Based on patch from Hervé Coatanhay. | ||||
* | | Issue #14204: The ssl module now has support for the Next Protocol ↵ | Antoine Pitrou | 2012-03-21 | 1 | -0/+115 |
| | | | | | | | | | | | | Negotiation extension, if available in the underlying OpenSSL library. Patch by Colin Marc. | ||||
* | | Whitespace. | Stefan Krah | 2012-03-21 | 6 | -168/+168 |
| | | |||||
* | | Issue #7652: Integrate the decimal floating point libmpdec library to speed | Stefan Krah | 2012-03-21 | 54 | -0/+26284 |
| | | | | | | | | | | up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application. | ||||
* | | Issue #14328: Add keyword-only parameters to PyArg_ParseTupleAndKeywords. | Larry Hastings | 2012-03-20 | 1 | -1/+19 |
| | | | | | | | | | | | | They're optional-only for now (unlike in pure Python) but that's all I needed. The syntax can easily be relaxed if we want to support required keyword-only arguments for extension types in the future. | ||||
* | | Issue 14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. | Ross Lagerwall | 2012-03-18 | 1 | -1/+12 |
| | | | | | | | | Based on patch from Hervé Coatanhay. | ||||
* | | cleanup Ellipsis and NotImplemented strings after we're done | Benjamin Peterson | 2012-03-16 | 1 | -2/+8 |
| | | |||||
* | | fix condition (#14296) | Benjamin Peterson | 2012-03-16 | 1 | -1/+1 |
| | | |||||
* | | Issue #14207: the ParseError exception raised by _elementtree was made | Eli Bendersky | 2012-03-16 | 1 | -8/+27 |
| | | | | | | | | | | | | | | | | | | | | consistent to the one raised by the Python module (the 'code' attribute was added). In addition, the exception is now documented. Added a test to check that ParseError has the required attributes, and threw away the equivalent doctest which is no longer required. | ||||
* | | Closes Issue #14246: _elementtree parser will now handle io.StringIO | Eli Bendersky | 2012-03-16 | 1 | -1/+22 |
| | | |||||
* | | try to fix compilation on glibc's with cpu sets (#14296) | Benjamin Peterson | 2012-03-15 | 1 | -0/+4 |
| | | |||||
* | | Fixes Issue 14234: fix for the previous commit, keep compilation when | Gregory P. Smith | 2012-03-15 | 2 | -0/+7 |
|\ \ | |/ | | | | | | | using --with-system-expat working when the system expat does not have salted hash support. | ||||
| * | Fixes Issue 14234: fix for the previous commit, keep compilation when | Gregory P. Smith | 2012-03-15 | 2 | -0/+7 |
| | | | | | | | | | | using --with-system-expat working when the system expat does not have salted hash support. | ||||
* | | Issue #10278: Add an optional strict argument to time.steady(), False by default | Victor Stinner | 2012-03-15 | 1 | -17/+41 |
| | | |||||
* | | Issue #10278: Drop time.monotonic() function, rename time.wallclock() to ↵ | Victor Stinner | 2012-03-14 | 1 | -67/+15 |
| | | | | | | | | | | | | | | | | | | time.steady() * On Mac OS X, time.steady() now uses mach_absolute_time(), a monotonic clock * Optimistic change: bet that CLOCK_MONOTONIC and CLOCK_REALTIME are available when clock_gettime() is available * Rewrite time.steady() documentation | ||||
* | | fix compiler warnings | Benjamin Peterson | 2012-03-14 | 1 | -4/+4 |
| | | |||||
* | | Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes | Gregory P. Smith | 2012-03-14 | 4 | -59/+130 |
|\ \ | |/ | | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project. | ||||
| * | Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributes | Gregory P. Smith | 2012-03-14 | 4 | -59/+130 |
| |\ | | | | | | | | | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project. | ||||
| | * | Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes | Gregory P. Smith | 2012-03-14 | 4 | -59/+130 |
| | | | | | | | | | | | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project. | ||||
* | | | Avoid main_window unused compiler warning. | Gregory P. Smith | 2012-03-14 | 1 | -0/+6 |
| | | | |||||
* | | | Revert the patch for issue 3835 because failed on Windows buildbot | Andrew Svetlov | 2012-03-14 | 1 | -7/+0 |
| | | | | | | | | | | | | Windows build is compiled with no-threaded tcl/tk by default | ||||
* | | | Issue #14180: Fix the select module to handle correctly the Windows timeval | Victor Stinner | 2012-03-13 | 1 | -3/+16 |
| | | | | | | | | | | | | structure. timeval.tv_sec is a long on Windows, not time_t. | ||||
* | | | Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() | Victor Stinner | 2012-03-13 | 1 | -36/+39 |
| | | | | | | | | | | | | | | | and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed. | ||||
* | | | merge 3.2 | Benjamin Peterson | 2012-03-13 | 1 | -7/+7 |
|\ \ \ | |/ / | |||||
| * | | fix indentation | Benjamin Peterson | 2012-03-13 | 1 | -7/+7 |
| | | | |||||
* | | | Issue #3835: Refuse to use unthreaded Tcl in threaded Python. | Martin v. Löwis | 2012-03-13 | 1 | -0/+7 |
| | | | | | | | | | | | | Patch by Guilherme Polo and Andrew Svetlov. | ||||
* | | | Issue #14180: Fix another typo in kqueue_queue_control() | Victor Stinner | 2012-03-13 | 1 | -1/+1 |
| | | | |||||
* | | | Issue #14180: Fix select.select() compilation on BSD and a typo in ↵ | Victor Stinner | 2012-03-13 | 1 | -2/+4 |
| | | | | | | | | | | | | kqueue_queue_control() | ||||
* | | | Close #14180: Factorize code to convert a number of seconds to time_t, ↵ | Victor Stinner | 2012-03-13 | 7 | -152/+80 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | timeval or timespec time.ctime(), gmtime(), time.localtime(), datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now raises an OverflowError, instead of a ValueError, if the timestamp does not fit in time_t. datetime.datetime.fromtimestamp() and datetime.datetime.utcfromtimestamp() now round microseconds towards zero instead of rounding to nearest with ties going away from zero. | ||||
* | | | closes #14259 re.finditer() now takes keyword arguments: pos, endpos. | Sean Reifschneider | 2012-03-13 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | Contrary to the documentation, finditer() did not take pos and endpos keyword arguments. | ||||
* | | | Issue #14104: Implement time.monotonic() on Mac OS X, | Victor Stinner | 2012-03-12 | 1 | -1/+17 |
| | | | | | | | | | | | | patch written by Nicholas Riley. | ||||
* | | | minor PEP7-related fix | Łukasz Langa | 2012-03-12 | 1 | -2/+2 |
| | | |