Message118869
Please read the first sentence of the docs for the built-in function getattr() here: http://docs.python.org/library/functions.html?highlight=getattr#getattr
Fix the word 'attributed' to 'attribute', because the former is a typo.
A side question. When you document an object's API in the docstring, you write it like this:
getattr(object, name[, default]) -> value
Don't you find it nicer if that would look like this:
getattr(object, name, [default]) -> value
Note the cosmetic fix between the arguments 'name' and 'default'. Do you find my fix acceptable? If yes, please fix docstrings in Python that document the object's API from the '...name[, default]...' format to '...name, [default]...' format. |
|
Date |
User |
Action |
Args |
2010-10-16 14:09:04 | Retro | set | recipients:
+ Retro, docs@python |
2010-10-16 14:09:04 | Retro | set | messageid: <1287238144.34.0.432770346734.issue10122@psf.upfronthosting.co.za> |
2010-10-16 14:09:02 | Retro | link | issue10122 messages |
2010-10-16 14:09:01 | Retro | create | |
|