Commit Graph

1653 Commits

Author SHA1 Message Date
Victor Stinner 7791165fb3 code_richcompare() now uses the constants types
Issue #25843: When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.

Add a new _PyCode_ConstantKey() private function.
2016-01-22 12:33:12 +01:00
Serhiy Storchaka 5951f2300f Issue #20440: Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
2015-12-24 10:35:35 +02:00
Benjamin Peterson 4f1aeaef3d off to 2.7.12 we go 2015-12-05 11:46:21 -08:00
Benjamin Peterson 11fc030b6f 2.7.11 final 2015-12-05 11:45:17 -08:00
Benjamin Peterson 85592c9c80 post rc1 updates 2015-11-21 18:38:18 -08:00
Benjamin Peterson c6f13db94a bump to 2.7.11rc1 2015-11-21 13:38:35 -08:00
Serhiy Storchaka c72e66a048 Issue #25523: Backported a-to-an corrections. 2015-11-02 15:06:09 +02:00
R David Murray 9168d069bf #21167: Fix definition of NAN when ICC used without -fp-model strict.
Patch from Chris Hogan of Intel, reviewed by Mark Dickinson.
2015-08-13 09:48:35 -04:00
Serhiy Storchaka 1670af6c33 Added the const qualifier for char* argument of Py_EnterRecursiveCall(). 2015-06-21 16:26:28 +03:00
Serhiy Storchaka c7797dc748 Issue #19543: Emit deprecation warning for known non-text encodings.
Backported issues #19619: encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.

Backported issues #20404: io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
2015-05-31 20:21:00 +03:00
Benjamin Peterson 2c992a0788 backport computed gotos (#4753) 2015-05-28 12:45:31 -05:00
Benjamin Peterson 60ab9ccf56 2.7.10+ 2015-05-23 11:03:53 -05:00
Benjamin Peterson 5a29c5cc45 python 2.7.10 final 2015-05-23 11:02:14 -05:00
Benjamin Peterson a40ea98fc1 bump version to 2.7.10rc1 2015-05-10 13:14:16 -04:00
Benjamin Peterson 023de869ec use rc rather than beta 2015-04-02 21:36:42 -04:00
doko@ubuntu.com 320bec1922 - Set PY_VERSION to "2.7.10b0", PY_MICRO_VERSION to 10 and
PY_RELEASE_LEVEL to PY_RELEASE_LEVEL_BETA.
2015-04-02 15:59:13 +02:00
Serhiy Storchaka aa64c46ac9 Issue #23781: Add private helper function _PyErr_ReplaceException() that
corresponds _PyErr_ChainExceptions() in Python 3 to help porting patches
from Python 3.
2015-03-30 09:48:42 +03:00
Benjamin Peterson 083f6fba5a move 2.7 branch to 2.7.9+ 2014-12-10 11:57:12 -05:00
Benjamin Peterson a5f49f5bb4 bump to 2.7.9 final 2014-12-10 10:57:00 -05:00
Benjamin Peterson af358ef399 2.7.9rc1 2014-11-25 18:27:24 -06:00
Antoine Pitrou b9a4501179 Issue #21963: backout issue #1856 patch (avoid crashes and lockups when
daemon threads run while the interpreter is shutting down; instead,
these threads are now killed when they try to take the GIL), as it seems
to break some existing code.
2014-11-21 02:04:21 +01:00
Serhiy Storchaka a86c091a73 Issue #22453: Fexed reference leaks when format error messages in ceval.c.
Warn against the use of leaking macro PyObject_REPR().
2014-11-19 00:11:05 +02:00
Serhiy Storchaka ead2f5a027 Issue #18637: Fixed an error in _PyNode_SizeOf declaration.
Patch by Roumen Petrov.
2014-11-18 17:29:47 +02:00
Serhiy Storchaka f9b2aa2efe Issue #22193: Fixed integer overflow error in sys.getsizeof().
Fixed an error in _PySys_GetSizeOf declaration.
2014-11-15 13:21:01 +02:00
Benjamin Peterson 57057a6624 PEP 466: backport persistent urandom fd (closes #21305)
Patch from Alex Gaynor.
2014-08-28 12:30:00 -04:00
Serhiy Storchaka f880bff41a Removed useless Py_LIMITED_API checks.
Support for Py_LIMITED_API was introduced in Python 3.2.
Thanks Arfrever Frehtes Taifersar Arahesis.
2014-08-17 13:29:13 +03:00
Serhiy Storchaka c95f51a953 Issue #22193: Added private function _PySys_GetSizeOf() needed to implement
some __sizeof__() methods.
2014-08-14 22:20:23 +03:00
Benjamin Peterson 7ce6a96469 after 2.7.8 2014-06-29 18:59:07 -07:00
Benjamin Peterson fdbdcfe020 bump to 2.7.8 2014-06-29 18:58:16 -07:00
Benjamin Peterson c0bc4eff50 avoid crashes and lockups from daemon threads during interpreter shutdown (#1856) 2014-06-16 19:39:18 -07:00
Benjamin Peterson e047f56bbd post 2.7.7 version bump 2014-05-31 15:25:38 -07:00
Benjamin Peterson 15e5a165d0 merge 2.7.7 release branch 2014-05-31 11:24:25 -07:00
Benjamin Peterson 9c70397ea3 bump to 2.7.7 final 2014-05-31 11:17:34 -07:00
Benjamin Peterson dfc1b4bebe remove tab (closes #21587) 2014-05-26 15:12:28 -07:00
Benjamin Peterson 996bf4828d bump to 2.7.7rc1 2014-05-17 17:31:50 -07:00
Benjamin Peterson ffc34e8311 use imperative 2014-04-08 10:51:20 -04:00
Benjamin Peterson 95d8acfde3 PySequence_Fast generally returns a list (#16305) 2014-04-08 10:50:54 -04:00
Victor Stinner 7821ff3789 Issue #19932: Fix typo in import.h, missing whitespaces in function prototypes. 2013-12-10 01:23:22 +01:00
Alexandre Vassalotti df9460f8dc Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle. 2013-11-30 17:43:42 -08:00
Alexandre Vassalotti a2934280e5 Issue #6477: Added pickling support for singletons and their types. 2013-11-30 16:52:03 -08:00
Benjamin Peterson 01bdeec8c0 a post-2.7.6 world 2013-11-10 02:47:17 -05:00
Benjamin Peterson 278519500f 2.7.6 final 2013-11-10 02:36:30 -05:00
Benjamin Peterson 07ffc78c9a 2.7.6rc1 2013-10-26 14:57:21 -04:00
Georg Brandl 4fe1260165 Closes #13867: remove untrue comment about PyWeakref_Check(). 2013-10-08 19:50:26 +02:00
Ezio Melotti 419e23cbb0 #18466: fix more typos. Patch by Févry Thibault. 2013-08-17 16:56:09 +03:00
Benjamin Peterson 988aba3ba3 onto 2.7.6 2013-05-11 22:36:05 -05:00
Benjamin Peterson 086494483d bump version to 2.7.5 2013-05-11 22:29:20 -05:00
Antoine Pitrou 108d1b4a79 Issue #17703: Fix a regression where an illegal use of Py_DECREF() after interpreter finalization can cause a crash. 2013-04-15 21:20:14 +02:00
Benjamin Peterson 5419e493af start cracking on 2.7.5 2013-04-06 10:17:54 -04:00
Benjamin Peterson 376dd0edfa change version to 2.7.4 2013-04-06 09:58:51 -04:00