From 34a60763e79546e0f84e30fbcc430632f3dbb39e Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 16 Feb 2010 01:56:21 +0100 Subject: incremented version number and updated pydoc html files --- doc/pydoc/sys.html | 105 +++++++++++++++++++++++++++-------------------------- 1 file changed, 53 insertions(+), 52 deletions(-) (limited to 'doc/pydoc/sys.html') diff --git a/doc/pydoc/sys.html b/doc/pydoc/sys.html index 84cd6ce5..65a2a515 100644 --- a/doc/pydoc/sys.html +++ b/doc/pydoc/sys.html @@ -1,6 +1,6 @@ + Python: built-in module sys - @@ -23,8 +23,11 @@ excepthook -- called to handle any uncaught e   To customize printing in an interactive session or to install a custom
  top-level exception handler, assign other functions to replace these.
 
-stdin -- standard input file object; used by input()
-stdout -- standard output file object; used by print()
+exitfunc -- if sys.exitfunc exists, this routine is called when Python exits
+  Assigning to sys.exitfunc is deprecated; use the atexit module instead.

+stdin -- standard input file object; used by raw_input() and input()
+stdout -- standard output file object; used by the print statement
stderr -- standard error object; used for error messages
  By assigning other file objects (or objects that behave like files)
  to these, it is possible to redirect all of the interpreter's I/O.
@@ -35,23 +38,26 @@ last_traceback -- traceback of last uncaught excep   These three are only available in an interactive session after a
  traceback has been printed.
 
+exc_type -- type of exception currently being handled
+exc_value -- value of exception currently being handled
+exc_traceback -- traceback of exception currently being handled
+  The function exc_info() should be used instead of these three,
+  because it is thread-safe.

Static objects:
 
-float_info -- a dict with information about the float implementation.
-int_info -- a struct sequence with information about the int implementation.
+maxint -- the largest supported integer (the smallest is -maxint-1)
maxsize -- the largest supported length of containers.
maxunicode -- the largest supported character
builtin_module_names -- tuple of module names built into this interpreter
-subversion -- subversion information of the build as tuple
version -- the version of this interpreter as a string
-version_info -- version information as a named tuple
+version_info -- version information as a tuple
hexversion -- version information encoded as a single integer
copyright -- copyright notice pertaining to this interpreter
platform -- platform identifier
executable -- pathname of this Python interpreter
prefix -- prefix used to find the Python library
exec_prefix -- prefix used to find the machine-specific Python library
-float_repr_style -- string indicating the style of repr() output for floats
__stdin__ -- the original stdin; don't touch!
__stdout__ -- the original stdout; don't touch!
__stderr__ -- the original stderr; don't touch!
@@ -60,9 +66,10 @@ __excepthook__ -- the original excepthook; don't t  
Functions:
 
-displayhook() -- print an object to the screen, and save it in builtins._
+displayhook() -- print an object to the screen, and save it in __builtin__._
excepthook() -- print an exception and its traceback to sys.stderr
exc_info() -- return thread-safe information about the current exception
+exc_clear() -- clear the exception state for the current thread
exit() -- exit the interpreter by raising SystemExit
getdlopenflags() -- returns flags to be used for dlopen() calls
getprofile() -- get the global profiling function
@@ -84,7 +91,7 @@ Functions:
-
       
__displayhook__ = displayhook(...)
displayhook(object) -> None
 
-Print an object to sys.stdout and also save it in builtins.
+Print an object to sys.stdout and also save it in __builtin__.
__excepthook__ = excepthook(...)
excepthook(exctype, value, traceback) -> None
 
Handle an exception by displaying it with a traceback on sys.stderr.
@@ -115,7 +122,13 @@ a 11-tuple where the entries in the tuple&nbs 10. Number of stack pops performed by call_function()
displayhook(...)
displayhook(object) -> None
 
-Print an object to sys.stdout and also save it in builtins.
+Print an object to sys.stdout and also save it in __builtin__. +
exc_clear(...)
exc_clear() -> None

+Clear global information on the current exception.  Subsequent calls to
+exc_info() will return (None,None,None) until another exception is raised
+in the current thread or the execution stack returns to a frame where
+another exception is being handled.
exc_info(...)
exc_info() -> (type, value, traceback)
 
Return information about the most recent exception caught by an except
@@ -137,8 +150,8 @@ Return the current default string encoding used&nb implementation.
getdlopenflags(...)
getdlopenflags() -> int
 
