-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clinic fixes: add converters with length, version directive, "self converter" #63929
Comments
Two minor changes for Argument Clinic.
To properly handle length parameters, I had to support PY_SSIZE_T_CLEAN being turned off (when are we gonna throw that away?). So I added a new type to pyports.h, Py_ssize_clean_t, which is either an int or a Py_ssize_t depending on PY_SSIZE_T_CLEAN. I've run out of gas and am going to bed. I know I have two TODO items in the diff so far; I'll deal with those tomorrow. But can I get a quick review of the rest, so I can get this in tomorrow? |
Argument Clinic is an internal tool, so I don't think it's bound by the feature freeze. |
+1 to what Antoine said - keeping the initial iteration internal only |
Attached is a fresh patch. I added a third new feature: the "self converter", which allows you to change the type of (or rename) self. For an example of its use, check out dbm.dbm.get in Modules/_dbmmodule.c. |
New changeset 760ccd78e874 by Larry Hastings in branch 'default': |
The 'version' directive was introduced with pythongh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
…ython#113341) The 'version' directive was introduced with pythongh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
…ython#113341) The 'version' directive was introduced with pythongh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
…ython#113341) The 'version' directive was introduced with pythongh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
…ython#113341) The 'version' directive was introduced with pythongh-63929 in Nov 2013. It has not been in use in the CPython code base, and the 'version' variable has never been bumped.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: