diff options
Diffstat (limited to 'Doc/lib')
| -rw-r--r-- | Doc/lib/librunpy.tex | 8 | ||||
| -rw-r--r-- | Doc/lib/libxmlrpclib.tex | 3 | 
2 files changed, 7 insertions, 4 deletions
diff --git a/Doc/lib/librunpy.tex b/Doc/lib/librunpy.tex index c7a7e51971..60707caf4b 100644 --- a/Doc/lib/librunpy.tex +++ b/Doc/lib/librunpy.tex @@ -56,9 +56,11 @@ the top level namespace of the \module{__builtin__} module.  If the argument \var{alter_sys} is supplied and evaluates to  \code{True}, then \code{sys.argv[0]} is updated with the value of  \code{__file__} and \code{sys.modules[__name__]} is updated with a -temporary module object for the module being executed. Both -\code{sys.argv[0]} and \code{sys.modules[__name__]} are restored to -their original values before the function returns. +new module object for the module being executed. Note that neither +\code{sys.argv[0]} nor \code{sys.modules[__name__]} are restored to +their original values before the function returns - if client code +needs these values preserved, it must either save them explicitly or +else avoid enabling the automatic alterations to \module{sys}.  Note that this manipulation of \module{sys} is not thread-safe. Other  threads may see the partially initialised module, as well as the diff --git a/Doc/lib/libxmlrpclib.tex b/Doc/lib/libxmlrpclib.tex index 2a6f3f6232..22f29b8ae3 100644 --- a/Doc/lib/libxmlrpclib.tex +++ b/Doc/lib/libxmlrpclib.tex @@ -94,7 +94,8 @@ When passing strings, characters special to XML such as \samp{<},  \samp{>}, and \samp{\&} will be automatically escaped.  However, it's  the caller's responsibility to ensure that the string is free of  characters that aren't allowed in XML, such as the control characters -with ASCII values between 0 and 31; failing to do this will result in +with ASCII values between 0 and 31 (except, of course, tab, newline and +carriage return); failing to do this will result in  an XML-RPC request that isn't well-formed XML.  If you have to pass  arbitrary strings via XML-RPC, use the \class{Binary} wrapper class  described below.  | 
