This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients brett.cannon, larry, ncoghlan, r.david.murray, serhiy.storchaka, taleinat, vstinner, yselivanov
Date 2017-11-06.16:12:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509984763.45.0.213398074469.issue31939@psf.upfronthosting.co.za>
In-reply-to
Content
I'm sorry, I'm confused between docstrings and annotations.

My first goal is to not loose the return type from the docstring when the select module is converted to Argument Clinic, at least for the simplest return types. Complex return types can be documented manually in the body of a docstring.

Return *annotation* would be nice to have, but it seems to be opposed to the current policy. I started a discussion on python-dev to ask if we should modify this policy :-)

"[Python-Dev] Allow annotations using basic types in the stdlib?"
https://mail.python.org/pipermail/python-dev/2017-November/150233.html
History
Date User Action Args
2017-11-06 16:12:43vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, taleinat, larry, r.david.murray, serhiy.storchaka, yselivanov
2017-11-06 16:12:43vstinnersetmessageid: <1509984763.45.0.213398074469.issue31939@psf.upfronthosting.co.za>
2017-11-06 16:12:43vstinnerlinkissue31939 messages
2017-11-06 16:12:43vstinnercreate