]> granicus.if.org Git - python/commitdiff
Fix two further doc build warnings.
authorGeorg Brandl <georg@python.org>
Mon, 7 Jan 2008 18:57:03 +0000 (18:57 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 7 Jan 2008 18:57:03 +0000 (18:57 +0000)
Doc/library/stdtypes.rst
Doc/using/cmdline.rst

index de0a78075e37712f6bd7ccdcadb8b7226c07ce0c..73aefadea81c1784bb444f2c5fa5ecacce872be8 100644 (file)
@@ -469,8 +469,9 @@ the iteration methods.
 One method needs to be defined for container objects to provide iteration
 support:
 
+.. XXX duplicated in reference/datamodel!
 
-.. method:: object.__iter__()
+.. method:: container.__iter__()
 
    Return an iterator object.  The object is required to support the iterator
    protocol described below.  If a container supports different types of
index 12aa0f2393c87029c9197b8b6e17e051f58bdacb..cee79d99f93c86691b75140a93bb50b4ba7586df 100644 (file)
@@ -441,10 +441,10 @@ These environment variables influence Python's behavior.
 
 
 Debug-mode variables
---------------------
+~~~~~~~~~~~~~~~~~~~~
 
 Setting these variables only has an effect in a debug build of Python, that is,
-if Python was configured with the :opt:`--with-pydebug` build option.
+if Python was configured with the :option:`--with-pydebug` build option.
 
 .. envvar:: PYTHONTHREADDEBUG