Yury Selivanov
eb698fe68c
Issue 24342: No need to use PyAPI_FUNC for _PyEval_ApplyCoroutineWrapper
11 years ago
Yury Selivanov
ca82910221
Issue 24365: Conditionalize PEP 489 additions to the stable ABI
Patch by Petr Viktorin.
11 years ago
Yury Selivanov
aab3c4a211
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
11 years ago
Eric Snow
a762af74b2
Issue #24347 : Set KeyError if PyDict_GetItemWithError returns NULL.
11 years ago
Yury Selivanov
d8cf382ee7
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
11 years ago
Benjamin Peterson
0969a9f8ab
add Py_tp_finalize slot ( closes #24345 )
Patch from Petr Viktorin.
11 years ago
Larry Hastings
61eb146b22
Post-release updates for Python 3.5.0b2.
11 years ago
Larry Hastings
d200e0c072
Version bump for Python 3.5.0b2.
11 years ago
Eric Snow
d0a06455a5
Issue #16991 : Drop Py_ODict_GetItemId.
11 years ago
Eric Snow
8c7ed012b8
Issue #16991 : Use PyObject_TypeCheck instead of PyObject_IsInstance.
11 years ago
Yury Selivanov
7aa5341164
Reverting my previous commit.
Something went horribly wrong when I was doing `hg rebase`.
11 years ago
Eric Snow
96c6af9b20
Issue #16991 : Add a C implementation of collections.OrderedDict.
11 years ago
Eric Snow
47db71756d
Issue #16991 : Add a C implementation of collections.OrderedDict.
11 years ago
Benjamin Peterson
264be6f48f
remove STORE_MAP, since it's unused
11 years ago
Yury Selivanov
6ef059097c
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
11 years ago
Serhiy Storchaka
3028c955fa
Issue #24288 : Generated opcode.h no longer contains trailing spaces and tabs.
11 years ago
Larry Hastings
d0c2a20b24
Version bump for trunk to 3.6.0a0. Welcome to the future!
11 years ago
Larry Hastings
f46aa8e2d1
Post-release fixes for 3.5.0b1.
11 years ago
Larry Hastings
205acde55e
Version bump for 3.5.0b1.
11 years ago
Steve Dower
11d7b1423f
Issue #24268 : Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)
11 years ago
Nick Coghlan
d5cacbb1d9
PEP 489: Multi-phase extension module initialization
Known limitations of the current implementation:
- documentation changes are incomplete
- there's a reference leak I haven't tracked down yet
The leak is most visible by running:
./python -m test -R3:3 test_importlib
However, you can also see it by running:
./python -X showrefcount
Importing the array or _testmultiphase modules, and
then deleting them from both sys.modules and the local
namespace shows significant increases in the total
number of active references each cycle. By contrast,
with _testcapi (which continues to use single-phase
initialisation) the global refcounts stabilise after
a couple of cycles.
11 years ago
Raymond Hettinger
5cbd8331ff
Issue #24221 : Small optimizations for heapq.
Replaces the PyList_GET_ITEM and PyList_SET_ITEM macros with normal array
accesses. Replace the siftup unpredicatable branch with arithmetic.
Replace the rc == -1 tests with rc < 0. Gives nicer looking assembly
with both Clang and GCC-4.9. Also gives a small performance both for both.
11 years ago
Serhiy Storchaka
48e47aaa28
Issue #22486 : Added the math.gcd() function. The fractions.gcd() function now is
deprecated. Based on patch by Mark Dickinson.
11 years ago
Yury Selivanov
f487a005d6
Fix warnings for PyEval_GetCoroutineWrapper
11 years ago
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
11 years ago
Yury Selivanov
8170e8c0d1
PEP 479: Change StopIteration handling inside generators.
Closes issue #22906 .
11 years ago
Benjamin Peterson
025e9ebd0a
PEP 448: additional unpacking generalizations ( closes #2292 )
Patch by Neil Girdhar.
11 years ago
Benjamin Peterson
1dfd247c1b
remove the concept of an unoptimized function scope from the compiler, since it can't happen anymore
11 years ago
Gregory P. Smith
e3f6393b52
Add the files missing from c9f1630cf2b1 for issue9951.
hg status should be my friend more often...
11 years ago
Larry Hastings
103e57a713
Post-release updates for Python 3.5.0a4.
11 years ago
Larry Hastings
55907f45bb
Version number bump for Python 3.5.0a4.
11 years ago
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
11 years ago
Steve Dower
8fc8980c96
Issue #23524 : Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler.
11 years ago
Victor Stinner
88ed640fc7
Issue #23834 : Fix the default socket timeout
Use -1 second by default, not -1 nanosecond.
11 years ago
Serhiy Storchaka
45ec3288d0
Removed trailing whitespaces in miscalenous files.
11 years ago
Victor Stinner
13019fdef3
Issue #22117 : Add a new _PyTime_FromSeconds() function
Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).
11 years ago
Victor Stinner
82c3e4599d
Issue #23836 : Add _Py_write_noraise() function
Helper to write() which retries write() if it is interrupted by a signal (fails
with EINTR).
11 years ago
Victor Stinner
fa09beb150
Issue #23485 : Add _PyTime_FromMillisecondsObject() function
11 years ago
Larry Hastings
a52f31dfe2
Fix PY_VERSION in Include/patchlevel.h to reflect our post-3.5.0a3 state.
11 years ago
Victor Stinner
e134a7fe36
Issue #23752 : _Py_fstat() is now responsible to raise the Python exception
Add _Py_fstat_noraise() function when a Python exception is not welcome.
11 years ago
Victor Stinner
a695f83f0d
Issue #22117 : Remove _PyTime_ROUND_DOWN and _PyTime_ROUND_UP rounding methods
Use _PyTime_ROUND_FLOOR and _PyTime_ROUND_CEILING instead.
11 years ago
Victor Stinner
bcdd777d3c
Issue #22117 : Add _PyTime_ROUND_CEILING rounding method for timestamps
Add also more tests for ROUNd_FLOOR.
11 years ago
Victor Stinner
ea9c0dd2c2
Issue #22117 : Fix usage of _PyTime_AsTimeval()
Add _PyTime_AsTimeval_noraise() function. Call it when it's not possible (or
not useful) to raise a Python exception on overflow.
11 years ago
Larry Hastings
02d1db9f46
Release bump for Python 3.5.0a3.
11 years ago
Victor Stinner
1bd18ba9a7
Issue #22117 : Cleanup pytime.c/.h
11 years ago
Victor Stinner
09e5cf28ae
Issue #22117 : Use the _PyTime_t API in _datetime.datetime() constructor
* Remove _PyTime_gettimeofday()
* Add _PyTime_GetSystemClock()
11 years ago
Victor Stinner
02937aab13
Issue #22117 : Add the new _PyTime_ROUND_FLOOR rounding method for the datetime
module. time.clock_settime() now uses this rounding method instead of
_PyTime_ROUND_DOWN to handle correctly dates before 1970.
11 years ago
Victor Stinner
b3b4544070
Issue #22117 : Use the _PyTime_t API for time.clock_settime()
Remove also the now unused _PyTime_AddDouble() function.
11 years ago
Victor Stinner
c337838af7
Issue #22117 : Use the new _PyTime_t API in the select module
11 years ago
Victor Stinner
f5faad2bf0
Issue #22117 : The thread module uses the new _PyTime_t timestamp API
Add also a new _PyTime_AsMicroseconds() function.
threading.TIMEOUT_MAX is now be smaller: only 292 years instead of 292,271
years on 64-bit system for example. Sorry, your threads will hang a *little
bit* shorter. Call me if you want to ensure that your locks wait longer, I can
share some tricks with you.
11 years ago