-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-37645: add new function _PyObject_FunctionStr() #14890
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
Changes from 1 commit
2a55a9f
733158d
4c0c877
2e1b44e
fa20556
b2e56da
21aee80
402ec96
0307ce9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,7 @@ Object Protocol | |
does not silently discard an active exception. | ||
|
||
|
||
.. c:function:: PyObject* PyObject_FunctionStr(PyObject *func) | ||
.. c:function:: PyObject* _PyObject_FunctionStr(PyObject *func) | ||
|
||
Return a user-friendly string representation of the function-like object | ||
*func*. This returns ``func.__qualname__ + "()"`` if there is a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Returning If you want to return a full qualified name (long but unambiguous), return If you want to return a short name (it is enough in many times), return if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is mainly meant as replacement for |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Add :c:func:`PyObject_FunctionStr` to get a user-friendly string representation | ||
Add :c:func:`_PyObject_FunctionStr` to get a user-friendly string representation | ||
of a function-like object. |
Uh oh!
There was an error while loading. Please reload this page.