]> granicus.if.org Git - python/commit
Fix SF bug #486144: Uninitialized __slot__ vrbl is None.
authorGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 16:23:42 +0000 (16:23 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 16:23:42 +0000 (16:23 +0000)
commit6b70599450777a8b911f0eff44b18cd22f1c1e1e
tree10bb79dc54602e3226dd68774994e15a6d1af2b9
parentebca9fc1ba23e58d734b9ab422da6a64fa4d72e2
Fix SF bug #486144: Uninitialized __slot__ vrbl is None.

There's now a new structmember code, T_OBJECT_EX, which is used for
all __slot__ variables (except __weakref__, which has special behavior
anyway).  This new code raises AttributeError when the variable is
NULL rather than converting NULL to None.
Include/structmember.h
Lib/test/test_descr.py
Python/structmember.c