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 — Add C API for importing an attribute from a module · Issue #93741 · python/cpython Closed Labels DescriptionIt is common (more than 30 cases) in the C code to access a function or a variable from other module. For example: functools = PyImport_ImportModule("functools"); if (!functools) goto error; st->partial = PyObject_GetAttrString(functools, "partial"); Py_CLEAR(functools); I propose to add a private helper function which combines st->partial = _PyImport_GetModuleAttrString("functools", "partial"); It will save 4-6 lines of code and a variable on every use. 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. |