summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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-141-32/+40
|\ | | | | | | some __sizeof__() methods.
| * Issue #22193: Added private function _PySys_GetSizeOf() needed to implementSerhiy Storchaka2014-08-141-32/+40
| | | | | | | | some __sizeof__() methods.
* | Closes #22146: Merge with 3.4Zachary Ware2014-08-051-1/+1
|\ \ | |/
| * Issue #22146: Fix typo in __build_class__ error messageZachary Ware2014-08-051-1/+1
| |
* | 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 #21925: PyImport_Cleanup(): Remove unused parameter inVictor Stinner2014-07-071-1/+1
| | | | | | | | PySys_FormatStderr() call
* | Issue #21891: remove extraneous semicolon.Ned Deily2014-07-011-1/+1
|\ \ | |/
| * Issue #21891: remove extraneous semicolon.Ned Deily2014-07-011-1/+1
| |
* | merge 3.4Benjamin Peterson2014-06-171-8/+1
|\ \ | |/
| * revert tstate_delete_common, since it's pretty much wrongBenjamin Peterson2014-06-171-8/+1
| |
* | merge 3.4Benjamin Peterson2014-06-171-3/+2
|\ \ | |/
| * remove extra call to tstate_delete_common (merge artifact)Benjamin Peterson2014-06-171-3/+2
| |
* | merge 3.4Benjamin Peterson2014-06-171-0/+8
|\ \ | |/
| * avoid a deadlock with the interpreter head lock and the GIL during finalizationBenjamin Peterson2014-06-171-0/+8
| |
* | merge 3.4Benjamin Peterson2014-06-171-0/+7
|\ \ | |/
| * check if the thread is finalizing after retaking the GILBenjamin Peterson2014-06-171-0/+7
| |
* | 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-161-1/+1
|\ \ | |/
| * Issue #19362: Tweek len() doc and docstring to expand the indicated range ofTerry Jan Reedy2014-06-161-1/+1
| | | | | | | | arguments. Original patch by Gareth Rees.
* | 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-291-0/+1
|\ \ | |/
| * Issue #21226: fix a ref leak.Eric Snow2014-05-291-0/+1
| |
* | 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.
| * 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-191-6/+10
|\ \ | |/
| * Issue 20620: Update the min()/max() docs for the new default argument.Raymond Hettinger2014-05-191-6/+10
| | | | | | | | Patch provided by Berker Peksag.
* | 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-132-4268/+4287
|\ \ | |/
| * Issue #21226: Set all attrs in PyImport_ExecCodeModuleObject.Eric Snow2014-05-122-4268/+4287
| |
* | Issue #21425: Fix flushing of standard streams in the interactive interpreter.Antoine Pitrou2014-05-111-1/+2
|\ \ | |/
| * Issue #21425: Fix flushing of standard streams in the interactive interpreter.Antoine Pitrou2014-05-111-1/+2
| |
| * Merging from 3.3: The PyCOND_TIMEDWAIT must use microseconds for the timeout ↵Kristján Valur Jónsson2014-05-082-7/+7
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | argument in order to have the same resolution as pthreads condition variables. At the same time, it must be large enough to accept 31 bits of milliseconds, which is the maximum timeout value in the windows API. A PY_LONG_LONG of microseconds fullfills both requirements. This closes issue #20737
| | * The PyCOND_TIMEDWAIT must use microseconds for the timeout argumentKristján Valur Jónsson2014-05-082-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | in order to have the same resolution as pthreads condition variables. At the same time, it must be large enough to accept 31 bits of milliseconds, which is the maximum timeout value in the windows API. A PY_LONG_LONG of microseconds fullfills both requirements. This closes issue #20737
| | * Issue #20404: reject non-text encodings early in TextIOWrapper.Georg Brandl2014-03-021-21/+63
| | |
| | * Issue #19619: Blacklist non-text codecs in method APISerhiy Storchaka2014-02-241-16/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | str.encode, bytes.decode and bytearray.decode now use an internal API to throw LookupError for known non-text encodings, rather than attempting the encoding or decoding operation and then throwing a TypeError for an unexpected output type. The latter mechanism remains in place for third party non-text encodings. Backported changeset d68df99d7a57.
| | * bump Python-ast.cBenjamin Peterson2014-02-201-2/+2
| | |
* | | The PyCOND_TIMEDWAIT must use microseconds for the timeout argumentKristján Valur Jónsson2014-05-082-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | in order to have the same resolution as pthreads condition variables. At the same time, it must be large enough to accept 31 bits of milliseconds, which is the maximum timeout value in the windows API. A PY_LONG_LONG of microseconds fullfills both requirements. This closes issue #20737
* | | Issue21393 Use CryptReleaseContext to release Crypt handle on WindowsTim Golden2014-05-061-1/+1
| | |