- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | larry |
|---|---|
| Recipients | larry, serhiy.storchaka |
| Date | 2014-01-07.13:20:46 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1389100848.6.0.590090012957.issue20141@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
Attached is a new, simpler approach for supporting O!. The object() converter now takes two arguments:
* type, which is the type you want the parameter declared as
(e.g. "PyUnicodeObject *")
* subclass_of, which is the PyTypeObject you want to enforce the
value is an instance of (e.g. "&PyUnicode_Type")
The old approach was kind of a lovely idea, but was too complicated, and it would have meant registering any new type (like third-party types). This is less convenient, but simple. And it would lend itself well to making a custom converter if you used it a lot.
I'll write some documentation for it now, but I wanted to post the code so I could get a review.
p.s. Why was is marked "crash" and "release blocker"? That's very inaccurate. And assigned to docs? WTH? |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-01-07 13:20:48 | larry | set | recipients: + larry, serhiy.storchaka |
| 2014-01-07 13:20:48 | larry | set | messageid: <1389100848.6.0.590090012957.issue20141@psf.upfronthosting.co.za> |
| 2014-01-07 13:20:48 | larry | link | issue20141 messages |
| 2014-01-07 13:20:48 | larry | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
