Skip to content

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Apr 3, 2024

This minor edit improves tooltips and help() without actually changing the API (everything that used to work still does and everything that didn't used to work still doesn't).

>>> help(dict.fromkeys)
fromkeys(iterable, value=None, /) class method of builtins.dict
    Create a new dictionary with keys from iterable and values set to value.

>>> help(ChainMap.fromkeys)
fromkeys(iterable, value=None, /) class method of collections.ChainMap
    Create a new ChainMap with keys from thhe iterable and values set to value.

rhettinger and others added 2 commits April 3, 2024 09:12
@rhettinger rhettinger merged commit 03f7aaf into python:main Apr 3, 2024
@rhettinger rhettinger deleted the fromkeys_signature branch April 3, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants