Update the CPython PyObject_HasAttrString docs to mention PyObject_HasAttr is faster

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Update the CPython PyObject_HasAttrString C API docs to mention that PyObject_HasAttr is a faster alternative if the same attribute name is going to be used multiple times.

      We can model this after https://docs.python.org/3/c-api/call.html#c.PyObject_CallFunction which has the following note:

      Note that if you only pass PyObject* args, PyObject_CallMethodObjArgs() is a faster alternative.

            Assignee:
            Unassigned
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: