summaryrefslogtreecommitdiffstats
path: root/Include
Commit message (Collapse)AuthorAgeFilesLines
* Issue #23571: _Py_CheckFunctionResult() now gives the name of the functionVictor Stinner2015-03-211-2/+3
| | | | | | | | | | | which returned an invalid result (result+error or no result without error) in the exception message. Add also unit test to check that the exception contains the name of the function. Special case: the final _PyEval_EvalFrameEx() check doesn't mention the function since it didn't execute a single function but a whole frame.
* Removed trailing tabs.Serhiy Storchaka2015-03-212-2/+2
|
* Issue #23646: Enhance precision of time.sleep() and socket timeout whenVictor Stinner2015-03-201-7/+5
| | | | | | | | interrupted by a signal Add a new _PyTime_AddDouble() function and remove _PyTime_ADD_SECONDS() macro. The _PyTime_ADD_SECONDS only supported an integer number of seconds, the _PyTime_AddDouble() has subsecond resolution.
* Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handleVictor Stinner2015-03-191-0/+10
| | | | | | | | EINTR error and special cases for Windows. These functions now truncate the length to PY_SSIZE_T_MAX to have a portable and reliable behaviour. For example, read() result is undefined if counter is greater than PY_SSIZE_T_MAX on Linux.
* Removed unintentional trailing spaces in non-external and non-generated C files.Serhiy Storchaka2015-03-183-5/+5
|
* Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-171-0/+4
| | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held
* Issue #23644: Fix issues with C++ when compiling Python extensionsVictor Stinner2015-03-172-12/+10
| | | | | | | | Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++. <pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in pystate.h. Instead, declare PyThreadState_GET() as an alias to PyThreadState_Get(), as done for limited API.
* Issue #23644, #22038: Move #include <stdatomic.c> inside the extern "C" { ... }Victor Stinner2015-03-121-4/+4
| | | | block in pyatomic.h
* Post-release changes for 3.5.0a2.Larry Hastings2015-03-091-1/+1
|
* Release bump for 3.5.0a2.v3.5.0a2Larry Hastings2015-03-081-2/+2
|
* Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() nowVictor Stinner2015-03-061-0/+5
| | | | | | | | | | | raise a SystemError if a function returns a result and raises an exception. The SystemError is chained to the previous exception. Refactor also PyObject_Call() and PyCFunction_Call() to make them more readable. Remove some checks which became useless (duplicate checks). Change reviewed by Serhiy Storchaka.
* Issue #23524: Replace _PyVerify_fd function with calling ↵Steve Dower2015-03-062-11/+12
| | | | _set_thread_local_invalid_parameter_handler on every thread.
* Issue #23152: Move declarations back to posixmodule.c.Serhiy Storchaka2015-02-221-4/+0
| | | | | | | Declarations of Windows-specific auxilary functions need Windows types from windows.h. Instead of including windows.h in Python.h and making it available to all Windows users, it is simpler and safer just move declarations to the single file that needs them.
* Issue #23152: Move declaration into a header and exclude from stable API.Serhiy Storchaka2015-02-221-0/+6
|
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-211-1/+30
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Merge 3.4 (typo)Victor Stinner2015-02-111-1/+1
|\
| * Fix typo: PyMem_Alloc => PyMem_MallocVictor Stinner2015-02-111-1/+1
| |
| * Post-release updates for Python 3.4.3rc1.Larry Hastings2015-02-081-1/+1
| |
| * Version bump for 3.4.3rc1.Larry Hastings2015-02-081-4/+4
| |
* | Post-release updates for Python 3.5.0a1.Larry Hastings2015-02-081-1/+1
| |
* | Release bump for 3.5.0a1.Larry Hastings2015-02-081-2/+2
| |
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-1/+1
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
* | mergeRaymond Hettinger2015-01-301-4/+0
|\ \
| * \ Closes #22668: Merge from 3.4.Stefan Krah2015-01-291-4/+0
| |\ \ | | |/
| | * Issue #22668: Ensure that format strings survive slicing after casting.Stefan Krah2015-01-291-2/+2
| | |
* | | Move the set search finger before the smalltable.Raymond Hettinger2015-01-301-2/+2
|/ /
* | Remove unneeded dummy test from the set search loop (when the hashes match ↵Raymond Hettinger2015-01-271-1/+4
| | | | | | | | we know the key is not a dummy).
* | Issue #23119: Simplify setobject by inlining the special case for unicode ↵Raymond Hettinger2015-01-261-2/+1
| | | | | | | | equality testing.
* | Issue20284: Implement PEP461Ethan Furman2015-01-242-0/+3
| |
* | Issue 23261: Clean-up the hack to store the set.pop() search finger in a ↵Raymond Hettinger2015-01-181-3/+2
| | | | | | | | hash field instead of the setobject.
* | merge 3.4 (#23221)Benjamin Peterson2015-01-132-2/+2
|\ \ | |/
| * fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-132-2/+2
| | | | | | | | Patch by Karan Goel.
* | Issue #22038: pyatomic.h now uses stdatomic.h or GCC built-in functions forVictor Stinner2015-01-091-3/+77
| | | | | | | | | | atomic memory access if available. Patch written by Vitor de Lima and Gustavo Temple.
* | Minor comment clean-upRaymond Hettinger2014-12-291-2/+1
| |
* | Neaten-up setobject.hRaymond Hettinger2014-12-271-45/+39
| | | | | | | | | | | | - Move all Py_LIMITED_API exclusions together under one #ifndef - Group PyAPI_FUNC functions and PyAPI_DATA together. - Bring related comments together and put them in the appropriate section.
* | Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
|\ \ | |/
| * Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
| |
| * Issue #22453: Warn against the use of leaking macro PyObject_REPR().Serhiy Storchaka2014-11-181-2/+6
| |
* | Issue #19676: Added the "namereplace" error handler.Serhiy Storchaka2014-11-251-0/+3
| |
* | Issue #22869: Split pythonrun into two modulesNick Coghlan2014-11-206-110/+135
| | | | | | | | | | | | | | - interpreter startup and shutdown code moved to a new pylifecycle.c module - Py_OptimizeFlag moved into the new module with the other global flags
* | Issue #22453: Removed non-documented macro PyObject_REPR().Serhiy Storchaka2014-11-181-3/+0
| |
* | Issue #18637: Fixed an error in _PyNode_SizeOf declaration.Serhiy Storchaka2014-11-181-1/+1
|\ \ | |/ | | | | Patch by Roumen Petrov.
| * Issue #18637: Fixed an error in _PyNode_SizeOf declaration.Serhiy Storchaka2014-11-181-1/+1
| | | | | | | | Patch by Roumen Petrov.
* | Issue #22193: Fixed integer overflow error in sys.getsizeof().Serhiy Storchaka2014-11-151-1/+1
|\ \ | |/ | | | | Fixed an error in _PySys_GetSizeOf declaration.
| * Issue #22193: Fixed integer overflow error in sys.getsizeof().Serhiy Storchaka2014-11-151-1/+1
| | | | | | | | Fixed an error in _PySys_GetSizeOf declaration.
* | Issue #22591: Drop support of MS-DOSVictor Stinner2014-10-101-4/+1
| | | | | | | | | | | | Drop support of MS-DOS, especially of the DJGPP compiler (MS-DOS port of GCC). Today is a sad day. Good bye MS-DOS, good bye my friend :'-(
* | Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-1/+3
|\ \ | |/ | | | | _PyErr_ChainExceptions() function.
| * Issue #21715: Extracted shared complicated code in the _io module to newSerhiy Storchaka2014-10-081-1/+3
| | | | | | | | _PyErr_ChainExceptions() function.
* | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou2014-10-081-0/+1
|\ \ | |/ | | | | | | | | 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/+1
| | | | | | | | | | | | exception tracebacks. Initial patch by Mark Shannon.