-Return the current value of the flags that are used for dlopen calls.
-The flag constants are defined in the ctypes and DLFCN modules.
+Return the current value of the flags that are used for dlopen()
+calls. The flag constants are defined in the dl module.
getfilesystemencoding(...)
getfilesystemencoding() -> string
 
Return the encoding used to convert Unicode filenames in
@@ -164,30 +177,17 @@ Return the size of object in bytes.
 
Return the global debug tracing function set with sys.settrace.
See the debugger chapter in the library manual. -
intern(...)
intern(string) -> string

-``Intern'' the given string.  This enters the string in the (global)
-table of interned strings whose purpose is to speed up dictionary lookups.
-Return the string itself or the previously interned string object with the
-same value.
setcheckinterval(...)
setcheckinterval(n)
 
Tell the Python interpreter to check for asynchronous events every
n instructions.  This also affects how often thread switches occur.
setdlopenflags(...)
setdlopenflags(n) -> None
 
-Set the flags used by the interpreter for dlopen calls, such as when the
-interpreter loads extension modules.  Among other things, this will enable
-a lazy resolving of symbols when importing a module, if called as
-sys.setdlopenflags(0).  To share symbols across extension modules, call as
-sys.setdlopenflags(ctypes.RTLD_GLOBAL).  Symbolic names for the flag modules
-can be either found in the ctypes module, or in the DLFCN module. If DLFCN
-is not available, it can be generated from /usr/include/dlfcn.h using the
-h2py script.
-
setfilesystemencoding(...)
setfilesystemencoding(string) -> None

-Set the encoding used to convert Unicode filenames in
-operating system filenames.
+Set the flags that will be used for dlopen() calls. Among other
+things, this will enable a lazy resolving of symbols when importing
+a module, if called as sys.setdlopenflags(0)
+To share symbols across extension modules, call as
+sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
setprofile(...)
setprofile(function)
 
Set the profiling function.  It will be called on each function call
@@ -209,36 +209,37 @@ function call.  See the debugger chapter in&n Data
       __stderr__ = <_io.TextIOWrapper name='<stderr>' encoding='UTF-8'>
