summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* fix condition (#14296)Benjamin Peterson2012-03-161-1/+1
|
* Issue #14207: the ParseError exception raised by _elementtree was madeEli Bendersky2012-03-161-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.StringIOEli Bendersky2012-03-161-1/+22
|
* try to fix compilation on glibc's with cpu sets (#14296)Benjamin Peterson2012-03-151-0/+4
|
* Fixes Issue 14234: fix for the previous commit, keep compilation whenGregory P. Smith2012-03-152-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 whenGregory P. Smith2012-03-152-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 defaultVictor Stinner2012-03-151-17/+41
| |
* | Issue #10278: Drop time.monotonic() function, rename time.wallclock() to ↵Victor Stinner2012-03-141-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 warningsBenjamin Peterson2012-03-141-4/+4
| |
* | Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributesGregory P. Smith2012-03-144-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 attributesGregory P. Smith2012-03-144-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 attributesGregory P. Smith2012-03-144-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. Smith2012-03-141-0/+6
| | |
* | | Revert the patch for issue 3835 because failed on Windows buildbotAndrew Svetlov2012-03-141-7/+0
| | | | | | | | | | | | Windows build is compiled with no-threaded tcl/tk by default
* | | Issue #14180: Fix the select module to handle correctly the Windows timevalVictor Stinner2012-03-131-3/+16
| | | | | | | | | | | | structure. timeval.tv_sec is a long on Windows, not time_t.
* | | Issue #14180: datetime.date.fromtimestamp(), datetime.datetime.fromtimestamp()Victor Stinner2012-03-131-36/+39
| | | | | | | | | | | | | | | and datetime.datetime.utcfromtimestamp() now raise an OSError instead of ValueError if localtime() or gmtime() failed.
* | | merge 3.2Benjamin Peterson2012-03-131-7/+7
|\ \ \ | |/ /
| * | fix indentationBenjamin Peterson2012-03-131-7/+7
| | |
* | | Issue #3835: Refuse to use unthreaded Tcl in threaded Python.Martin v. Löwis2012-03-131-0/+7
| | | | | | | | | | | | Patch by Guilherme Polo and Andrew Svetlov.
* | | Issue #14180: Fix another typo in kqueue_queue_control()Victor Stinner2012-03-131-1/+1
| | |
* | | Issue #14180: Fix select.select() compilation on BSD and a typo in ↵Victor Stinner2012-03-131-2/+4
| | | | | | | | | | | | kqueue_queue_control()
* | | Close #14180: Factorize code to convert a number of seconds to time_t, ↵Victor Stinner2012-03-137-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 Reifschneider2012-03-131-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 Stinner2012-03-121-1/+17
| | | | | | | | | | | | patch written by Nicholas Riley.
* | | minor PEP7-related fixŁukasz Langa2012-03-121-2/+2
| | |
* | | #13842: check whether PyUnicode_FromString succeededŁukasz Langa2012-03-121-3/+8
| | |
* | | Fixes #13842: cannot pickle Ellipsis or NotImplemented.Łukasz Langa2012-03-121-0/+21
| | | | | | | | | | | | Thanks for James Sanders for the bug report and the patch.
* | | Issue #14178: Problem deleting slices with steps != +1 in the _elementtree ↵Eli Bendersky2012-03-091-3/+67
| | | | | | | | | | | | | | | | | | module. Fixed the problem and added some tests. Closes #14178
* | | Close #14223: curses.addch() is no more limited to the range 0-255 when theVictor Stinner2012-03-081-1/+1
| | | | | | | | | | | | | | | Python curses is not linked to libncursesw. It was a regression introduced in Python 3.3a1.
* | | merge 3.2 (#14212)Benjamin Peterson2012-03-072-25/+42
|\ \ \ | |/ /
| * | keep the buffer object around while we're using it (closes #14212)Benjamin Peterson2012-03-072-33/+49
| | |
| * | Issue #14125: backport refleak fix (d4adbf908983).Stefan Krah2012-02-271-2/+3
| | |
* | | Use ANSI C prototype instead of K&R style.Ross Lagerwall2012-03-071-1/+1
| | |
* | | Issue #10951: Fix compiler warnings in _sre.cRoss Lagerwall2012-03-061-5/+5
| | |
* | | Issue #10951: Fix warnings in the socket module.Ross Lagerwall2012-03-061-4/+4
| | |
* | | Whitespace.Stefan Krah2012-03-061-14/+14
| | |
* | | Issue #12328: Fix multiprocessing's use of overlapped I/O on Windows.Antoine Pitrou2012-03-051-27/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add a multiprocessing.connection.wait(rlist, timeout=None) function for polling multiple objects at once. Patch by sbt. Complete changelist from sbt's patch: * Adds a wait(rlist, timeout=None) function for polling multiple objects at once. On Unix this is just a wrapper for select(rlist, [], [], timeout=None). * Removes use of the SentinelReady exception and the sentinels argument to certain methods. concurrent.futures.process has been changed to use wait() instead of SentinelReady. * Fixes bugs concerning PipeConnection.poll() and messages of zero length. * Fixes PipeListener.accept() to call ConnectNamedPipe() with overlapped=True. * Fixes Queue.empty() and SimpleQueue.empty() so that they are threadsafe on Windows. * Now PipeConnection.poll() and wait() will not modify the pipe except possibly by consuming a zero length message. (Previously poll() could consume a partial message.) * All of multiprocesing's pipe related blocking functions/methods are now interruptible by SIGINT on Windows.
* | | Issue #14181: Preserve backwards compatibility for getbufferprocs that a) doStefan Krah2012-03-051-14/+15
| | | | | | | | | | | | | | | not adhere to the new documentation and b) manage to clobber view->obj before returning failure.
* | | Issue #14181: Test creating memoryviews from a static exporter with bothStefan Krah2012-03-051-1/+125
| | | | | | | | | | | | view.obj==NULL and view.obj==base.
* | | Issue #14007: drop unused TreeBuilder().xml.Florent Xicluna2012-03-051-23/+0
| | |
* | | Issue #14181: Allow memoryview construction from an object that uses theStefan Krah2012-03-051-10/+15
| | | | | | | | | | | | getbuffer redirection scheme.
* | | Issue #14166: Pickler objects now have an optional `dispatch_table` ↵Antoine Pitrou2012-03-041-9/+30
| | | | | | | | | | | | | | | | | | attribute which allows to set custom per-pickler reduction functions. Patch by sbt.
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵Eli Bendersky2012-03-041-82/+145
| | | | | | | | | | | | | | | | | | | | | | | | than a factory function. This makes the C implementation more aligned with the Python implementation. Also added some tests to ensure that Element is now a type and that it can be subclassed.
* | | Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tupleVictor Stinner2012-03-022-8/+22
| | | | | | | | | | | | Add a private API to convert an int or float to a C timespec structure.
* | | Issue #14153 Create _Py_device_encoding() to prevent _io from having to importBrett Cannon2012-02-294-45/+15
| | | | | | | | | | | | the os module.
* | | Issue #14125: Fix refleak in timemodule.c on Windows. Thanks sbt for pointingStefan Krah2012-02-271-2/+3
| | | | | | | | | | | | | | | out the location of the problem. MS_WINDOWS currently implies !HAVE_WCSFTIME, so the addition of !defined(HAVE_WCSFTIME) is for readability.
* | | Issue #14125: Fix multiprocessing refleak on Windows. Patch by sbt.Stefan Krah2012-02-271-1/+4
| | |
* | | Merge 3.2Éric Araujo2012-02-262-2/+2
|\ \ \ | |/ /
| * | Fix typo in “seperat{or,ion}”Éric Araujo2012-02-262-2/+2
| | |
* | | - Issue #10181: New memoryview implementation fixes multiple ownershipStefan Krah2012-02-252-91/+2683
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and lifetime issues of dynamically allocated Py_buffer members (#9990) as well as crashes (#8305, #7433). Many new features have been added (See whatsnew/3.3), and the documentation has been updated extensively. The ndarray test object from _testbuffer.c implements all aspects of PEP-3118, so further development towards the complete implementation of the PEP can proceed in a test-driven manner. Thanks to Nick Coghlan, Antoine Pitrou and Pauli Virtanen for review and many ideas. - Issue #12834: Fix incorrect results of memoryview.tobytes() for non-contiguous arrays. - Issue #5231: Introduce memoryview.cast() method that allows changing format and shape without making a copy of the underlying memory.