diff options
author | Raymond Hettinger <python@rcn.com> | 2007-10-16 21:28:32 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-10-16 21:28:32 (GMT) |
commit | abfd8dff3bd6bd2836e824b185a367c4b6c8e1f4 (patch) | |
tree | ad46b5d3eab55be40c315627ad575217dfc7e7fd /Doc | |
parent | 050afbf214ae4066722c966ad653c199ad9c15ec (diff) | |
download | cpython-abfd8dff3bd6bd2836e824b185a367c4b6c8e1f4.zip cpython-abfd8dff3bd6bd2836e824b185a367c4b6c8e1f4.tar.gz cpython-abfd8dff3bd6bd2836e824b185a367c4b6c8e1f4.tar.bz2 |
More docs, error messages, and tests
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 4e93b15..8d24e23 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -365,9 +365,13 @@ they add the ability to access fields by name instead of position index. The *fieldnames* are a single string with each fieldname separated by whitespace and/or commas (for example 'x y' or 'x, y'). Alternatively, the *fieldnames* - can be specified as a list of strings (such as ['x', 'y']). Any valid - Python identifier may be used for a fieldname except for names starting and - ending with double underscores. + can be specified as a list of strings (such as ['x', 'y']). + + Any valid Python identifier may be used for a fieldname except for names + starting and ending with double underscores. Valid identifiers consist of + letters, digits, and underscores but do not start with a digit and cannot be + a :mod:`keyword` such as *class*, *for*, *return*, *global*, *pass*, *print*, + or *raise*. If *verbose* is true, will print the class definition. |