summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20763: Fix importlib.machinery.PathFinder to supportBrett Cannon2014-02-261-1/+1
| | | | | | PathEntryFinder instances which only define find_module(). Reported by Yukihiro Nakadaira.
* update magic number for #20625Benjamin Peterson2014-02-191-160/+160
|
* Issue #20625: Fix compilation issueVictor Stinner2014-02-181-1/+2
|
* Mangle __parameters in __annotations__ dict properly. Issue #20625.Yury Selivanov2014-02-181-1/+7
|
* Issue #20320: select.select() and select.kqueue.control() now round the timeoutVictor Stinner2014-02-161-7/+28
| | | | | | aways from zero, instead of rounding towards zero. It should make test_asyncio more reliable, especially test_timeout_rounding() test.
* set line and column numbers for keyword-only arg nodes (closes #20619)Benjamin Peterson2014-02-141-0/+2
|
* Issue #20526, #19466: Revert changes of issue #19466 which introduces aVictor Stinner2014-02-131-15/+5
| | | | | regression: don't clear anymore the state of Python threads early during the Python shutdown.
* remove dynamic initializer lists for c89 compliance (closes #20595)Benjamin Peterson2014-02-111-3/+11
|
* merge 3.3 (#20588)Benjamin Peterson2014-02-111-2/+6
|\
| * don't put runtime values in array initializer for C89 compliance (closes #20588)Benjamin Peterson2014-02-111-2/+6
| |
* | Temporary silence test broken by issue19255.Serhiy Storchaka2014-02-101-2/+0
| | | | | | | | Remove unused variables.
* | Issue #19255: The builtins module is restored to initial value beforeSerhiy Storchaka2014-02-102-34/+55
| | | | | | | | cleaning other modules. The sys and builtins modules are cleaned last.
* | Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.Larry Hastings2014-02-101-101/+3
| |
* | Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-22/+147
| | | | | | | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one.
* | Issue #20437: Fixed 22 potential bugs when deleting objects references.Serhiy Storchaka2014-02-093-12/+6
|\ \ | |/
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-093-12/+6
| |
* | Issue #20530: Argument Clinic's signature format has been revised again.Larry Hastings2014-02-091-24/+48
| | | | | | | | | | | | | | The new syntax is highly human readable while still preventing false positives. The syntax also extends Python syntax to denote "self" and positional-only parameters, allowing inspect.Signature objects to be totally accurate for all supported builtins in Python 3.4.
* | Close #20500: Don't trigger PyObject_Str assertion at shutdownNick Coghlan2014-02-091-0/+5
| |
* | Close #20404: blacklist non-text encodings in io.TextIOWrapperNick Coghlan2014-02-041-21/+63
| | | | | | | | | | | | | | | | | | - io.TextIOWrapper (and hence the open() builtin) now use the internal codec marking system added for issue #19619 - also tweaked the C code to only look up the encoding once, rather than multiple times - the existing output type checks remain in place to deal with unmarked third party codecs.
* | #Issue 20456: Several improvements and bugfixes for Argument Clinic,Larry Hastings2014-02-011-2/+10
| | | | | | | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks.
* | Issue #20162: Fix an alignment issue in the siphash24() hash function whichVictor Stinner2014-02-011-1/+1
| | | | | | | | caused a crash on PowerPC 64-bit (ppc64).
* | Issue #20326: Argument Clinic now uses a simple, unique signature toLarry Hastings2014-01-281-26/+26
| | | | | | | | | | | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date).
* | Issue #20189: Four additional builtin types (PyTypeObject,Larry Hastings2014-01-242-25/+25
| | | | | | | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes.
* | Issue #2382: SyntaxError cursor "^" now is written at correct position in mostSerhiy Storchaka2014-01-211-2/+12
|\ \ | |/ | | | | | | cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters.
| * Issue #2382: SyntaxError cursor "^" now is written at correct position in mostSerhiy Storchaka2014-01-211-2/+12
| | | | | | | | | | cases when multibyte characters are in line (before "^"). This still not works correctly with wide East Asian characters.
* | Issue #20024: Py_BuildValue() now saves/restores the current exception beforeVictor Stinner2014-01-211-1/+11
| | | | | | | | building an item if the build of a previous item failed.
* | Merge from 3.3.Stefan Krah2014-01-201-1/+2
|\ \ | |/
| * Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.Stefan Krah2014-01-201-1/+2
| |
* | Issue #20294: Argument Clinic now supports argument parsing for __new__ andLarry Hastings2014-01-191-1/+20
| | | | | | | | __init__ functions.
* | Issue #20287: Argument Clinic's output is now configurable, allowingLarry Hastings2014-01-181-24/+8
| | | | | | | | delaying its output or even redirecting it to a separate file.
* | Remove an unneeded cast.Brett Cannon2014-01-101-1/+1
| |
* | Issue #20152: import.c now uses Argument Clinic.Brett Cannon2014-01-101-87/+463
| |
* | Issue 19713: Remove PEP 451-related code that should have been factored out.Eric Snow2014-01-081-1216/+1187
| | | | | | | | | | | | This code was an artifact of issuing a DeprecationWarning for the lack of loader.exec_module(). However, we have deferred such warnings to later Python versions.
* | Issue #20141: Improved Argument Clinic's support for the PyArg_Parse "O!"Larry Hastings2014-01-071-4357/+4342
| | | | | | | | format unit.
* | Issue 19713: Add PEP 451-related deprecations.Eric Snow2014-01-071-3943/+4031
| |
* | Issue #19927: Add __eq__ to path-based loaders in importlib.Eric Snow2014-01-041-619/+659
| |
* | Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.Eric Snow2014-01-031-1860/+1860
| |
* | merge 3.3Benjamin Peterson2014-01-011-1/+1
|\ \ | |/
| * update copyright yearBenjamin Peterson2014-01-011-1/+1
| |
* | Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-213-78/+4
| |
* | Fix the C definition of the sys._debugmallocstats() function: the function hasVictor Stinner2013-12-191-1/+1
| | | | | | | | no parameter
* | Fix _Py_DisplaySourceLine(), if PyTokenizer_FindEncodingFilename() fails, clearVictor Stinner2013-12-191-0/+2
| | | | | | | | the exception to not call open() with an exception set.
* | Remove some dead code in importlib, introduced with the PEP 451 patch.Eric Snow2013-12-191-986/+980
| | | | | | | | | | | | | | Early in the PEP 451 implementation some of the importlib loaders had their own _get_spec() methods to simplify accommodating them. However, later implementations removed the need. They simply failed to remove this code at the same time. :)
* | Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-0/+4
|\ \ | |/ | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
| * Issue #16404: Add checks for return value of PyLong_FromLong() inSerhiy Storchaka2013-12-171-0/+4
| | | | | | | | | | sys.getwindowsversion() and ossaudiodev.setparameters(). Reported by Ned Batchelder.
* | Fixed leak in sys.flags initialization.Serhiy Storchaka2013-12-171-0/+1
|\ \ | |/
| * Fixed leak in sys.flags initialization.Serhiy Storchaka2013-12-171-0/+1
| |
* | Issue #19787: PyThread_set_key_value() now always set the valueVictor Stinner2013-12-134-33/+17
| | | | | | | | | | | | | | | | | | | | In Python 3.3, PyThread_set_key_value() did nothing if the key already exists (if the current value is a non-NULL pointer). When _PyGILState_NoteThreadState() is called twice on the same thread with a different Python thread state, it still keeps the old Python thread state to keep the old behaviour. Replacing the Python thread state with the new state introduces new bugs: see issues #10915 and #15751.
* | Backout changeset 46393019b650Victor Stinner2013-12-133-8/+24
| | | | | | | | test_capi is failing and the fix is not trivial, I prefer to revert
* | Close #19787: PyThread_set_key_value() now always set the value. In Python 3.3,Victor Stinner2013-12-133-24/+8
| | | | | | | | | | | | | | | | the function did nothing if the key already exists (if the current value is a non-NULL pointer). _testcapi.run_in_subinterp() now correctly sets the new Python thread state of the current thread when a subinterpreter is created.