Skip to content

Conversation

rowillia
Copy link
Contributor

See https://github.com/python/cpython/blob/08c16016e2a2d1368d001ddebfe9ca92465773c4/Lib/types.py#L32-L34

>>> class _C:
...     def _m(self): pass
...
>>> _C()._m.__name__
'_m'

@rowillia rowillia force-pushed the add__name__to_MethodType branch from b644183 to f825788 Compare June 28, 2017 21:22
@JelleZijlstra JelleZijlstra merged commit ac87de5 into python:master Jun 29, 2017
rhysparry added a commit to rhysparry/typeshed that referenced this pull request Jul 3, 2017
* python/master:
  Added stub for toaiff module (python#1455)
  Added stub for user module (python#1454)
  Add more multiprocessing function stubs (python#1435)
  PyYaml: uncomment commented out imports and add missing classmethod decorators (python#1439)
  Allow `os.readlink` to accept path-like objects (python#1441)
  Support named attributes in `os.uname()` result (python#1445)
  Fix signature for slite3.fetchmany (python#1444)
  Add __name__ field to MethodType (python#1442)
  Add TypedDict total argument (python#1443)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants