Yury Selivanov
a641def110
Issue 24342: No need to use PyAPI_FUNC for _PyEval_ApplyCoroutineWrapper
...
(Merge 3.5)
2015-06-02 22:30:51 -04:00
Yury Selivanov
eb698fe68c
Issue 24342: No need to use PyAPI_FUNC for _PyEval_ApplyCoroutineWrapper
2015-06-02 22:30:31 -04:00
Yury Selivanov
47d5e15e50
Issue 24365: Merge 3.5
2015-06-02 19:07:17 -04:00
Yury Selivanov
ca82910221
Issue 24365: Conditionalize PEP 489 additions to the stable ABI
...
Patch by Petr Viktorin.
2015-06-02 19:06:47 -04:00
Yury Selivanov
082332ce37
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
...
(Merge 3.5)
2015-06-02 18:45:11 -04:00
Yury Selivanov
aab3c4a211
Issue 24342: Let wrapper set by sys.set_coroutine_wrapper fail gracefully
2015-06-02 18:43:51 -04:00
Eric Snow
c976b73002
Merge from 3.5.
2015-06-01 23:06:20 -06:00
Eric Snow
a762af74b2
Issue #24347 : Set KeyError if PyDict_GetItemWithError returns NULL.
2015-06-01 22:59:08 -06:00
Yury Selivanov
1b12c554e5
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
2015-06-01 12:15:47 -04:00
Yury Selivanov
d8cf382ee7
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
2015-06-01 12:15:23 -04:00
Benjamin Peterson
cae0658f09
merge 3.5 ( #24345 )
2015-06-01 10:14:35 -05:00
Benjamin Peterson
0969a9f8ab
add Py_tp_finalize slot ( closes #24345 )
...
Patch from Petr Viktorin.
2015-06-01 10:12:48 -05:00
Larry Hastings
61eb146b22
Post-release updates for Python 3.5.0b2.
2015-05-31 21:42:35 -07:00
Larry Hastings
d200e0c072
Version bump for Python 3.5.0b2.
2015-05-30 17:00:48 -07:00
Eric Snow
1edcb2242b
Merge from 3.5.
2015-05-30 12:06:26 -06:00
Eric Snow
d0a06455a5
Issue #16991 : Drop Py_ODict_GetItemId.
2015-05-30 12:06:03 -06:00
Eric Snow
6e15fdfdec
Merge from 3.5.
2015-05-30 09:34:28 -06:00
Eric Snow
8c7ed012b8
Issue #16991 : Use PyObject_TypeCheck instead of PyObject_IsInstance.
2015-05-30 09:29:53 -06:00
Yury Selivanov
7aa5341164
Reverting my previous commit.
...
Something went horribly wrong when I was doing `hg rebase`.
2015-05-30 10:57:56 -04:00
Eric Snow
47db71756d
Issue #16991 : Add a C implementation of collections.OrderedDict.
2015-05-29 22:21:39 -06:00
Benjamin Peterson
0938d98bcc
merge 3.5
2015-05-28 14:40:15 -05:00
Benjamin Peterson
264be6f48f
remove STORE_MAP, since it's unused
2015-05-28 14:40:08 -05:00
Yury Selivanov
ac0bffb962
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
2015-05-28 11:22:41 -04:00
Yury Selivanov
6ef059097c
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
2015-05-28 11:21:31 -04:00
Serhiy Storchaka
e998aad7b3
Issue #24288 : Generated opcode.h no longer contains trailing spaces and tabs.
2015-05-27 21:31:50 +03:00
Serhiy Storchaka
3028c955fa
Issue #24288 : Generated opcode.h no longer contains trailing spaces and tabs.
2015-05-27 21:31:33 +03:00
Larry Hastings
d0c2a20b24
Version bump for trunk to 3.6.0a0. Welcome to the future!
2015-05-25 16:49:01 -07:00
Larry Hastings
f46aa8e2d1
Post-release fixes for 3.5.0b1.
2015-05-24 16:40:45 -07:00
Larry Hastings
205acde55e
Version bump for 3.5.0b1.
2015-05-23 17:43:05 -07:00
Steve Dower
11d7b1423f
Issue #24268 : Adds PyModuleDef_Init and PyModuleDef_Type to python3.def (stable ABI)
2015-05-23 14:44:37 -07:00
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.
2015-05-23 22:24:10 +10:00
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.
2015-05-22 00:41:57 -07:00
Serhiy Storchaka
48e47aaa28
Issue #22486 : Added the math.gcd() function. The fractions.gcd() function now is
...
deprecated. Based on patch by Mark Dickinson.
2015-05-13 00:19:51 +03:00
Yury Selivanov
f487a005d6
Fix warnings for PyEval_GetCoroutineWrapper
2015-05-11 23:19:34 -04:00
Yury Selivanov
7544508f02
PEP 0492 -- Coroutines with async and await syntax. Issue #24017 .
2015-05-11 22:57:16 -04:00
Yury Selivanov
8170e8c0d1
PEP 479: Change StopIteration handling inside generators.
...
Closes issue #22906 .
2015-05-09 11:44:30 -04:00
Benjamin Peterson
025e9ebd0a
PEP 448: additional unpacking generalizations ( closes #2292 )
...
Patch by Neil Girdhar.
2015-05-05 20:16:41 -04:00
Benjamin Peterson
1dfd247c1b
remove the concept of an unoptimized function scope from the compiler, since it can't happen anymore
2015-04-27 21:44:22 -04:00
Gregory P. Smith
e3f6393b52
Add the files missing from c9f1630cf2b1 for issue9951.
...
hg status should be my friend more often...
2015-04-26 00:41:00 +00:00
Larry Hastings
1acdb95965
Merge Python 3.5.0a4 release engineering commits.
2015-04-20 01:19:55 -07:00
Larry Hastings
103e57a713
Post-release updates for Python 3.5.0a4.
2015-04-20 01:18:10 -07:00
Serhiy Storchaka
7e9d1d1a1b
Issue #23908 : os functions now reject paths with embedded null character
...
on Windows instead of silently truncate them.
Removed no longer used _PyUnicode_HasNULChars().
2015-04-20 10:12:28 +03:00
Larry Hastings
55907f45bb
Version number bump for Python 3.5.0a4.
2015-04-19 13:51:40 -07:00
Berker Peksag
dfa4e045a3
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:35:51 +03:00
Berker Peksag
4882cacab6
Issue #23943 : Fix typos. Patch by Piotr Kasprzyk.
2015-04-14 09:30:01 +03:00
Steve Dower
8fc8980c96
Issue #23524 : Replace _PyVerify_fd function with calls to _set_thread_local_invalid_parameter_handler.
2015-04-12 00:26:27 -04:00
Victor Stinner
88ed640fc7
Issue #23834 : Fix the default socket timeout
...
Use -1 second by default, not -1 nanosecond.
2015-04-09 10:23:12 +02:00
Serhiy Storchaka
45ec3288d0
Removed trailing whitespaces in miscalenous files.
2015-04-03 19:42:32 +03:00
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).
2015-04-03 13:10:54 +02:00
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).
2015-04-01 18:34:45 +02:00