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 ncoghlan
Recipients Yury.Selivanov, ncoghlan, yselivanov
Date 2012-06-26.01:02:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340672561.73.0.12990485662.issue15185@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not comfortable adding a dependency on inspect to the contextlib module, and I think it would be undesirable to have too many cases where the early validation is silently skipped.

While I like the idea of adding early signature validation to these APIs in principle, given the above concerns and the fact this probably crosses the line into "feature" territory, I think we want to wait until 3.4 and the introduction of a mechanism that adds introspection support to callables implemented in C.

That will likely involve moving the signature support somewhere lower in the module stack (perhaps to a private "_signature" module, with inspect remaining the official API), and will reduce the number of cases where pre-validation is skipped.
History
Date User Action Args
2012-06-26 01:02:42ncoghlansetrecipients: + ncoghlan, Yury.Selivanov, yselivanov
2012-06-26 01:02:41ncoghlansetmessageid: <1340672561.73.0.12990485662.issue15185@psf.upfronthosting.co.za>
2012-06-26 01:02:40ncoghlanlinkissue15185 messages
2012-06-26 01:02:39ncoghlancreate