Message228217
Tables in pydoc are formatted incorrectly -- some lines are missing. Example in Python 3.4.1:
>>> help('TUPLES')
...
+----------------------------+----------------------------------+------------+
| Operation | Result | Notes |
+============================+==================================+============+
| "x in s" | "True" if an item of *s* is | (1) |
+----------------------------+----------------------------------+------------+
| "x not in s" | "False" if an item of *s* is | (1) |
+----------------------------+----------------------------------+------------+
| "s + t" | the concatenation of *s* and *t* | (6)(7) |
+----------------------------+----------------------------------+------------+
| "s * n" or "n * s" | *n* shallow copies of *s* | (2)(7) |
+----------------------------+----------------------------------+------------+
| "s[i]" | *i*th item of *s*, origin 0 | (3) |
+----------------------------+----------------------------------+------------+
| "s[i:j]" | slice of *s* from *i* to *j* | (3)(4) |
+----------------------------+----------------------------------+------------+
| "s[i:j:k]" | slice of *s* from *i* to *j* | (3)(5) |
+----------------------------+----------------------------------+------------+
+----------------------------+----------------------------------+------------+
+----------------------------+----------------------------------+------------+
+----------------------------+----------------------------------+------------+
| "s.index(x[, i[, j]])" | index of the first occurrence of | (8) |
+----------------------------+----------------------------------+------------+
+----------------------------+----------------------------------+------------+
Older version of the same table in Python 3.2.5 in Cygwin console:
+--------------------+----------------------------------+------------+
| Operation | Result | Notes |
+====================+==================================+============+
| ``x in s`` | ``True`` if an item of *s* is | (1) |
| | equal to *x*, else ``False`` | |
+--------------------+----------------------------------+------------+
| ``x not in s`` | ``False`` if an item of *s* is | (1) |
| | equal to *x*, else ``True`` | |
+--------------------+----------------------------------+------------+
| ``s + t`` | the concatenation of *s* and *t* | (6) |
+--------------------+----------------------------------+------------+
| ``s * n, n * s`` | *n* shallow copies of *s* | (2) |
| | concatenated | |
+--------------------+----------------------------------+------------+
| ``s[i]`` | *i*th item of *s*, origin 0 | (3) |
+--------------------+----------------------------------+------------+
| ``s[i:j]`` | slice of *s* from *i* to *j* | (3)(4) |
+--------------------+----------------------------------+------------+
| ``s[i:j:k]`` | slice of *s* from *i* to *j* | (3)(5) |
| | with step *k* | |
+--------------------+----------------------------------+------------+
| ``len(s)`` | length of *s* | |
+--------------------+----------------------------------+------------+
| ``min(s)`` | smallest item of *s* | |
+--------------------+----------------------------------+------------+
| ``max(s)`` | largest item of *s* | |
+--------------------+----------------------------------+------------+
| ``s.index(i)`` | index of the first occurence of | |
| | *i* in *s* | |
+--------------------+----------------------------------+------------+
| ``s.count(i)`` | total number of occurences of | |
| | *i* in *s* | |
+--------------------+----------------------------------+------------+ |
|
Date |
User |
Action |
Args |
2014-10-02 11:38:30 | Artur.de.Sousa.Rocha | set | recipients:
+ Artur.de.Sousa.Rocha, docs@python |
2014-10-02 11:38:30 | Artur.de.Sousa.Rocha | set | messageid: <1412249910.15.0.577492255731.issue22539@psf.upfronthosting.co.za> |
2014-10-02 11:38:30 | Artur.de.Sousa.Rocha | link | issue22539 messages |
2014-10-02 11:38:29 | Artur.de.Sousa.Rocha | create | |
|