rest25/library/sys.rst => rest262/library/sys.rst
12
13
14.. data:: argv
15
16   The list of command line arguments passed to a Python script. ``argv[0]`` is the
17   script name (it is operating system dependent whether this is a full pathname or
18   not).  If the command was executed using the :option:`-c` command line option to
19   the interpreter, ``argv[0]`` is set to the string ``'-c'``.  If no script name
n20-   was passed to the Python interpreter, ``argv`` has zero length.
n20+   was passed to the Python interpreter, ``argv[0]`` is the empty string.
21+ 
22+   To loop over the standard input, or the list of files given on the
23+   command line, see the :mod:`fileinput` module.
21
22
23.. data:: byteorder
24
25   An indicator of the native byte order.  This will have the value ``'big'`` on
n26-   big-endian (most-significant byte first) platforms, and ``'little'`` on little-
n29+   big-endian (most-significant byte first) platforms, and ``'little'`` on
27-   endian (least-significant byte first) platforms.
30+   little-endian (least-significant byte first) platforms.
28
29   .. versionadded:: 2.0
30
31
32.. data:: subversion
33
34   A triple (repo, branch, version) representing the Subversion information of the
35   Python interpreter. *repo* is the name of the repository, ``'CPython'``.
50   ``modules.keys()`` only lists the imported modules.)
51
52
53.. data:: copyright
54
55   A string containing the copyright pertaining to the Python interpreter.
56
57
n61+.. function:: _clear_type_cache()
62+ 
63+   Clear the internal type cache. The type cache is used to speed up attribute
64+   and method lookups. Use the function *only* to drop unnecessary references
65+   during reference leak debugging.
66+ 
67+   This function should be used for internal and specialized purposes only.
68+ 
69+   .. versionadded:: 2.6
70+ 
71+ 
58.. function:: _current_frames()
59
60   Return a dictionary mapping each thread's identifier to the topmost stack frame
61   currently active in that thread at the time the function is called. Note that
62   functions in the :mod:`traceback` module can build the call stack given such a
63   frame.
64
65   This is most useful for debugging deadlock:  this function does not require the
78   Integer specifying the handle of the Python DLL. Availability: Windows.
79
80
81.. function:: displayhook(value)
82
83   If *value* is not ``None``, this function prints it to ``sys.stdout``, and saves
84   it in ``__builtin__._``.
85
n86-   ``sys.displayhook`` is called on the result of evaluating an expression entered
n100+   ``sys.displayhook`` is called on the result of evaluating an :term:`expression`
87-   in an interactive Python session.  The display of these values can be customized
101+   entered in an interactive Python session.  The display of these values can be
88-   by assigning another one-argument function to ``sys.displayhook``.
102+   customized by assigning another one-argument function to ``sys.displayhook``.
89
90
91.. function:: excepthook(type, value, traceback)
92
93   This function prints out a given traceback and exception to ``sys.stderr``.
94
95   When an exception is raised and uncaught, the interpreter calls
96   ``sys.excepthook`` with three arguments, the exception class, exception
232
233      The exit function is not called when the program is killed by a signal, when a
234      Python fatal internal error is detected, or when ``os._exit()`` is called.
235
236   .. deprecated:: 2.4
237      Use :mod:`atexit` instead.
238
239
n254+.. data:: flags
255+ 
256+   The struct sequence *flags* exposes the status of command line flags. The
257+   attributes are read only.
258+ 
259+   +------------------------------+------------------------------------------+
260+   | attribute                    | flag                                     |
261+   +==============================+==========================================+
262+   | :const:`debug`               | -d                                       |
263+   +------------------------------+------------------------------------------+
264+   | :const:`py3k_warning`        | -3                                       |
265+   +------------------------------+------------------------------------------+
266+   | :const:`division_warning`    | -Q                                       |
267+   +------------------------------+------------------------------------------+
268+   | :const:`division_new`        | -Qnew                                    |
269+   +------------------------------+------------------------------------------+
270+   | :const:`inspect`             | -i                                       |
271+   +------------------------------+------------------------------------------+
272+   | :const:`interactive`         | -i                                       |
273+   +------------------------------+------------------------------------------+
274+   | :const:`optimize`            | -O or -OO                                |
275+   +------------------------------+------------------------------------------+
276+   | :const:`dont_write_bytecode` | -B                                       |
277+   +------------------------------+------------------------------------------+
278+   | :const:`no_site`             | -S                                       |
279+   +------------------------------+------------------------------------------+
280+   | :const:`ignore_environment`  | -E                                       |
281+   +------------------------------+------------------------------------------+
282+   | :const:`tabcheck`            | -t or -tt                                |
283+   +------------------------------+------------------------------------------+
284+   | :const:`verbose`             | -v                                       |
285+   +------------------------------+------------------------------------------+
286+   | :const:`unicode`             | -U                                       |
287+   +------------------------------+------------------------------------------+
288+ 
289+   .. versionadded:: 2.6
290+ 
291+ 
292+.. data:: float_info
293+ 
294+   A structseq holding information about the float type. It contains low level
295+   information about the precision and internal representation. Please study
296+   your system's :file:`float.h` for more information.
297+ 
298+   +---------------------+--------------------------------------------------+
299+   | attribute           |  explanation                                     |
300+   +=====================+==================================================+
301+   | :const:`epsilon`    | Difference between 1 and the next representable  |
302+   |                     | floating point number                            |
303+   +---------------------+--------------------------------------------------+
304+   | :const:`dig`        | digits (see :file:`float.h`)                     |
305+   +---------------------+--------------------------------------------------+
306+   | :const:`mant_dig`   | mantissa digits (see :file:`float.h`)            |
307+   +---------------------+--------------------------------------------------+
308+   | :const:`max`        | maximum representable finite float               |
309+   +---------------------+--------------------------------------------------+
310+   | :const:`max_exp`    | maximum int e such that radix**(e-1) is in the   |
311+   |                     | range of finite representable floats             |
312+   +---------------------+--------------------------------------------------+
313+   | :const:`max_10_exp` | maximum int e such that 10**e is in the          |
314+   |                     | range of finite representable floats             |
315+   +---------------------+--------------------------------------------------+
316+   | :const:`min`        | Minimum positive normalizer float                |
317+   +---------------------+--------------------------------------------------+
318+   | :const:`min_exp`    | minimum int e such that radix**(e-1) is a        |
319+   |                     | normalized float                                 |
320+   +---------------------+--------------------------------------------------+
321+   | :const:`min_10_exp` | minimum int e such that 10**e is a normalized    |
322+   |                     | float                                            |
323+   +---------------------+--------------------------------------------------+
324+   | :const:`radix`      | radix of exponent                                |
325+   +---------------------+--------------------------------------------------+
326+   | :const:`rounds`     | addition rounds (see :file:`float.h`)            |
327+   +---------------------+--------------------------------------------------+
328+ 
329+   .. note::
330+ 
331+      The information in the table is simplified.
332+ 
333+   .. versionadded:: 2.6
334+ 
335+ 
240.. function:: getcheckinterval()
241
242   Return the interpreter's "check interval"; see :func:`setcheckinterval`.
243
244   .. versionadded:: 2.3
245
246
247.. function:: getdefaultencoding()
262
263
264.. function:: getfilesystemencoding()
265
266   Return the name of the encoding used to convert Unicode filenames into system
267   file names, or ``None`` if the system default encoding is used. The result value
268   depends on the operating system:
269
n270-* On Windows 9x, the encoding is "mbcs".
n366+   * On Windows 9x, the encoding is "mbcs".
271
n272-* On Mac OS X, the encoding is "utf-8".
n368+   * On Mac OS X, the encoding is "utf-8".
273
n274-* On Unix, the encoding is the user's preference according to the result of
n370+   * On Unix, the encoding is the user's preference according to the result of
275     nl_langinfo(CODESET), or :const:`None` if the ``nl_langinfo(CODESET)`` failed.
276
n277-* On Windows NT+, file names are Unicode natively, so no conversion is
n373+   * On Windows NT+, file names are Unicode natively, so no conversion is
278     performed. :func:`getfilesystemencoding` still returns ``'mbcs'``, as this is
279     the encoding that applications should use when they explicitly want to convert
280     Unicode strings to byte strings that are equivalent when used as file names.
281
282   .. versionadded:: 2.3
283
284
285.. function:: getrefcount(object)
292.. function:: getrecursionlimit()
293
294   Return the current value of the recursion limit, the maximum depth of the Python
295   interpreter stack.  This limit prevents infinite recursion from causing an
296   overflow of the C stack and crashing Python.  It can be set by
297   :func:`setrecursionlimit`.
298
299
n396+.. function:: getsizeof(object[, default])
397+ 
398+   Return the size of an object in bytes. The object can be any type of
399+   object. All built-in objects will return correct results, but this
400+   does not have to hold true for third-party extensions as it is implementation
401+   specific.
402+ 
403+   The *default* argument allows to define a value which will be returned
404+   if the object type does not provide means to retrieve the size and would
405+   cause a `TypeError`.
406+ 
407+   func:`getsizeof` calls the object's __sizeof__ method and adds an additional
408+   garbage collector overhead if the object is managed by the garbage collector.
409+ 
410+   .. versionadded:: 2.6
411+ 
412+ 
300.. function:: _getframe([depth])
301
302   Return a frame object from the call stack.  If optional integer *depth* is
303   given, return the frame object that many calls below the top of the stack.  If
304   that is deeper than the call stack, :exc:`ValueError` is raised.  The default
305   for *depth* is zero, returning the frame at the top of the call stack.
306
307   This function should be used for internal and specialized purposes only.
308
309
n423+.. function:: getprofile()
424+ 
425+   .. index::
426+      single: profile function
427+      single: profiler
428+ 
429+   Get the profiler function as set by :func:`setprofile`.
430+ 
431+   .. versionadded:: 2.6
432+ 
433+ 
434+.. function:: gettrace()
435+ 
436+   .. index::
437+      single: trace function
438+      single: debugger
439+ 
440+   Get the trace function as set by :func:`settrace`.
441+ 
442+   .. note::
443+ 
444+      The :func:`gettrace` function is intended only for implementing debuggers,
445+      profilers, coverage tools and the like. Its behavior is part of the
446+      implementation platform, rather than part of the language definition,
447+      and thus may not be available in all Python implementations.
448+ 
449+   .. versionadded:: 2.6
450+ 
451+ 
310.. function:: getwindowsversion()
311
312   Return a tuple containing five components, describing the Windows version
313   currently running.  The elements are *major*, *minor*, *build*, *platform*, and
314   *text*.  *text* contains a string while all other values are integers.
315
316   *platform* may be one of the following values:
317
n318-   +-----------------------------------------+-----------------------+
n460+   +-----------------------------------------+-------------------------+
319-   | Constant                                | Platform              |
461+   | Constant                                | Platform                |
320-   +=========================================+=======================+
462+   +=========================================+=========================+
321-   | :const:`0 (VER_PLATFORM_WIN32s)`        | Win32s on Windows 3.1 |
463+   | :const:`0 (VER_PLATFORM_WIN32s)`        | Win32s on Windows 3.1   |
322-   +-----------------------------------------+-----------------------+
464+   +-----------------------------------------+-------------------------+
323-   | :const:`1 (VER_PLATFORM_WIN32_WINDOWS)` | Windows 95/98/ME      |
465+   | :const:`1 (VER_PLATFORM_WIN32_WINDOWS)` | Windows 95/98/ME        |
324-   +-----------------------------------------+-----------------------+
466+   +-----------------------------------------+-------------------------+
325-   | :const:`2 (VER_PLATFORM_WIN32_NT)`      | Windows NT/2000/XP    |
467+   | :const:`2 (VER_PLATFORM_WIN32_NT)`      | Windows NT/2000/XP/x64  |
326-   +-----------------------------------------+-----------------------+
468+   +-----------------------------------------+-------------------------+
327-   | :const:`3 (VER_PLATFORM_WIN32_CE)`      | Windows CE            |
469+   | :const:`3 (VER_PLATFORM_WIN32_CE)`      | Windows CE              |
328-   +-----------------------------------------+-----------------------+
470+   +-----------------------------------------+-------------------------+
329
330   This function wraps the Win32 :cfunc:`GetVersionEx` function; see the Microsoft
331   documentation for more information about these fields.
332
333   Availability: Windows.
334
335   .. versionadded:: 2.3
336
360          last_value
361          last_traceback
362
363   These three variables are not always defined; they are set when an exception is
364   not handled and the interpreter prints an error message and a stack traceback.
365   Their intended use is to allow an interactive user to import a debugger module
366   and engage in post-mortem debugging without having to re-execute the command
367   that caused the error.  (Typical use is ``import pdb; pdb.pm()`` to enter the
n368-   post-mortem debugger; see chapter :ref:`debugger`, "The Python Debugger," for
n510+   post-mortem debugger; see chapter :ref:`debugger` for
369   more information.)
370
371   The meaning of the variables is the same as that of the return values from
n372-   :func:`exc_info` above.  (Since there is only one interactive thread, thread-
n514+   :func:`exc_info` above.  (Since there is only one interactive thread,
373-   safety is not a concern for these variables, unlike for ``exc_type`` etc.)
515+   thread-safety is not a concern for these variables, unlike for ``exc_type``
516+   etc.)
374
375
376.. data:: maxint
377
378   The largest positive integer supported by Python's regular integer type.  This
379   is at least 2\*\*31-1.  The largest negative integer is ``-maxint-1`` --- the
380   asymmetry results from the use of 2's complement binary arithmetic.
381
n525+.. data:: maxsize
526+ 
527+   The largest positive integer supported by the platform's Py_ssize_t type,
528+   and thus the maximum size lists, strings, dicts, and many other containers
529+   can have.
382
383.. data:: maxunicode
384
385   An integer giving the largest supported code point for a Unicode character.  The
386   value of this depends on the configuration option that specifies whether Unicode
387   characters are stored as UCS-2 or UCS-4.
n536+ 
537+ 
538+.. data:: meta_path
539+ 
540+    A list of :term:`finder` objects that have their :meth:`find_module`
541+    methods called to see if one of the objects can find the module to be
542+    imported. The :meth:`find_module` method is called at least with the
543+    absolute name of the module being imported. If the module to be imported is
544+    contained in package then the parent package's :attr:`__path__` attribute
545+    is passed in as a second argument. The method returns :keyword:`None` if
546+    the module cannot be found, else returns a :term:`loader`.
547+ 
548+    :data:`sys.meta_path` is searched before any implicit default finders or
549+    :data:`sys.path`.
550+ 
551+    See :pep:`302` for the original specification.
388
389
390.. data:: modules
391
392   .. index:: builtin: reload
393
394   This is a dictionary that maps module names to modules which have already been
395   loaded.  This can be manipulated to force reloading of modules and other tricks.
413   current directory first.  Notice that the script directory is inserted *before*
414   the entries inserted as a result of :envvar:`PYTHONPATH`.
415
416   A program is free to modify this list for its own purposes.
417
418   .. versionchanged:: 2.3
419      Unicode strings are no longer ignored.
420
n585+   .. seealso::
586+      Module :mod:`site` This describes how to use .pth files to extend
587+      :data:`sys.path`.
588+ 
589+ 
590+.. data:: path_hooks
591+ 
592+    A list of callables that take a path argument to try to create a
593+    :term:`finder` for the path. If a finder can be created, it is to be
594+    returned by the callable, else raise :exc:`ImportError`.
595+ 
596+    Originally specified in :pep:`302`.
597+ 
598+ 
599+.. data:: path_importer_cache
600+ 
601+    A dictionary acting as a cache for :term:`finder` objects. The keys are
602+    paths that have been passed to :data:`sys.path_hooks` and the values are
603+    the finders that are found. If a path is a valid file system path but no
604+    explicit finder is found on :data:`sys.path_hooks` then :keyword:`None` is
605+    stored to represent the implicit default finder should be used. If the path
606+    is not an existing path then :class:`imp.NullImporter` is set.
607+ 
608+    Originally specified in :pep:`302`.
609+ 
421
422.. data:: platform
423
n424-   This string contains a platform identifier, e.g. ``'sunos5'`` or ``'linux1'``.
n613+   This string contains a platform identifier that can be used to append
425-   This can be used to append platform-specific components to ``path``, for
614+   platform-specific components to :data:`sys.path`, for instance.
426-   instance.
615+ 
616+   For Unix systems, this is the lowercased OS name as returned by ``uname -s``
617+   with the first part of the version as returned by ``uname -r`` appended,
618+   e.g. ``'sunos5'`` or ``'linux2'``, *at the time when Python was built*.
619+   For other systems, the values are:
620+ 
621+   ================ ===========================
622+   System           :data:`platform` value
623+   ================ ===========================
624+   Windows          ``'win32'``
625+   Windows/Cygwin   ``'cygwin'``
626+   Mac OS X         ``'darwin'``
627+   OS/2             ``'os2'``
628+   OS/2 EMX         ``'os2emx'``
629+   RiscOS           ``'riscos'``
630+   AtheOS           ``'atheos'``
631+   ================ ===========================
427
428
429.. data:: prefix
430
431   A string giving the site-specific directory prefix where the platform
432   independent Python files are installed; by default, this is the string
433   ``'/usr/local'``.  This can be set at build time with the :option:`--prefix`
434   argument to the :program:`configure` script.  The main collection of Python
448   Strings specifying the primary and secondary prompt of the interpreter.  These
449   are only defined if the interpreter is in interactive mode.  Their initial
450   values in this case are ``'>>> '`` and ``'... '``.  If a non-string object is
451   assigned to either variable, its :func:`str` is re-evaluated each time the
452   interpreter prepares to read a new interactive command; this can be used to
453   implement a dynamic prompt.
454
455
n661+.. data:: py3kwarning
662+ 
663+   Bool containing the status of the Python 3.0 warning flag. It's ``True``
664+   when Python is started with the -3 option.  (This should be considered
665+   read-only; setting it to a different value doesn't have an effect on
666+   Python 3.0 warnings.)
667+ 
668+   .. versionadded:: 2.6
669+ 
670+ 
671+.. data:: dont_write_bytecode
672+ 
673+   If this is true, Python won't try to write ``.pyc`` or ``.pyo`` files on the
674+   import of source modules.  This value is initially set to ``True`` or ``False``
675+   depending on the ``-B`` command line option and the ``PYTHONDONTWRITEBYTECODE``
676+   environment variable, but you can set it yourself to control bytecode file
677+   generation.
678+ 
679+   .. versionadded:: 2.6
680+ 
681+ 
456.. function:: setcheckinterval(interval)
457
458   Set the interpreter's "check interval".  This integer value determines how often
459   the interpreter checks for periodic things such as thread switches and signal
460   handlers.  The default is ``100``, meaning the check is performed every 100
461   Python virtual instructions. Setting it to a larger value may increase
462   performance for programs using threads.  Setting it to a value ``<=`` 0 checks
463   every virtual instruction, maximizing responsiveness as well as overhead.
466.. function:: setdefaultencoding(name)
467
468   Set the current default string encoding used by the Unicode implementation.  If
469   *name* does not match any available encoding, :exc:`LookupError` is raised.
470   This function is only intended to be used by the :mod:`site` module
471   implementation and, where needed, by :mod:`sitecustomize`.  Once used by the
472   :mod:`site` module, it is removed from the :mod:`sys` module's namespace.
473
n474-   .. % Note that \refmodule{site} is not imported if
n700+   .. Note that :mod:`site` is not imported if the :option:`-S` option is passed
475-   .. % the \programopt{-S} option is passed to the interpreter, in which
701+      to the interpreter, in which case this function will remain available.
476-   .. % case this function will remain available.
477
478   .. versionadded:: 2.0
479
480
481.. function:: setdlopenflags(n)
482
483   Set the flags used by the interpreter for :cfunc:`dlopen` calls, such as when
484   the interpreter loads extension modules.  Among other things, this will enable a
523
524
525.. function:: settrace(tracefunc)
526
527   .. index::
528      single: trace function
529      single: debugger
530
n531-   Set the system's trace function, which allows you to implement a Python source
n756+   Set the system's trace function, which allows you to implement a Python
532-   code debugger in Python.  See section :ref:`debugger-hooks`, "How It Works," in
533-   the chapter on the Python debugger.  The function is thread-specific; for a
757+   source code debugger in Python.  The function is thread-specific; for a
534   debugger to support multiple threads, it must be registered using
535   :func:`settrace` for each thread being debugged.
n760+ 
761+   Trace functions should have three arguments: *frame*, *event*, and
762+   *arg*. *frame* is the current stack frame.  *event* is a string: ``'call'``,
763+   ``'line'``, ``'return'``, ``'exception'``, ``'c_call'``, ``'c_return'``, or
764+   ``'c_exception'``. *arg* depends on the event type.
765+ 
766+   The trace function is invoked (with *event* set to ``'call'``) whenever a new
767+   local scope is entered; it should return a reference to a local trace
768+   function to be used that scope, or ``None`` if the scope shouldn't be traced.
769+ 
770+   The local trace function should return a reference to itself (or to another
771+   function for further tracing in that scope), or ``None`` to turn off tracing
772+   in that scope.
773+ 
774+   The events have the following meaning:
775+ 
776+   ``'call'``
777+      A function is called (or some other code block entered).  The
778+      global trace function is called; *arg* is ``None``; the return value
779+      specifies the local trace function.
780+ 
781+   ``'line'``
782+      The interpreter is about to execute a new line of code (sometimes multiple
783+      line events on one line exist).  The local trace function is called; *arg*
784+      is ``None``; the return value specifies the new local trace function.
785+ 
786+   ``'return'``
787+      A function (or other code block) is about to return.  The local trace
788+      function is called; *arg* is the value that will be returned.  The trace
789+      function's return value is ignored.
790+ 
791+   ``'exception'``
792+      An exception has occurred.  The local trace function is called; *arg* is a
793+      tuple ``(exception, value, traceback)``; the return value specifies the
794+      new local trace function.
795+ 
796+   ``'c_call'``
797+      A C function is about to be called.  This may be an extension function or
798+      a builtin.  *arg* is the C function object.
799+ 
800+   ``'c_return'``
801+      A C function has returned. *arg* is ``None``.
802+ 
803+   ``'c_exception'``
804+      A C function has thrown an exception.  *arg* is ``None``.
805+ 
806+   Note that as an exception is propagated down the chain of callers, an
807+   ``'exception'`` event is generated at each level.
808+ 
809+   For more information on code and frame objects, refer to :ref:`types`.
536
537   .. note::
538
539      The :func:`settrace` function is intended only for implementing debuggers,
540      profilers, coverage tools and the like. Its behavior is part of the
541      implementation platform, rather than part of the language definition, and thus
542      may not be available in all Python implementations.
543
558
559   .. index::
560      builtin: input
561      builtin: raw_input
562
563   File objects corresponding to the interpreter's standard input, output and error
564   streams.  ``stdin`` is used for all interpreter input except for scripts but
565   including calls to :func:`input` and :func:`raw_input`.  ``stdout`` is used for
n566-   the output of :keyword:`print` and expression statements and for the prompts of
n840+   the output of :keyword:`print` and :term:`expression` statements and for the
567-   :func:`input` and :func:`raw_input`. The interpreter's own prompts and (almost
841+   prompts of :func:`input` and :func:`raw_input`. The interpreter's own prompts
568-   all of) its error messages go to ``stderr``.  ``stdout`` and ``stderr`` needn't
842+   and (almost all of) its error messages go to ``stderr``.  ``stdout`` and
569-   be built-in file objects: any object is acceptable as long as it has a
843+   ``stderr`` needn't be built-in file objects: any object is acceptable as long
570-   :meth:`write` method that takes a string argument.  (Changing these objects
844+   as it has a :meth:`write` method that takes a string argument.  (Changing these
571-   doesn't affect the standard I/O streams of processes executed by
845+   objects doesn't affect the standard I/O streams of processes executed by
572   :func:`os.popen`, :func:`os.system` or the :func:`exec\*` family of functions in
573   the :mod:`os` module.)
574
575
576.. data:: __stdin__
577          __stdout__
578          __stderr__
579
580   These objects contain the original values of ``stdin``, ``stderr`` and
n581-   ``stdout`` at the start of the program.  They are used during finalization, and
n855+   ``stdout`` at the start of the program.  They are used during finalization,
856+   and could be useful to print to the actual standard stream no matter if the
857+   ``sys.std*`` object has been redirected.
858+ 
582-   could be useful to restore the actual files to known working file objects in
859+   It can also be used to restore the actual files to known working file objects
583-   case they have been overwritten with a broken object.
860+   in case they have been overwritten with a broken object.  However, the
861+   preferred way to do this is to explicitly save the previous stream before
862+   replacing it, and restore the saved object.
584
585
586.. data:: tracebacklimit
587
588   When this variable is set to an integer value, it determines the maximum number
589   of levels of traceback information printed when an unhandled exception occurs.
590   The default is ``1000``.  When set to ``0`` or less, all traceback information
591   is suppressed and only the exception type and value are printed.
632
633.. data:: winver
634
635   The version number used to form registry keys on Windows platforms. This is
636   stored as string resource 1000 in the Python DLL.  The value is normally the
637   first three characters of :const:`version`.  It is provided in the :mod:`sys`
638   module for informational purposes; modifying this value has no effect on the
639   registry keys used by Python. Availability: Windows.
t640- 
641- 
642-.. seealso::
643- 
644-   Module :mod:`site`
645-      This describes how to use .pth files to extend ``sys.path``.
646- 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op