PEP 308 original proposal "used" already in Python Documentation
Christoph Becker-Freyseng
webmaster at beyond-thoughts.com
Mon Mar 3 07:11:07 EST 2003
Hello,
I just found something funny in Python's Documentation.
In 2.1.6 Mapping Types you can find the following:
a.get(k[, x]) a[k] if k in a, else x (4)
a.setdefault(k[, x]) a[k] if k in a, else x (also setting it) (5)
It looks very similar to the original proposalof PEP 308, but it's the
explanation of {}.get and {}.setdefault .
Christoph Becker-Freyseng
More information about the Python-list
mailing list