]> git.alsa-project.org Git - alsa-python.git/commit
alsaseq: fix constant objects in Python 3
authorHector Martin <marcan@marcan.st>
Wed, 5 Aug 2020 15:42:43 +0000 (00:42 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Aug 2020 14:10:20 +0000 (16:10 +0200)
commita64a6cc703d08db5c223a16bf812a569534ba464
treedf42c78589015911a2fcf93e06bdaa57b9536aba
parente1bc1c27b6286dcf2d6bf4955650cf5729cf9b7a
alsaseq: fix constant objects in Python 3

In Py3 everything is a long, so we can't get away with duplicating the
integer object layout any more. Properly subclass PyLong_Type instead,
with a bit of a hack to add an extra name field after the variable-sized
data section.

Also get rid of the enum type stuff, which seems to be unused cruft, and
the numprotocol stuff, because the base type can take care of that (and
we can't map arbitrary arithmetic results back to constants anyway).

Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
pyalsa/alsaseq.c