Victor Stinner
4a21e57fe5
bpo-40268: Remove unused structmember.h includes (GH-19530)
...
If only offsetof() is needed: include stddef.h instead.
When structmember.h is used, add a comment explaining that
PyMemberDef is used.
2020-04-15 02:35:41 +02:00
Victor Stinner
9cc3ebd7e0
bpo-40149: Implement traverse in _abc._abc_data (GH-19412)
...
Implement traverse and clear slots in _abc._abc_data type.
2020-04-07 18:36:04 +02:00
Dong-hee Na
53e4c91725
bpo-40077: Convert _abc module to use PyType_FromSpec() (GH-19202)
...
Replace statically allocated types with heap allocated types:
use PyType_FromSpec().
Add a module state to store the _abc_data_type.
Add traverse, clear and free functions to the module.
2020-03-30 16:35:38 +02:00
Hai Shi
4c1b6a6f4f
bpo-1635741: Port _abc extension to multiphase initialization (PEP 489) (GH-18030)
2020-02-17 14:50:35 +01:00
Dong-hee Na
1b55b65638
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
2020-02-17 11:09:15 +01:00
Jeroen Demeyer
59ad110d7a
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
2019-07-11 17:59:05 +09:00
Min ho Kim
f7d72e48fb
Fix some typos (GH-14435)
2019-07-05 14:39:32 -07:00
Jeroen Demeyer
b1263d5a60
bpo-37337: Add _PyObject_VectorcallMethod() (GH-14228)
2019-06-28 18:49:00 +09:00
E. M. Bray
abe5922743
fix _abc.c compile error on Cygwin (GH-8445)
2019-02-24 10:30:14 +09:00
Zackery Spytz
4c49da0cb7
bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015)
...
Set MemoryError when appropriate, add missing failure checks,
and fix some potential leaks.
2018-12-07 12:11:30 +02:00
Peter Eisentraut
0e0bc4e221
Fix misleading mentions of tp_size in comments (GH-9093)
...
Many type object initializations labeled a field "tp_size" in the
comment, but the name of that field is tp_basicsize.
2018-09-10 09:46:08 -07:00
Alexey Izbyshev
cdbf50cba1
bpo-34441: Fix ABC.__subclasscheck__ crash on classes with invalid __subclasses__ (GH-8835)
...
The missing NULL check was reported by Svace static analyzer.
2018-08-20 23:04:19 +03:00
INADA Naoki
c65bf3fe4a
bpo-32999: ast: Convert useless check to assert (GH-6197)
2018-03-23 18:19:34 +09:00
INADA Naoki
f757b72b25
bpo-32999: Revert GH-6002 ( fc7df0e6
) (GH-6189)
...
bpo-33018 (GH-5944) fixed bpo-32999 too. So fc7df0e6
is not required
anymore. Revert it except test case.
2018-03-22 21:52:42 +09:00
jab
40472dd42d
bpo-33018: Improve issubclass() error checking and message. (GH-5944)
...
This improves error message for situations when a non-class is
checked w.r.t. an abstract base class.
2018-03-22 11:26:06 +00:00
INADA Naoki
fc7df0e664
bpo-32999: Fix ABC.__subclasscheck__ crash (GH-6002)
2018-03-07 16:27:01 +09:00
Ivan Levkivskyi
03e3c340a0
bpo-31333: Re-implement ABCMeta in C ( #5273 )
...
This adds C versions of methods used by ABCMeta that
improve performance of various ABC operations.
2018-02-18 12:41:58 +00:00