[issue34740] Get rid of tp_getattro in ossaudiodev.oss_audio_device

2018-10-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34740] Get rid of tp_getattro in ossaudiodev.oss_audio_device

2018-10-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5f5a7781c8bf7bcc476d3e05d980711be3920724 by Serhiy Storchaka in branch 'master': bpo-34740: Get rid of tp_getattro in ossaudiodev.oss_audio_device. (GH-9421) https://github.com/python/cpython/commit/5f5a7781c8bf7bcc476d3e05d980711be3920724 -

[issue34740] Get rid of tp_getattro in ossaudiodev.oss_audio_device

2018-09-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8841 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34740] Get rid of tp_getattro in ossaudiodev.oss_audio_device

2018-09-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently ossaudiodev.oss_audio_device has the tp_getattro slot for handling some attributes. The proposed PR replaces it with tp_members and tp_getset. Benefits: constant time access, names of these attributes are added to the result of dir() and help()