-__stdin__ = <_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>
-__stdout__ = <_io.TextIOWrapper name='<stdout>' encoding='UTF-8'>
+
__stderr__ = <open file '<stderr>', mode 'w' at 0x7fdbe72451c8>
+__stdin__ = <open file '<stdin>', mode 'r' at 0x7fdbe72450b8>
+__stdout__ = <open file '<stdout>', mode 'w' at 0x7fdbe7245140>
api_version = 1013
argv = ['./make_doc.py']
-builtin_module_names = ('__main__', '_ast', '_codecs', '_functools', '_io', '_locale', '_sre', '_symtable', '_thread', '_warnings', '_weakref', 'builtins', 'errno', 'gc', 'imp', 'marshal', 'posix', 'pwd', 'signal', 'sys', ...)
+builtin_module_names = ('__builtin__', '__main__', '_ast', '_codecs', '_sre', '_symtable', '_warnings', 'errno', 'exceptions', 'gc', 'imp', 'marshal', 'posix', 'pwd', 'signal', 'sys', 'thread', 'xxsubtype', 'zipimport')
byteorder = 'little'
copyright = 'Copyright (c) 2001-2009 Python Software Foundati...ematisch Centrum, Amsterdam.\nAll Rights Reserved.'
dont_write_bytecode = False
+exc_value = TypeError('arg is a built-in module',)
exec_prefix = '/usr'
-executable = '/usr/bin/python3'
-flags = sys.flags(debug=0, division_warning=0, inspect=0...ignore_environment=0, verbose=0, bytes_warning=0)
-float_info = sys.floatinfo(max=1.7976931348623157e+308, max_e...epsilon=2.220446049250313e-16, radix=2, rounds=1)
-float_repr_style = 'short'
-hexversion = 50397680
-int_info = sys.int_info(bits_per_digit=30, sizeof_digit=4)
+executable = '/usr/bin/python'
+flags = sys.flags(debug=0, py3k_warning=0, division_warn...abcheck=0, verbose=0, unicode=0, bytes_warning=0)
+float_info = sys.floatinfo(max=1.7976931348623157e+308, max_e...psilon=2.2204460492503131e-16, radix=2, rounds=1)
+hexversion = 33948912
+maxint = 9223372036854775807
maxsize = 9223372036854775807
-maxunicode = 1114111
+maxunicode = 65535
meta_path = []
-modules = {'__future__': <module '__future__' from '/usr/lib/python3.1/__future__.py'>, '__main__': <module '__main__' from './make_doc.py'>, '_abcoll': <module '_abcoll' from '/usr/lib/python3.1/_abcoll.py'>, '_bisect': <module '_bisect' from '/usr/lib/python3.1/lib-dynload/_bisect.so'>, '_codecs': <module '_codecs' (built-in)>, '_collections': <module '_collections' from '/usr/lib/python3.1/lib-dynload/_collections.so'>, '_compat_pickle': <module '_compat_pickle' from '/usr/lib/python3.1/_compat_pickle.py'>, '_curses': <module '_curses' from '/usr/lib/python3.1/lib-dynload/_curses.so'>, '_functools': <module '_functools' (built-in)>, '_heapq': <module '_heapq' from '/usr/lib/python3.1/lib-dynload/_heapq.so'>, ...}
-path = ['/home/hut/work/ranger', '/usr/lib/python31.zip', '/usr/lib/python3.1', '/usr/lib/python3.1/plat-linux2', '/usr/lib/python3.1/lib-dynload', '/usr/lib/python3.1/site-packages', '/home/hut/.ranger']
-path_hooks = [<class 'zipimport.zipimporter'>]
-path_importer_cache = {'.': None, './make_doc.py': <imp.NullImporter object at 0x7f6a922d69e0>, '/home/hut/.ranger': None, '/home/hut/work/ranger': None, '/home/hut/work/ranger/ranger': None, '/home/hut/work/ranger/ranger/colorschemes': None, '/home/hut/work/ranger/ranger/container': None, '/home/hut/work/ranger/ranger/defaults': None, '/home/hut/work/ranger/ranger/ext': None, '/home/hut/work/ranger/ranger/fsobject': None, ...}
+modules = {'UserDict': <module 'UserDict' from '/usr/lib/python2.6/UserDict.pyc'>, '__builtin__': <module '__builtin__' (built-in)>, '__future__': <module '__future__' from '/usr/lib/python2.6/__future__.pyc'>, '__main__': <module '__main__' from './make_doc.py'>, '_abcoll': <module '_abcoll' from '/usr/lib/python2.6/_abcoll.pyc'>, '_codecs': <module '_codecs' (built-in)>, '_collections': <module '_collections' from '/usr/lib/python2.6/lib-dynload/_collections.so'>, '_curses': <module '_curses' from '/usr/lib/python2.6/lib-dynload/_curses.so'>, '_random': <module '_random' from '/usr/lib/python2.6/lib-dynload/_random.so'>, '_socket': <module '_socket' from '/usr/lib/python2.6/lib-dynload/_socket.so'>, ...}
+path = ['/home/hut/.ranger', '/home/hut/ranger', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages/gst-0.10', '/usr/lib/python2.6/site-packages/gtk-2.0', '/home/hut/.ranger']
+path_hooks = [<type 'zipimport.zipimporter'>]
+path_importer_cache = {'.': None, './make_doc.py': <imp.NullImporter object at 0x7fdbe71e8080>, '/home/hut/.ranger': None, '/home/hut/.ranger/colorschemes': None, '/home/hut/ranger': None, '/home/hut/ranger/ranger': None, '/home/hut/ranger/ranger/api': None, '/home/hut/ranger/ranger/colorschemes': None, '/home/hut/ranger/ranger/container': None, '/home/hut/ranger/ranger/defaults': None, ...}
platform = 'linux2'
prefix = '/usr'
-stderr = <_io.TextIOWrapper name='<stderr>' encoding='UTF-8'>
-stdin = <_io.TextIOWrapper name='<stdin>' encoding='UTF-8'>
-stdout = <_io.TextIOWrapper name='<stdout>' encoding='UTF-8'>
-subversion = ('CPython', 'tags/r311', '74480')
-version = '3.1.1 (r311:74480, Aug 27 2009, 04:56:37) \n[GCC 4.4.1]'
-version_info = sys.version_info(major=3, minor=1, micro=1, releaselevel='final', serial=0)
+py3kwarning = False
+stderr = <open file '<stderr>', mode 'w' at 0x7fdbe72451c8>
+stdin = <open file '<stdin>', mode 'r' at 0x7fdbe72450b8>
+stdout = <open file '<stdout>', mode 'w' at 0x7fdbe7245140>
+subversion = ('CPython', 'tags/r264', '75706')
+version = '2.6.4 (r264:75706, Oct 27 2009, 06:25:13) \n[GCC 4.4.1]'
+version_info = (2, 6, 4, 'final', 0)
warnoptions = []
\ No newline at end of file -- cgit 1.4.1-2-gfad0