Message164025
| 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:42 | ncoghlan | set | recipients:
+ ncoghlan, Yury.Selivanov, yselivanov |
| 2012年06月26日 01:02:41 | ncoghlan | set | messageid: <1340672561.73.0.12990485662.issue15185@psf.upfronthosting.co.za> |
| 2012年06月26日 01:02:40 | ncoghlan | link | issue15185 messages |
| 2012年06月26日 01:02:39 | ncoghlan | create |
|