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 gennad
Recipients gennad, larry, meador.inge, serhiy.storchaka, vajrasky, zach.ware
Date 2013-12-27.17:08:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388164093.92.0.368206377055.issue20075@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for the comments! I'll update the patch.


BTW is it safe to update Lib/inspect.py:2004 ?

- return cls(parameters, return_annotation=cls.empty)
+ return cls(parameters, return_annotation=f.returns.s or cls.empty)

Looks like the return value is not shown in signature (if it parsed correctly) because currently we explicitly pass cls.empty instance, but if we'd pass f.returns.s, the return value is shown.

Or it is correct behavior?
History
Date User Action Args
2013-12-27 17:08:13gennadsetrecipients: + gennad, larry, meador.inge, zach.ware, serhiy.storchaka, vajrasky
2013-12-27 17:08:13gennadsetmessageid: <1388164093.92.0.368206377055.issue20075@psf.upfronthosting.co.za>
2013-12-27 17:08:13gennadlinkissue20075 messages
2013-12-27 17:08:13gennadcreate