- 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 | mdk |
|---|---|
| Recipients | larry, martin.panter, mdk, rhettinger, serhiy.storchaka, skrah, vstinner |
| Date | 2016-12-11.00:27:09 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1481416029.55.0.330807181389.issue28754@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
Hi Raymond, I don't like having the converters in the C implementation too, that's why I'm working on issue28933 to clean this. > letting the C function handle both -1 and None in the implementation rather than in AC? It works, yes. But I prefer to clearly split responsibilities: AC being responsible of adapting argument from PyObjects to C types, and C functions being responsible of ... doing their job. If the idea in issue28933 is accepted, we'll be able to declare hi as simply as: hi: Py_ssize_t(c_default="-1") = None meaning "C function will get a Py_ssize_t, default value for C code is -1, None is documented, and None can be passed to get the C default value", that's this last point "None can be passed to get the C default value" that I introduce in issue28933. With this syntax, both C converters and the python hi_parameter_converter can be dropped. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-12-11 00:27:09 | mdk | set | recipients: + mdk, rhettinger, vstinner, larry, skrah, martin.panter, serhiy.storchaka |
| 2016-12-11 00:27:09 | mdk | set | messageid: <1481416029.55.0.330807181389.issue28754@psf.upfronthosting.co.za> |
| 2016-12-11 00:27:09 | mdk | link | issue28754 messages |
| 2016-12-11 00:27:09 | mdk | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
