Skip to content

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

2 participants