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.
diff --git a/Include/structmember.h b/Include/structmember.h
index 2c9f41d..98eccc0 100644
--- a/Include/structmember.h
+++ b/Include/structmember.h
@@ -68,6 +68,10 @@
#define T_PSTRING_INPLACE 15
#endif /* macintosh */
+#define T_OBJECT_EX 16 /* Like T_OBJECT, but raises AttributeError
+ when the value is NULL, instead of
+ converting to None. */
+
/* Flags */
#define READONLY 1
#define RO READONLY /* Shorthand */