summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ae
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-12-14 15:47:01 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-12-14 15:47:01 (GMT)
commitb1b78d85d389c55ba4fb59b581e881c3eac2f03e (patch)
tree86ce94934584a2678a6a447b7afbc1f5b6295d94 /Mac/Modules/ae
parent13681b73b5d951a8f2c453aa20a2f11d75474d31 (diff)
downloadcpython-b1b78d85d389c55ba4fb59b581e881c3eac2f03e.zip
cpython-b1b78d85d389c55ba4fb59b581e881c3eac2f03e.tar.gz
cpython-b1b78d85d389c55ba4fb59b581e881c3eac2f03e.tar.bz2
Bgen now understands more constant definitions, but that means that a few which are not parseable in Python have to be blacklisted.
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r--Mac/Modules/ae/AEmodule.c12
-rw-r--r--Mac/Modules/ae/aescan.py3
2 files changed, 15 insertions, 0 deletions
diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c
index 241cb5d..ebdb3e1 100644
--- a/Mac/Modules/ae/AEmodule.c
+++ b/Mac/Modules/ae/AEmodule.c
@@ -813,6 +813,12 @@ static PyObject *AEDesc_getattr(self, name)
#define AEDesc_setattr NULL
+#define AEDesc_compare NULL
+
+#define AEDesc_repr NULL
+
+#define AEDesc_hash NULL
+
PyTypeObject AEDesc_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
@@ -824,6 +830,12 @@ PyTypeObject AEDesc_Type = {
0, /*tp_print*/
(getattrfunc) AEDesc_getattr, /*tp_getattr*/
(setattrfunc) AEDesc_setattr, /*tp_setattr*/
+ (cmpfunc) AEDesc_compare, /*tp_compare*/
+ (reprfunc) AEDesc_repr, /*tp_repr*/
+ (PyNumberMethods *)0, /* tp_as_number */
+ (PySequenceMethods *)0, /* tp_as_sequence */
+ (PyMappingMethods *)0, /* tp_as_mapping */
+ (hashfunc) AEDesc_hash, /*tp_hash*/
};
/* --------------------- End object type AEDesc --------------------- */
diff --git a/Mac/Modules/ae/aescan.py b/Mac/Modules/ae/aescan.py
index c1f4251..b2174a8 100644
--- a/Mac/Modules/ae/aescan.py
+++ b/Mac/Modules/ae/aescan.py
@@ -70,6 +70,9 @@ class AppleEventsScanner(Scanner):
return [
"AEDisposeDesc",
# "AEGetEventHandler",
+ # Constants with funny definitions
+ "kAEDontDisposeOnResume",
+ "kAEUseStandardDispatch",
]
def makeblacklisttypes(self):