Commit Graph

1659 Commits

Author SHA1 Message Date
Martin Panter 6a8163a928 Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
This affects documentation and code comments.
2016-04-15 02:14:19 +00:00
Serhiy Storchaka 763a61ca95 Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
in places where Py_DECREF was used.
2016-04-10 18:05:12 +03:00
Serhiy Storchaka bc62af1bbe Issue #22570: Renamed Py_SETREF to Py_XSETREF. 2016-04-06 09:51:18 +03:00
Martin Panter 3c38dccf22 Fix typos in documentation and comments 2016-04-05 06:19:42 +00:00
Serhiy Storchaka 79f657c6e7 Issue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++.
Patch by Jeroen Demeyer.
2016-03-03 18:16:27 +02:00
Serhiy Storchaka 1c496178d2 Issue #25698: Importing module if the stack is too deep no longer replaces
imported module with the empty one.
2016-02-10 10:28:06 +02:00
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