GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Fix forced arg format in AC-processed modules with custom converters · Issue #94512 · python/cpython Open Labels DescriptionThere are custom Argument Clinic converters that define Here is a list of such classes (and fixing PRs except complex cases):
An example of such a converter: class BOOL_converter(CConverter): type = 'BOOL' format_unit = 'i' class pid_t_converter(CConverter): type = 'pid_t' format_unit = '" _Py_PARSE_PID "' I'm going to teach all of them about low-level generation by replacing manual
For the example it gives: class BOOL_converter(int_converter): type = 'BOOL' class pid_t_converter(CConverter): type = 'pid_t' # Left as a backup for potential complex cases format_unit = '" _Py_PARSE_PID "' def parse_arg(self, argname, displayname): return """ {paramname} = PyLong_AsPid({argname}); if ({paramname} == -1 && PyErr_Occurred()) {{{{ goto exit; }}}} """.format(argname=argname, paramname=self.parser_name) Activity
MetadataMetadataAssigneesLabelsProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |