Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(54)

Side by Side Diff: Doc/library/sys.rst

Issue 2414: Add gc header size to returned sizeof information SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 :mod:`sys` --- System-specific parameters and functions 2 :mod:`sys` --- System-specific parameters and functions
3 ======================================================= 3 =======================================================
4 4
5 .. module:: sys 5 .. module:: sys
6 :synopsis: Access system-specific parameters and functions. 6 :synopsis: Access system-specific parameters and functions.
7 7
8 8
9 This module provides access to some variables used or maintained by the 9 This module provides access to some variables used or maintained by the
10 interpreter and to functions that interact strongly with the interpreter. It is 10 interpreter and to functions that interact strongly with the interpreter. It is
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 Return the current value of the recursion limit, the maximum depth of the Pyt hon 406 Return the current value of the recursion limit, the maximum depth of the Pyt hon
407 interpreter stack. This limit prevents infinite recursion from causing an 407 interpreter stack. This limit prevents infinite recursion from causing an
408 overflow of the C stack and crashing Python. It can be set by 408 overflow of the C stack and crashing Python. It can be set by
409 :func:`setrecursionlimit`. 409 :func:`setrecursionlimit`.
410 410
411 411
412 .. function:: getsizeof(object) 412 .. function:: getsizeof(object)
413 413
414 Return the size of an object in bytes. The object can be any type of 414 Return the size of an object in bytes. The object can be any type of
415 object. All built-in objects will return correct results, but this 415 object. All built-in objects will return correct results, but this
416 does not have to hold true for third-party extensions as it is implementation 416 does not have to hold true for third-party extensions as it is implementation
417 specific. 417 specific.
418
419 func:`getsizeof` calls the object's __sizeof__ method and add's an additional
420 garbage collector overhead if the object is managed by the garbage collector.
418 421
419 .. versionadded:: 2.6 422 .. versionadded:: 2.6
420 423
421 424
422 .. function:: _getframe([depth]) 425 .. function:: _getframe([depth])
423 426
424 Return a frame object from the call stack. If optional integer *depth* is 427 Return a frame object from the call stack. If optional integer *depth* is
425 given, return the frame object that many calls below the top of the stack. I f 428 given, return the frame object that many calls below the top of the stack. I f
426 that is deeper than the call stack, :exc:`ValueError` is raised. The default 429 that is deeper than the call stack, :exc:`ValueError` is raised. The default
427 for *depth* is zero, returning the frame at the top of the call stack. 430 for *depth* is zero, returning the frame at the top of the call stack.
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 first three characters of :const:`version`. It is provided in the :mod:`sys` 832 first three characters of :const:`version`. It is provided in the :mod:`sys`
830 module for informational purposes; modifying this value has no effect on the 833 module for informational purposes; modifying this value has no effect on the
831 registry keys used by Python. Availability: Windows. 834 registry keys used by Python. Availability: Windows.
832 835
833 836
834 .. seealso:: 837 .. seealso::
835 838
836 Module :mod:`site` 839 Module :mod:`site`
837 This describes how to use .pth files to extend ``sys.path``. 840 This describes how to use .pth files to extend ``sys.path``.
838 841
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497