Skip to content

Fix "atexit" handling#48

Merged
mgeier merged 1 commit intomasterfrom
atexit
Nov 4, 2016
Merged

Fix "atexit" handling#48
mgeier merged 1 commit intomasterfrom
atexit

Conversation

@mgeier
Copy link
Member

@mgeier mgeier commented Nov 2, 2016

atexit.unregister() removes all instances of the registered function,
not only one, therefore nested calls didn't work like they are supposed
to. See http://portaudio.com/docs/v19-doxydocs/portaudio_8h.html and
https://docs.python.org/3/library/atexit.html#atexit.unregister.

This commit fixes #47, which was the real reason for the change, since
atexit.unregister() doesn't even exist in Python 2.

atexit.unregister() removes all instances of the registered function,
not only one, therefore nested calls didn't work like they are supposed
to. See http://portaudio.com/docs/v19-doxydocs/portaudio_8h.html and
https://docs.python.org/3/library/atexit.html#atexit.unregister.

This commit fixes #47, which was the real reason for the change, since
atexit.unregister() doesn't even exist in Python 2.
@mgeier mgeier merged commit e5a6c3b into master Nov 4, 2016
@mgeier mgeier deleted the atexit branch November 4, 2016 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

query_devices() doesn't update with changes in hardware

1 participant