[Python-checkins] r71215 - in python/trunk/Doc: distutils/apiref.rst library/_winreg.rst library/shelve.rst

georg.brandl python-checkins at python.org
Sun Apr 5 12:32:26 CEST 2009


Author: georg.brandl
Date: Sun Apr  5 12:32:26 2009
New Revision: 71215

Log:
Avoid sure signs of a diseased mind.

Modified:
   python/trunk/Doc/distutils/apiref.rst
   python/trunk/Doc/library/_winreg.rst
   python/trunk/Doc/library/shelve.rst

Modified: python/trunk/Doc/distutils/apiref.rst
==============================================================================
--- python/trunk/Doc/distutils/apiref.rst	(original)
+++ python/trunk/Doc/distutils/apiref.rst	Sun Apr  5 12:32:26 2009
@@ -1050,8 +1050,8 @@
 
    .. warning::
 
-      Handles cross-device moves on Unix using :func:`copy_file`.   What about other
-      systems???
+      Handles cross-device moves on Unix using :func:`copy_file`.  What about
+      other systems?
 
 
 .. function:: write_file(filename, contents)

Modified: python/trunk/Doc/library/_winreg.rst
==============================================================================
--- python/trunk/Doc/library/_winreg.rst	(original)
+++ python/trunk/Doc/library/_winreg.rst	Sun Apr  5 12:32:26 2009
@@ -252,9 +252,10 @@
    associated.  If this parameter is ``None`` or empty, the  function retrieves the
    value set by the :func:`SetValue` method  for the key identified by *key*.
 
-   Values in the registry have name, type, and data components. This  method
+   Values in the registry have name, type, and data components. This method
    retrieves the data for a key's first value that has a NULL name. But the
-   underlying API call doesn't return the type, Lame Lame Lame, DO NOT USE THIS!!!
+   underlying API call doesn't return the type, so always use
+   :func:`QueryValueEx` if possible.
 
 
 .. function:: QueryValueEx(key, value_name)

Modified: python/trunk/Doc/library/shelve.rst
==============================================================================
--- python/trunk/Doc/library/shelve.rst	(original)
+++ python/trunk/Doc/library/shelve.rst	Sun Apr  5 12:32:26 2009
@@ -148,7 +148,7 @@
 
    # as d was opened WITHOUT writeback=True, beware:
    d['xx'] = range(4)  # this works as expected, but...
-   d['xx'].append(5)   # *this doesn't!* -- d['xx'] is STILL range(4)!!!
+   d['xx'].append(5)   # *this doesn't!* -- d['xx'] is STILL range(4)!
 
    # having opened d without writeback=True, you need to code carefully:
    temp = d['xx']      # extracts the copy


More information about the Python-checkins mailing list