]> granicus.if.org Git - python/commitdiff
Avoid sure signs of a diseased mind.
authorGeorg Brandl <georg@python.org>
Sun, 5 Apr 2009 10:32:26 +0000 (10:32 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 5 Apr 2009 10:32:26 +0000 (10:32 +0000)
Doc/distutils/apiref.rst
Doc/library/_winreg.rst
Doc/library/shelve.rst

index a3b464afec49bb0c0ea992abb0946ba3d427243f..4ee9fcc81c20d6c068971d9cb094fa510d3c0ec8 100644 (file)
@@ -1050,8 +1050,8 @@ This module contains some utility functions for operating on individual files.
 
    .. 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)
index e9c0fa7795610d122e901d59d6f657f8b9676aa1..7876f8573b8fd4b53542d6815aba167321fa09e5 100644 (file)
@@ -252,9 +252,10 @@ This module offers the following functions:
    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)
index b5e7eae815e97a15d289cfcbef3b238e385c95e6..1afa19ba3e0608ee9c372b55fb3ed9c9e4c4c9ca 100644 (file)
@@ -148,7 +148,7 @@ object)::
 
    # 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