Serhiy Storchaka
e9f9b04278
[2.7] bpo-25794: Fix type.__setattr__() for non-interned or unicode attribute names. (GH-1652) ( #1675 )
...
Based on patch by Eryk Sun.
(cherry picked from commit d896985bb2 )
2017-05-20 10:04:53 +03:00
Benjamin Peterson
4403d501ac
revert a37cc3d926ec ( #5322 )
2016-12-13 23:30:16 -08:00
Benjamin Peterson
d1aad3fceb
Backed out changeset ea904d4b3634
2016-12-13 23:27:56 -08:00
Benjamin Peterson
f8f2138bd4
fix refleak in reduce_2 error case
2016-12-03 12:08:24 -08:00
Benjamin Peterson
cffc0f4178
declarations to the top of the block
2016-12-02 00:02:24 -08:00
Serhiy Storchaka
daf82f7539
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-02 08:42:43 +02:00
Serhiy Storchaka
61dd7ff073
Issue #26906 : Resolving special methods of uninitialized type now causes
...
implicit initialization of the type instead of a fail.
2016-10-08 12:24:09 +03:00
Serhiy Storchaka
0ea51b18d5
Issue #18287 : PyType_Ready() now checks that tp_name is not NULL.
...
Original patch by Niklas Koep.
2016-10-07 23:24:35 +03:00
Victor Stinner
42e9d94bc5
Fix a refleak in call_maybe()
...
Issue #27128 . Fix a reference leak if creating the tuple to pass positional
parameters fails.
2016-08-19 17:58:54 +02:00
Victor Stinner
c9921d3bdc
Fix a refleak in call_method()
...
Issue #27128 . Fix a reference leak if creating the tuple to pass positional
parameters fails.
2016-08-19 17:52:53 +02:00
Martin Panter
3d36f0f712
Spelling and grammar fixes in code comments and documentation
2016-07-28 02:37:04 +00:00
Benjamin Peterson
ee69451f34
fix refleaks in PyDict_SetItem error cases ( closes #27248 )
2016-07-06 23:26:32 -07:00
Martin Panter
646b528467
Issue #22463 : Backport compiler warning fixes and workarounds
...
* Set but unused variable in Parser/pgen.c in non-debug builds. Patch by
Christian Heimes.
* Unused static function in Modules/readline.c. Patch by Georg Brandl.
* main_window unused in Modules/tkappinit.c. Patch by Gregory P. Smith.
* Dead assignment in Modules/_ctypes/cfield.c. Extracted from patch by Brett
Cannon.
* Expression result unused in PyObject_INIT macro expansions. Based on
patches by Christian Heimes.
* Load expat_config.h and therefore pyconfig.h before C stdlib headers are
loaded. This silences pre-processor warnings including '_POSIX_C_SOURCE
redefined'. Extracted from patch by Christian Heimes.
2016-06-21 23:58:05 +00:00
Serhiy Storchaka
1a9ee946b0
Issue #27225 : Fixed a reference leak in type_new when setting __new__ fails.
...
Original patch by Xiang Zhang.
2016-06-05 11:06:42 +03:00
Benjamin Peterson
6ee36a5a8c
Backed out changeset e7062dd9085e ( #25731 )
2016-05-28 14:03:41 -07:00
Serhiy Storchaka
9ec6464008
Issue #26718 : super.__init__ no longer leaks memory if called multiple times.
...
NOTE: A direct call of super.__init__ is not endorsed!
2016-04-13 15:27:33 +03:00
Serhiy Storchaka
bc62af1bbe
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:51:18 +03:00
Benjamin Peterson
b59b04dd86
fix hash member name ( closes #22847 )
2016-02-06 22:36:06 -08:00
Benjamin Peterson
4a0a9556fc
fix debug assertion
2016-02-04 22:26:10 -08:00
Antoine Pitrou
225e7c0def
Issue #22847 : Improve method cache efficiency.
2014-11-15 00:56:27 +01:00
Benjamin Peterson
a4acf1ff84
set tp_new from the class in the hierarchy that actually owns the descriptor ( closes #25731 )
...
Debugging by Eryk Sun.
2016-01-18 21:17:54 -08:00
Barry Warsaw
607965eb7e
Comment out two tests that won't pass now after reverting the typeobject.c
...
change. Also, as per further discussion, we'll just remove the regressing
code in typeobject.c
2016-01-11 14:44:59 -05:00
Barry Warsaw
f65395c8c2
Issue #22995 : [UPDATE] Comment out the one of the pickleability tests in
...
_PyObject_GetState() due to regressions observed in Cython-based projects.
2016-01-11 13:52:23 -05:00
Serhiy Storchaka
28f35f246b
Issue #25961 : Fixed compilation error and a leak in type constructor.
2015-12-31 12:03:14 +02:00
Serhiy Storchaka
f9347e3b44
Issue #25961 : Disallowed null characters in the type name.
2015-12-30 21:39:21 +02:00