Message161820
| Author |
eric.snow |
| Recipients |
eric.snow |
| Date |
2012年05月28日.23:56:22 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338249384.08.0.153670588779.issue14942@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Nick Coghlan suggested[1] exploring an easier spelling for "type(name, (), {})" in the C API. I've attached a patch that adds a function that does so: _PyType_New(). It's "private" in the patch, but only because I am reticent to expand the API without solid feedback from the more experienced devs.
Even if I didn't get the implementation quite right (I'm relatively new to the C API), the patch at least demonstrates the concept. :)
[1] http://mail.python.org/pipermail/python-ideas/2012-May/015281.html |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年05月28日 23:56:24 | eric.snow | set | recipients:
+ eric.snow |
| 2012年05月28日 23:56:24 | eric.snow | set | messageid: <1338249384.08.0.153670588779.issue14942@psf.upfronthosting.co.za> |
| 2012年05月28日 23:56:23 | eric.snow | link | issue14942 messages |
| 2012年05月28日 23:56:23 | eric.snow | create |
|