diff options
author | Georg Brandl <georg@python.org> | 2007-08-31 17:17:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-31 17:17:17 (GMT) |
commit | 81ac1ce56af43a37d963ec8aecb7069b7edb2077 (patch) | |
tree | 8e79225231f5e8b2fea8527d29b1274df128f05a /Doc/library/stdtypes.rst | |
parent | dcc56f8bf668965ef5f3cfe2fd6a07b7b84b08a8 (diff) | |
download | cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.zip cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.tar.gz cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.tar.bz2 |
Address a few XXX comments, other fixes.
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r-- | Doc/library/stdtypes.rst | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 9fd6e44..96c0b26 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -137,6 +137,17 @@ be chained arbitrarily; for example, ``x < y <= z`` is equivalent to ``x < y and y <= z``, except that *y* is evaluated only once (but in both cases *z* is not evaluated at all when ``x < y`` is found to be false). +.. index:: + pair: operator; comparison + operator: == + operator: < + operator: > + operator: <= + operator: >= + operator: != + operator: is + operator: is not + This table summarizes the comparison operations: +------------+-------------------------+-------+ @@ -160,14 +171,6 @@ This table summarizes the comparison operations: +------------+-------------------------+-------+ .. index:: - pair: operator; comparison - operator: == - operator: is - operator: is not - -.. % XXX *All* others have funny characters < ! > - -.. index:: pair: object; numeric pair: objects; comparing @@ -1021,7 +1024,7 @@ Old String Formatting Operations single: % formatting single: % interpolation -.. XXX better? +.. XXX is the note enough? .. note:: @@ -1182,8 +1185,6 @@ Notes: Since Python strings have an explicit length, ``%s`` conversions do not assume that ``'\0'`` is the end of the string. -.. % XXX Examples? - For safety reasons, floating point precisions are clipped to 50; ``%f`` conversions for numbers whose absolute value is over 1e25 are replaced by ``%g`` conversions. [#]_ All other errors raise exceptions. @@ -1380,7 +1381,8 @@ In addition to the operations on mutable sequence types (see :ref:`typesseq-mutable`), bytes objects, being "mutable ASCII strings" have further useful methods also found on strings. -.. XXX documented "count" differently above +.. XXX "count" is documented as a mutable sequence method differently above +.. XXX perhaps just split bytes and list methods .. method:: bytes.count(sub[, start[, end]]) @@ -1960,6 +1962,8 @@ File Objects module: os module: socket +.. XXX this is quite out of date, must be updated with "io" module + File objects are implemented using C's ``stdio`` package and can be created with the built-in :func:`file` and (more usually) :func:`open` constructors described in the :ref:`built-in-funcs` section. [#]_ File |