summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-0/+24
|\ | | | | | | _PyErr_ChainExceptions() function.
| * Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-0/+24
| | | | | | | | _PyErr_ChainExceptions() function.
* | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou2014-10-081-0/+33
|\ \ | |/ | | | | | | | | exception tracebacks. Initial patch by Mark Shannon.
| * Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou2014-10-081-0/+33
| | | | | | | | | | | | exception tracebacks. Initial patch by Mark Shannon.
* | #16518: Bring error messages in harmony with docs ("bytes-like object")R David Murray2014-10-051-3/+4
| | | | | | | | | | | | | | | | | | | | Some time ago we changed the docs to consistently use the term 'bytes-like object' in all the contexts where bytes, bytearray, memoryview, etc are used. This patch (by Ezio Melotti) completes that work by changing the error messages that previously reported that certain types did "not support the buffer interface" to instead say that a bytes-like object is required. (The glossary entry for bytes-like object references the discussion of the buffer protocol in the docs.)
* | Issue #22518: Fixed integer overflow issues in "backslashreplace",Serhiy Storchaka2014-10-0427-5186/+6290
|\ \ | |/ |/| | | "xmlcharrefreplace", and "surrogatepass" error handlers.
| * faulthandler: enhance dump_ascii() to escape also non-printable ASCIIVictor Stinner2014-10-031-4/+5
| | | | | | | | characters (U+0000..U+001f and U+007f).
| * Issue #18711: Add a new `PyErr_FormatV` function, similar to `PyErr_Format` ↵Antoine Pitrou2014-09-301-10/+15
| | | | | | | | but accepting a `va_list` argument.
| * Removed redundant casts to `char *`.Serhiy Storchaka2014-09-281-1/+1
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
| * Update importlib.h frozen bytecode (changed due to commit c0ca9d32aed4).Georg Brandl2014-09-241-3817/+3796
| |
| * Fixed reference leak in the "backslashreplace" error handler.Serhiy Storchaka2014-09-2326-5333/+6452
| |\
| | * Closes #11471: avoid generating a JUMP_FORWARD instruction at the end of an ↵Antoine Pitrou2014-09-181-3/+3
| | | | | | | | | | | | | | | | | | if-block if there is no else-clause. Original patch by Eugene Toder.
| | * Issue #4180: The warnings registries are now reset when the filters are ↵Antoine Pitrou2014-09-1826-5330/+6449
| | |\ | | | | | | | | | | | | modified.
| | | * Merge fix for issue #22166 from 3.4Nick Coghlan2014-09-1526-5330/+6449
| | | |\
| | | | * Issue #22215: Now ValueError is raised instead of TypeError when str or bytesSerhiy Storchaka2014-09-062-15/+14
| | | | | | | | | | | | | | | | | | | | argument contains not permitted null character or byte.
| | | | * Issue #22043: Fix pymonotonic(), use tv_usec=-1 as a marker to skipVictor Stinner2014-09-031-2/+3
| | | | | | | | | | | | | | | | | | | | the monotonic test
| | | | * Issue #22043: time.monotonic() is now always availableVictor Stinner2014-09-021-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used.
| | | | * Issue #22043: Fix _PyTime_gettimeofday() if HAVE_GETTIMEOFDAYVictor Stinner2014-09-021-5/+2
| | | | | | | | | | | | | | | | | | | | Ensure also that the tv_usec field is consistent: in range [0; 999999].
| | | | * (Merge 3.4) Closes #22258: Fix the the internal function set_inheritable() onVictor Stinner2014-09-021-14/+34
| | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Illumos. This platform exposes the function ioctl(FIOCLEX), but calling it fails with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable() now falls back to the slower fcntl() (F_GETFD and then F_SETFD).
| | | | * | Issue #22043: _PyTime_Init() now checks if the system clock works.Victor Stinner2014-08-292-86/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other changes: * The whole _PyTime API is private (not defined if Py_LIMITED_API is set) * _PyTime_gettimeofday_info() also returns -1 on error * Simplify PyTime_gettimeofday(): only use clock_gettime(CLOCK_REALTIME) or gettimeofday() on UNIX. Don't fallback to ftime() or time() anymore.
| | | | * | Issue #22287: On UNIX, _PyTime_gettimeofday() now usesVictor Stinner2014-08-291-13/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now depends on the librt library on Solaris and on Linux (only with glibc older than 2.17).
| | | | * | Issue #22207: Fix "comparison between signed and unsigned integers" warning inVictor Stinner2014-08-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test checking for integer overflow on Py_ssize_t type: cast explicitly to size_t.
| | | | * | Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM andVictor Stinner2014-08-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | returns -1 (error) on integer overflow.
| | | | * | Issue #20184: Add signature introspection for 30 of the builtinsNick Coghlan2014-08-171-373/+1188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds a test to test_inspect to track progress on builtin introspection support, to ensure it doesn't regress in the future.
| | | | * | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-155-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | warnings in the Python/ subdirectory.
| | | | * | Issue #22193: Added private function _PySys_GetSizeOf() needed to implementSerhiy Storchaka2014-08-1419-4865/+4985
| | | | |\ \ | | | | | | | | | | | | | | | | | | | | | some __sizeof__() methods.
| | | | | * \ Closes #22146: Merge with 3.4Zachary Ware2014-08-0519-4865/+4985
| | | | | |\ \
| | | | | | * | Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, renameVictor Stinner2014-08-012-33/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
| | | | | | * | Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get andVictor Stinner2014-07-291-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is set, True otherwise). These functions are not available on Windows.
| | | | | | * | Issue #18093: Factor out the programs that embed the runtimeNick Coghlan2014-07-251-0/+1
| | | | | | | |
| | | | | | * | Issue #16382: Improve exception message of warnings.warn() for bad category.Berker Peksag2014-07-111-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial patch by Phil Elson.
| | | | | | * | (Merge 3.4) Issue #21925: PyImport_Cleanup(): Remove unused parameter inVictor Stinner2014-07-071-1/+1
| | | | | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | PySys_FormatStderr() call
| | | | | | * \ \ Issue #21891: remove extraneous semicolon.Ned Deily2014-06-3015-4826/+4888
| | | | | | |\ \ \
| | | | | | | * \ \ merge 3.4Benjamin Peterson2014-06-171-8/+1
| | | | | | | |\ \ \
| | | | | | | * \ \ \ merge 3.4Benjamin Peterson2014-06-161-3/+2
| | | | | | | |\ \ \ \
| | | | | | | * \ \ \ \ merge 3.4Benjamin Peterson2014-06-1615-4826/+4888
| | | | | | | |\ \ \ \ \
| | | | | | | | * \ \ \ \ merge 3.4Benjamin Peterson2014-06-1615-4826/+4888
| | | | | | | | |\ \ \ \ \
| | | | | | | | | * | | | | Issue #21205: Add a new ``__qualname__`` attribute to generator, the qualifiedVictor Stinner2014-06-161-8/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | name, and use it in the representation of a generator (``repr(gen)``). The default name of the generator (``__name__`` attribute) is now get from the function instead of the code. Use ``gen.gi_code.co_name`` to get the name of the code.
| | | | | | | | | * | | | | Merge with 3.4Terry Jan Reedy2014-06-1615-4818/+4866
| | | | | | | | | |\ \ \ \ \
| | | | | | | | | | * | | | | Fix a parameter name to make sense againBrett Cannon2014-05-301-3178/+3178
| | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | Issue #20383: Introduce importlib.util.module_from_spec().Brett Cannon2014-05-301-4288/+4178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Along the way, dismantle importlib._bootstrap._SpecMethods as it was no longer relevant and constructing the new function required partially dismantling the class anyway.
| | | | | | | | | | * | | | | Move import.c to use Clinic file output.Brett Cannon2014-05-302-330/+340
| | | | | | | | | | | | | | |
| | | | | | | | | | * | | | | Issue #21226: Merge from 3.4.Eric Snow2014-05-2913-401/+549
| | | | | | | | | | |\ \ \ \ \
| | | | | | | | | | | * \ \ \ \ Issue #21523: Fix over-pessimistic computation of the stack effect of some ↵Antoine Pitrou2014-05-231-2/+6
| | | | | | | | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | opcodes in the compiler. This also fixes a quadratic compilation time issue noticeable when compiling code with a large number of "and" and "or" operators.
| | | | | | | | | | | * \ \ \ \ \ mergeRaymond Hettinger2014-05-1913-401/+549
| | | | | | | | | | | |\ \ \ \ \ \
| | | | | | | | | | | | * | | | | | Issue #13916: Fix surrogatepass error handler on WindowsVictor Stinner2014-05-161-0/+4
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | * | | | | | Issue #13916: Disallowed the surrogatepass error handler for non UTF-*Serhiy Storchaka2014-05-151-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encodings.
| | | | | | | | | | | | * | | | | | Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()Victor Stinner2014-05-141-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
| | | | | | | | | | | | * | | | | | Merge from 3.4 (for #21226).Eric Snow2014-05-1211-392/+523
| | | | | | | | | | | | |\ \ \ \ \ \
| | | | | | | | | | | | | * \ \ \ \ \ Issue #21425: Fix flushing of standard streams in the interactive interpreter.Antoine Pitrou2014-05-1111-391/+522
| | | | | | | | | | | | | |\ \ \ \ \ \