[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 762bf40438a572a398e500c74e38f9894ea20a45 by Serhiy Storchaka in branch 'master': bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) https://github.com/python/cpython/commit/762bf40438a572a398e500c74e38f9894ea20a45 ---

[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +636 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29852] Argument Clinic: add common converter to Py_ssize_t that accepts None

2017-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Many methods in the io module accept int and None and convert the argument to Py_ssize_t. Proposed patch adds common Argument Clinic converter for that case. The Py_ssize_t converter now takes the accept argument that can be {int} (the default) or {int, No