Victor Stinner
a555cfcb73
Issue #23694 : Enhance _Py_open(), it now raises exceptions
* _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
11 years ago
Victor Stinner
6562b29e13
Issue #23644 : Fix issues with C++ when compiling Python extensions
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.
11 years ago
Victor Stinner
3b6d0ae8fe
Issue #23644 , #22038 : Move #include <stdatomic.c> inside the extern "C" { ... }
block in pyatomic.h
11 years ago
Larry Hastings
cfac654165
Post-release changes for 3.5.0a2.
11 years ago
Larry Hastings
6003ac5267
Release bump for 3.5.0a2.
11 years ago
Victor Stinner
4a7cc88472
Issue #23571 : PyObject_Call(), PyCFunction_Call() and call_function() now
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.
11 years ago
Steve Dower
d81431f587
Issue #23524 : Replace _PyVerify_fd function with calling _set_thread_local_invalid_parameter_handler on every thread.
11 years ago
Larry Hastings
e287746401
Post-release changes for 3.4.3.
11 years ago
Larry Hastings
fc8eda5ad8
Release bump for 3.4.3 final.
11 years ago
Serhiy Storchaka
06a13f81ea
Issue #23152 : Move declarations back to posixmodule.c.
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.
11 years ago
Serhiy Storchaka
12ebbc74f1
Issue #23152 : Move declaration into a header and exclude from stable API.
11 years ago
Steve Dower
f2f373f593
Issue #23152 : Implement _Py_fstat() to support files larger than 2 GB on Windows.
fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
11 years ago
Victor Stinner
22fabe218d
Fix typo: PyMem_Alloc => PyMem_Malloc
11 years ago
Larry Hastings
f77232b04e
Post-release updates for Python 3.5.0a1.
11 years ago
Larry Hastings
833d1925c7
Post-release updates for Python 3.4.3rc1.
11 years ago
Larry Hastings
b06f142f5f
Release bump for 3.5.0a1.
11 years ago
Larry Hastings
e5529063b2
Version bump for 3.4.3rc1.
11 years ago
Raymond Hettinger
c5644126a2
Move the set search finger before the smalltable.
11 years ago
Stefan Krah
fa5d6a5ff3
Issue #22668 : Ensure that format strings survive slicing after casting.
11 years ago
Raymond Hettinger
a5ebbf6295
Remove unneeded dummy test from the set search loop (when the hashes match we know the key is not a dummy).
11 years ago
Raymond Hettinger
93035c44fd
Issue #23119 : Simplify setobject by inlining the special case for unicode equality testing.
11 years ago
Ethan Furman
b95b56150f
Issue20284: Implement PEP461
11 years ago
Raymond Hettinger
1202a4733e
Issue 23261: Clean-up the hack to store the set.pop() search finger in a hash field instead of the setobject.
11 years ago
Benjamin Peterson
82f34ada45
fix instances of consecutive articles ( closes #23221 )
Patch by Karan Goel.
11 years ago
Victor Stinner
4f5366e65a
Issue #22038 : pyatomic.h now uses stdatomic.h or GCC built-in functions for
atomic memory access if available. Patch written by Vitor de Lima and Gustavo
Temple.
11 years ago
Raymond Hettinger
3f063a54ce
Minor comment clean-up
11 years ago
Raymond Hettinger
404a45d91a
Neaten-up setobject.h
- 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.
11 years ago
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
11 years ago
Serhiy Storchaka
166ebc4e5d
Issue #19676 : Added the "namereplace" error handler.
11 years ago
Nick Coghlan
d600951748
Issue #22869 : Split pythonrun into two modules
- interpreter startup and shutdown code moved to a new
pylifecycle.c module
- Py_OptimizeFlag moved into the new module with the other
global flags
11 years ago
Serhiy Storchaka
81f68a7d4b
Issue #22453 : Warn against the use of leaking macro PyObject_REPR().
11 years ago
Serhiy Storchaka
df4518ca4b
Issue #22453 : Removed non-documented macro PyObject_REPR().
11 years ago
Serhiy Storchaka
60fe569673
Issue #18637 : Fixed an error in _PyNode_SizeOf declaration.
Patch by Roumen Petrov.
11 years ago
Serhiy Storchaka
030e92d1a5
Issue #22193 : Fixed integer overflow error in sys.getsizeof().
Fixed an error in _PySys_GetSizeOf declaration.
11 years ago
Georg Brandl
18e897250a
Bump to 3.3.6
11 years ago
Georg Brandl
439d88542e
Bump to 3.2.6
11 years ago
Victor Stinner
b71c7dc9dd
Issue #22591 : Drop support of MS-DOS
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 :'-(
11 years ago
Serhiy Storchaka
e2bd2a7186
Issue #21715 : Extracted shared complicated code in the _io module to new
_PyErr_ChainExceptions() function.
11 years ago
Antoine Pitrou
0ddbf4795f
Issue #22462 : Fix pyexpat's creation of a dummy frame to make it appear in exception tracebacks.
Initial patch by Mark Shannon.
11 years ago
Larry Hastings
adeb140cb3
Post-release changes after 3.4.2 final.
11 years ago
Larry Hastings
dbb126103e
Release bump for 3.4.2 final.
11 years ago
Georg Brandl
e800a0e1c2
Bump to 3.2.6rc1
11 years ago
Georg Brandl
76e73f85a3
Bump to 3.3.6rc1
11 years ago
Antoine Pitrou
0676a406bf
Issue #18711 : Add a new `PyErr_FormatV` function, similar to `PyErr_Format` but accepting a `va_list` argument.
11 years ago
Larry Hastings
f26c2e72d8
Post-release engineering work for 3.4.2rc1.
11 years ago
Larry Hastings
03776e33a9
Bump version number for 3.4.2rc1 release.
11 years ago
Nick Coghlan
8fad1676a2
Issue #22166 : clear codec caches in test_codecs
11 years ago
Victor Stinner
ae58649721
Issue #22043 : time.monotonic() is now always available
threading.Lock.acquire(), threading.RLock.acquire() and socket operations now
use a monotonic clock, instead of the system clock, when a timeout is used.
12 years ago
Victor Stinner
5791a5403b
pytime.h: remove duplicated "#ifndef Py_LIMITED_API"
12 years ago
Victor Stinner
0011124dc2
Issue #22043 : _PyTime_Init() now checks if the system clock works.
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.
12 years ago