chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd4bbc4f-21e7-4d47-87dc-6c0781308351 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,860 | supabase-export-v2 | ba254299bafdb9b0 | If input is a number greater than 10 or smaller than 0.5, speed is set to 0. Speedstrings are mapped to speedvalues as follows:
* "fastest": 0
* "fast": 10
* "normal": 6
* "slow": 3
* "slowest": 1 | trusted_official_docs | CPython Docs | If input is a number greater than 10 or smaller than 0.5, speed is set to 0. Speedstrings are mapped to speedvalues as follows:
* "fastest": 0
* "fast": 10
* "normal": 6
* "slow": 3
* "slowest": 1 | If input is a number greater than 10 or smaller than 0.5, speed is set to 0. Speedstrings are mapped to speedvalues as follows:
* "fastest": 0
* "fast": 10
* "normal": 6
* "slow": 3
* "slowest": 1 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ce56511e-0f38-4ea3-906d-177c8de3f01c | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,693 | supabase-export-v2 | 9f4d91490b9cc2a8 | \ - which of course, are limited only by the imagination!
Let's draw the star shape at the top of this page. We want red lines,
filled in with yellow:: | trusted_official_docs | CPython Docs | \ - which of course, are limited only by the imagination!
Let's draw the star shape at the top of this page. We want red lines,
filled in with yellow:: | \ - which of course, are limited only by the imagination!
Let's draw the star shape at the top of this page. We want red lines,
filled in with yellow:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d0a5ccb3-5e1f-4d4d-86ff-93d4627ae6f0 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,039 | supabase-export-v2 | 602e4ba0433e4f63 | Return the current shape polygon as tuple of coordinate pairs. This can be used to define a new shape or components of a compound shape.
.. doctest::
:skipif: _tkinter is None | trusted_official_docs | CPython Docs | Return the current shape polygon as tuple of coordinate pairs. This can be used to define a new shape or components of a compound shape.
.. doctest::
:skipif: _tkinter is None | Return the current shape polygon as tuple of coordinate pairs. This can be used to define a new shape or components of a compound shape.
.. doctest::
:skipif: _tkinter is None | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d1ace291-0b67-4c3f-9457-977c931e495d | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,048 | supabase-export-v2 | 67fa5bfbc9419814 | .. function:: onrelease(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added... | trusted_official_docs | CPython Docs | .. function:: onrelease(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added... | .. function:: onrelease(fun, btn=1, add=None)
:param fun: a function with two arguments which will be called with the
coordinates of the clicked point on the canvas
:param btn: number of the mouse-button, defaults to 1 (left mouse button)
:param add: ``True`` or ``False`` -- if ``True``, a new binding will be
added... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d5c29804-ab34-43dd-a242-3163ce4f4112 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,834 | supabase-export-v2 | dd65b405ae6ee769 | .. function:: dot() dot(size) dot(color, /) dot(size, color, /) dot(size, r, g, b, /)
:param size: an integer >= 1 (if given)
:param color: a colorstring or a numeric color tuple | trusted_official_docs | CPython Docs | .. function:: dot() dot(size) dot(color, /) dot(size, color, /) dot(size, r, g, b, /)
:param size: an integer >= 1 (if given)
:param color: a colorstring or a numeric color tuple | .. function:: dot() dot(size) dot(color, /) dot(size, color, /) dot(size, r, g, b, /)
:param size: an integer >= 1 (if given)
:param color: a colorstring or a numeric color tuple | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d606cbac-c563-4946-bb05-03fec9734474 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,722 | supabase-export-v2 | 561040f3e4181169 | for i in range(100): steps = int(random() * 100) angle = int(random() * 360) t.right(angle) t.fd(steps)
Another step is also required though - as soon as the script ends, Python
will also close the turtle's window. Add:: | trusted_official_docs | CPython Docs | for i in range(100): steps = int(random() * 100) angle = int(random() * 360) t.right(angle) t.fd(steps)
Another step is also required though - as soon as the script ends, Python
will also close the turtle's window. Add:: | for i in range(100): steps = int(random() * 100) angle = int(random() * 360) t.right(angle) t.fd(steps)
Another step is also required though - as soon as the script ends, Python
will also close the turtle's window. Add:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d61fdd12-6303-4779-a73b-de4d52c819e8 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,364 | supabase-export-v2 | 8be818825e615771 | - Two input methods have been added: :func:`Screen.textinput <textinput>` and :func:`Screen.numinput <numinput>`. These pop up input dialogs and return strings and numbers respectively.
.. doctest::
:skipif: _tkinter is None
:hide: | trusted_official_docs | CPython Docs | - Two input methods have been added: :func:`Screen.textinput <textinput>` and :func:`Screen.numinput <numinput>`. These pop up input dialogs and return strings and numbers respectively.
.. doctest::
:skipif: _tkinter is None
:hide: | - Two input methods have been added: :func:`Screen.textinput <textinput>` and :func:`Screen.numinput <numinput>`. These pop up input dialogs and return strings and numbers respectively.
.. doctest::
:skipif: _tkinter is None
:hide: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d75e37ae-dbc5-419e-96a9-6a3bcf9bec26 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,858 | supabase-export-v2 | 5b0ea8a7f07dbe4f | :param speed: an integer in the range 0..10 or a speedstring (see below)
Set the turtle's speed to an integer value in the range 0..10. If no
argument is given, return current speed. | trusted_official_docs | CPython Docs | :param speed: an integer in the range 0..10 or a speedstring (see below)
Set the turtle's speed to an integer value in the range 0..10. If no
argument is given, return current speed. | :param speed: an integer in the range 0..10 or a speedstring (see below)
Set the turtle's speed to an integer value in the range 0..10. If no
argument is given, return current speed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d8914b89-a26b-4127-b7f3-5ec0621de8fc | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,829 | supabase-export-v2 | 13afe3d685a593dc | :param radius: a number :param extent: a number (or ``None``) :param steps: an integer (or ``None``)
Draw a circle with given *radius*. The center is *radius* units left of
the turtle; *extent* -- an angle -- determines which part of the circle
is drawn. If *extent* is not given, draw the entire circle. If *extent*
... | trusted_official_docs | CPython Docs | :param radius: a number :param extent: a number (or ``None``) :param steps: an integer (or ``None``)
Draw a circle with given *radius*. The center is *radius* units left of
the turtle; *extent* -- an angle -- determines which part of the circle
is drawn. If *extent* is not given, draw the entire circle. If *extent*
... | :param radius: a number :param extent: a number (or ``None``) :param steps: an integer (or ``None``)
Draw a circle with given *radius*. The center is *radius* units left of
the turtle; *extent* -- an angle -- determines which part of the circle
is drawn. If *extent* is not given, draw the entire circle. If *extent*
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dcc5b322-28e7-4032-be91-db3818fb0a96 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,360 | supabase-export-v2 | 6f9aba021c6eb78b | Changes since Python 3.0 ========================
- The :class:`Turtle` methods :func:`shearfactor`, :func:`shapetransform` and
:func:`get_shapepoly` have been added. Thus the full range of
regular linear transforms is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality:... | trusted_official_docs | CPython Docs | Changes since Python 3.0 ========================
- The :class:`Turtle` methods :func:`shearfactor`, :func:`shapetransform` and
:func:`get_shapepoly` have been added. Thus the full range of
regular linear transforms is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality:... | Changes since Python 3.0 ========================
- The :class:`Turtle` methods :func:`shearfactor`, :func:`shapetransform` and
:func:`get_shapepoly` have been added. Thus the full range of
regular linear transforms is now available for transforming turtle shapes. :func:`tiltangle` has been enhanced in functionality:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dcfb356b-9db8-4bbf-80ff-50cd503da3e8 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,114 | supabase-export-v2 | 30c3d6565553bebc | ``bgcolor()`` Return the current background color as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``bgcolor(colorstring)``
Set the background color to *colorstring*, which is a Tk color
specification string, such as ``"red"``, ``"yellow... | trusted_official_docs | CPython Docs | ``bgcolor()`` Return the current background color as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``bgcolor(colorstring)``
Set the background color to *colorstring*, which is a Tk color
specification string, such as ``"red"``, ``"yellow... | ``bgcolor()`` Return the current background color as color specification string or as a tuple (see example). May be used as input to another color/pencolor/fillcolor/bgcolor call.
``bgcolor(colorstring)``
Set the background color to *colorstring*, which is a Tk color
specification string, such as ``"red"``, ``"yellow... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
de1a79a3-32f4-409d-8d0c-070ef5a55def | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,284 | supabase-export-v2 | 7e3c49ef1537cb4c | Data structure modeling shapes. The pair ``(type_, data)`` must follow this specification:
=========== ===========
*type_* *data*
=========== ===========
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
"image" an image (in this form only used internally!)
"compound" ``None`` (a compound shape has t... | trusted_official_docs | CPython Docs | Data structure modeling shapes. The pair ``(type_, data)`` must follow this specification:
=========== ===========
*type_* *data*
=========== ===========
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
"image" an image (in this form only used internally!)
"compound" ``None`` (a compound shape has t... | Data structure modeling shapes. The pair ``(type_, data)`` must follow this specification:
=========== ===========
*type_* *data*
=========== ===========
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
"image" an image (in this form only used internally!)
"compound" ``None`` (a compound shape has t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
df765277-1a3e-4911-b266-7527ec44709a | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,261 | supabase-export-v2 | 590706eee2cf4d21 | .. doctest:: :skipif: _tkinter is None
>>> screen.setup (width=200, height=200, startx=0, starty=0)
>>> # sets window to 200x200 pixels, in upper left of screen
>>> screen.setup(width=.75, height=0.5, startx=None, starty=None)
>>> # sets window to 75% of screen by 50% of screen and centers | trusted_official_docs | CPython Docs | .. doctest:: :skipif: _tkinter is None
>>> screen.setup (width=200, height=200, startx=0, starty=0)
>>> # sets window to 200x200 pixels, in upper left of screen
>>> screen.setup(width=.75, height=0.5, startx=None, starty=None)
>>> # sets window to 75% of screen by 50% of screen and centers | .. doctest:: :skipif: _tkinter is None
>>> screen.setup (width=200, height=200, startx=0, starty=0)
>>> # sets window to 200x200 pixels, in upper left of screen
>>> screen.setup(width=.75, height=0.5, startx=None, starty=None)
>>> # sets window to 75% of screen by 50% of screen and centers | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e016c455-d178-4849-af26-48bb52d1b882 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,179 | supabase-export-v2 | 7e8ee51761284e6a | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this screen. If *fun* is ``None``,
existing bindings are removed. | trusted_official_docs | CPython Docs | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this screen. If *fun* is ``None``,
existing bindings are removed. | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this screen. If *fun* is ``None``,
existing bindings are removed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e01cb06f-e9cd-41a0-abac-0d6b3dac5797 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,358 | supabase-export-v2 | 4035ea36ba6e712c | method :func:`!Turtle.fill` has been eliminated. The behaviour of :func:`begin_fill` and :func:`end_fill` have changed slightly: now every filling process must be completed with an ``end_fill()`` call.
- A method :func:`Turtle.filling <filling>` has been added. It returns a boolean
value: ``True`` if a filling process... | trusted_official_docs | CPython Docs | method :func:`!Turtle.fill` has been eliminated. The behaviour of :func:`begin_fill` and :func:`end_fill` have changed slightly: now every filling process must be completed with an ``end_fill()`` call.
- A method :func:`Turtle.filling <filling>` has been added. It returns a boolean
value: ``True`` if a filling process... | method :func:`!Turtle.fill` has been eliminated. The behaviour of :func:`begin_fill` and :func:`end_fill` have changed slightly: now every filling process must be completed with an ``end_fill()`` call.
- A method :func:`Turtle.filling <filling>` has been added. It returns a boolean
value: ``True`` if a filling process... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e06183de-6535-49ec-add9-5d206042c87a | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,356 | supabase-export-v2 | 95fef3cc173815f0 | Changes since Python 2.6 ========================
- The methods :func:`Turtle.tracer <tracer>`, :func:`Turtle.window_width <window_width>` and
:func:`Turtle.window_height <window_height>` have been eliminated. Methods with these names and functionality are now available only
as methods of :class:`Screen`. The functio... | trusted_official_docs | CPython Docs | Changes since Python 2.6 ========================
- The methods :func:`Turtle.tracer <tracer>`, :func:`Turtle.window_width <window_width>` and
:func:`Turtle.window_height <window_height>` have been eliminated. Methods with these names and functionality are now available only
as methods of :class:`Screen`. The functio... | Changes since Python 2.6 ========================
- The methods :func:`Turtle.tracer <tracer>`, :func:`Turtle.window_width <window_width>` and
:func:`Turtle.window_height <window_height>` have been eliminated. Methods with these names and functionality are now available only
as methods of :class:`Screen`. The functio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e8021502-1db2-454f-8e61-5fd88e7cd4ef | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,937 | supabase-export-v2 | de3397c86eef1dd1 | = (0.2, 0.8, 0.55) >>> turtle.pencolor(tup) >>> turtle.pencolor() (0.2, 0.8, 0.5490196078431373) >>> colormode(255) >>> turtle.pencolor() (51.0, 204.0, 140.0) >>> turtle.pencolor('#32c18f') >>> turtle.pencolor() (50.0, 193.0, 143.0)
.. function:: fillcolor()
fillcolor(color, /)
fillcolor(r, g, b, /) | trusted_official_docs | CPython Docs | = (0.2, 0.8, 0.55) >>> turtle.pencolor(tup) >>> turtle.pencolor() (0.2, 0.8, 0.5490196078431373) >>> colormode(255) >>> turtle.pencolor() (51.0, 204.0, 140.0) >>> turtle.pencolor('#32c18f') >>> turtle.pencolor() (50.0, 193.0, 143.0)
.. function:: fillcolor()
fillcolor(color, /)
fillcolor(r, g, b, /) | = (0.2, 0.8, 0.55) >>> turtle.pencolor(tup) >>> turtle.pencolor() (0.2, 0.8, 0.5490196078431373) >>> colormode(255) >>> turtle.pencolor() (51.0, 204.0, 140.0) >>> turtle.pencolor('#32c18f') >>> turtle.pencolor() (50.0, 193.0, 143.0)
.. function:: fillcolor()
fillcolor(color, /)
fillcolor(r, g, b, /) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea0f5c0f-8034-48d5-ad3f-5826d030c583 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,104 | supabase-export-v2 | 1f9436b918434c71 | .. note::
The :class:`Shape` class is used internally by the :func:`register_shape`
method in different ways. The application programmer has to deal with the
Shape class *only* when using compound shapes like shown above! | trusted_official_docs | CPython Docs | .. note::
The :class:`Shape` class is used internally by the :func:`register_shape`
method in different ways. The application programmer has to deal with the
Shape class *only* when using compound shapes like shown above! | .. note::
The :class:`Shape` class is used internally by the :func:`register_shape`
method in different ways. The application programmer has to deal with the
Shape class *only* when using compound shapes like shown above! | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea277984-662f-4995-9f9a-287c63748a96 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,728 | supabase-export-v2 | 13c2970a9d16a6c0 | it's more usual and much more powerful to use the object-oriented approach to turtle graphics. For example, this allows multiple turtles on screen at once.
In this approach, the various turtle commands are methods of objects (mostly of
``Turtle`` objects). You *can* use the object-oriented approach in the shell,
but it... | trusted_official_docs | CPython Docs | it's more usual and much more powerful to use the object-oriented approach to turtle graphics. For example, this allows multiple turtles on screen at once.
In this approach, the various turtle commands are methods of objects (mostly of
``Turtle`` objects). You *can* use the object-oriented approach in the shell,
but it... | it's more usual and much more powerful to use the object-oriented approach to turtle graphics. For example, this allows multiple turtles on screen at once.
In this approach, the various turtle commands are methods of objects (mostly of
``Turtle`` objects). You *can* use the object-oriented approach in the shell,
but it... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea3cf07d-ad6e-48ff-848b-d701e9b6df14 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,033 | supabase-export-v2 | ae46070f642a067a | :param t11: a number (optional) :param t12: a number (optional) :param t21: a number (optional) :param t12: a number (optional)
Set or return the current transformation matrix of the turtle shape. | trusted_official_docs | CPython Docs | :param t11: a number (optional) :param t12: a number (optional) :param t21: a number (optional) :param t12: a number (optional)
Set or return the current transformation matrix of the turtle shape. | :param t11: a number (optional) :param t12: a number (optional) :param t21: a number (optional) :param t12: a number (optional)
Set or return the current transformation matrix of the turtle shape. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eaa4ab6a-e4d9-42d5-8926-96e95434691e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,297 | supabase-export-v2 | 972c6bd77e2184d2 | A :class:`Turtle` instance will automatically create a :class:`Screen` instance if one is not already present.
``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
create a drawing surface - a *canvas* will need to be provided or created for
it. The *canvas* can be a :class:`!tkinter.Canvas`, :... | trusted_official_docs | CPython Docs | A :class:`Turtle` instance will automatically create a :class:`Screen` instance if one is not already present.
``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
create a drawing surface - a *canvas* will need to be provided or created for
it. The *canvas* can be a :class:`!tkinter.Canvas`, :... | A :class:`Turtle` instance will automatically create a :class:`Screen` instance if one is not already present.
``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
create a drawing surface - a *canvas* will need to be provided or created for
it. The *canvas* can be a :class:`!tkinter.Canvas`, :... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ebb4e2a2-3ba3-407f-b75a-8a4b5cd0efb1 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,128 | supabase-export-v2 | a8155ca876d77c4f | .. function:: reset() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``resetscreen``. The global function ``reset`` is another one
derived from the Turtle method ``reset``. | trusted_official_docs | CPython Docs | .. function:: reset() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``resetscreen``. The global function ``reset`` is another one
derived from the Turtle method ``reset``. | .. function:: reset() :noindex:
.. note::
This TurtleScreen method is available as a global function only under the
name ``resetscreen``. The global function ``reset`` is another one
derived from the Turtle method ``reset``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed281bf3-c605-4ad1-be97-f33168c846c1 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,336 | supabase-export-v2 | b9590a05b6c480e8 | .. code-block:: ini
width = 0.5
height = 0.75
leftright = None
topbottom = None
canvwidth = 400
canvheight = 300
mode = standard
colormode = 1.0
delay = 10
undobuffersize = 1000
shape = classic
pencolor = black
fillcolor = black
resizemode = noresize
visible = True
language = english
exampleturtle = tur... | trusted_official_docs | CPython Docs | .. code-block:: ini
width = 0.5
height = 0.75
leftright = None
topbottom = None
canvwidth = 400
canvheight = 300
mode = standard
colormode = 1.0
delay = 10
undobuffersize = 1000
shape = classic
pencolor = black
fillcolor = black
resizemode = noresize
visible = True
language = english
exampleturtle = tur... | .. code-block:: ini
width = 0.5
height = 0.75
leftright = None
topbottom = None
canvwidth = 400
canvheight = 300
mode = standard
colormode = 1.0
delay = 10
undobuffersize = 1000
shape = classic
pencolor = black
fillcolor = black
resizemode = noresize
visible = True
language = english
exampleturtle = tur... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed68d7dd-fec1-4ad1-b4da-695e95475e46 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,987 | supabase-export-v2 | 29b1c36d8c6701ac | and with the given font. If *move* is true, the pen is moved to the bottom-right corner of the text. By default, *move* is ``False``.
>>> turtle.write("Home = ", True, align="center")
>>> turtle.write((0,0), True) | trusted_official_docs | CPython Docs | and with the given font. If *move* is true, the pen is moved to the bottom-right corner of the text. By default, *move* is ``False``.
>>> turtle.write("Home = ", True, align="center")
>>> turtle.write((0,0), True) | and with the given font. If *move* is true, the pen is moved to the bottom-right corner of the text. By default, *move* is ``False``.
>>> turtle.write("Home = ", True, align="center")
>>> turtle.write((0,0), True) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ed9d4055-5bf7-4426-9ccf-6c8a7383b03f | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,934 | supabase-export-v2 | aa191d083532d7a1 | b)`` Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode.
If turtleshape is a polygon, the outline of that polygon is drawn with the
newly set pencolor. | trusted_official_docs | CPython Docs | b)`` Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode.
If turtleshape is a polygon, the outline of that polygon is drawn with the
newly set pencolor. | b)`` Set pencolor to the RGB color represented by *r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the range 0..colormode.
If turtleshape is a polygon, the outline of that polygon is drawn with the
newly set pencolor. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eff3dc1a-41cd-421e-a85e-37c669fe1354 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,158 | supabase-export-v2 | fa6d3d2a75b70008 | :param n: nonnegative integer :param delay: nonnegative integer
Turn turtle animation on/off and set delay for update drawings. If
*n* is given, only each n-th regular screen update is really
performed. (Can be used to accelerate the drawing of complex
graphics.) When called without arguments, returns the currently
... | trusted_official_docs | CPython Docs | :param n: nonnegative integer :param delay: nonnegative integer
Turn turtle animation on/off and set delay for update drawings. If
*n* is given, only each n-th regular screen update is really
performed. (Can be used to accelerate the drawing of complex
graphics.) When called without arguments, returns the currently
... | :param n: nonnegative integer :param delay: nonnegative integer
Turn turtle animation on/off and set delay for update drawings. If
*n* is given, only each n-th regular screen update is really
performed. (Can be used to accelerate the drawing of complex
graphics.) When called without arguments, returns the currently
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0294c98-1d28-483b-9908-79a66be540ec | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,917 | supabase-export-v2 | a24c4f1983e455ad | pen: a dictionary with some or all of the below listed keys :param pendict: one or more keyword-arguments with the below listed keys as keywords
Return or set the pen's attributes in a "pen-dictionary" with the following
key/value pairs: | trusted_official_docs | CPython Docs | pen: a dictionary with some or all of the below listed keys :param pendict: one or more keyword-arguments with the below listed keys as keywords
Return or set the pen's attributes in a "pen-dictionary" with the following
key/value pairs: | pen: a dictionary with some or all of the below listed keys :param pendict: one or more keyword-arguments with the below listed keys as keywords
Return or set the pen's attributes in a "pen-dictionary" with the following
key/value pairs: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0554397-7235-4db6-a7cb-4271571c9975 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,663 | supabase-export-v2 | f9c47616965cb2e6 | .. image:: turtle-star.* :align: center
In Python, turtle graphics provides a representation of a physical "turtle"
(a little robot with a pen) that draws on a sheet of paper on the floor. | trusted_official_docs | CPython Docs | .. image:: turtle-star.* :align: center
In Python, turtle graphics provides a representation of a physical "turtle"
(a little robot with a pen) that draws on a sheet of paper on the floor. | .. image:: turtle-star.* :align: center
In Python, turtle graphics provides a representation of a physical "turtle"
(a little robot with a pen) that draws on a sheet of paper on the floor. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f38a3e0a-2184-4612-a55f-f35f4294a4b5 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,115 | supabase-export-v2 | 334ba98a846438a6 | ``bgcolor(colorstring)`` Set the background color to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``bgcolor((r, g, b))``
Set the background color to the RGB color represented by the tuple of
*r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the rang... | trusted_official_docs | CPython Docs | ``bgcolor(colorstring)`` Set the background color to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``bgcolor((r, g, b))``
Set the background color to the RGB color represented by the tuple of
*r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the rang... | ``bgcolor(colorstring)`` Set the background color to *colorstring*, which is a Tk color specification string, such as ``"red"``, ``"yellow"``, or ``"#33cc8c"``.
``bgcolor((r, g, b))``
Set the background color to the RGB color represented by the tuple of
*r*, *g*, and *b*. Each of *r*, *g*, and *b* must be in the rang... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f40cb199-8330-4244-8b11-412613ddf185 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,134 | supabase-export-v2 | 1689cd725cbfb0e3 | parts of the canvas, use the scrollbars. With this method, one can make visible those parts of a drawing which were outside the canvas before.
>>> screen.screensize()
(400, 300)
>>> screen.screensize(2000,1500)
>>> screen.screensize()
(2000, 1500) | trusted_official_docs | CPython Docs | parts of the canvas, use the scrollbars. With this method, one can make visible those parts of a drawing which were outside the canvas before.
>>> screen.screensize()
(400, 300)
>>> screen.screensize(2000,1500)
>>> screen.screensize()
(2000, 1500) | parts of the canvas, use the scrollbars. With this method, one can make visible those parts of a drawing which were outside the canvas before.
>>> screen.screensize()
(400, 300)
>>> screen.screensize(2000,1500)
>>> screen.screensize()
(2000, 1500) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f424385b-e24d-4f5e-b2fd-e7764f16d7a6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,044 | supabase-export-v2 | 318deb2ed5915379 | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``,
existing bindings are removed. Example for the anonymous turtle, i.e. the
procedural way: | trusted_official_docs | CPython Docs | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``,
existing bindings are removed. Example for the anonymous turtle, i.e. the
procedural way: | 1 (left mouse button) :param add: ``True`` or ``False`` -- if ``True``, a new binding will be added, otherwise it will replace a former binding
Bind *fun* to mouse-click events on this turtle. If *fun* is ``None``,
existing bindings are removed. Example for the anonymous turtle, i.e. the
procedural way: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f4b34756-0968-46e9-bc40-c270dd3a51c4 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,132 | supabase-export-v2 | 0dcc0cde79971ddb | .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
:param canvwidth: positive integer, new width of canvas in pixels
:param canvheight: positive integer, new height of canvas in pixels
:param bg: colorstring or color-tuple, new background color | trusted_official_docs | CPython Docs | .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
:param canvwidth: positive integer, new width of canvas in pixels
:param canvheight: positive integer, new height of canvas in pixels
:param bg: colorstring or color-tuple, new background color | .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
:param canvwidth: positive integer, new width of canvas in pixels
:param canvheight: positive integer, new height of canvas in pixels
:param bg: colorstring or color-tuple, new background color | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f5328c93-c4a1-45a1-a69e-c8f65dfc9195 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,332 | supabase-export-v2 | b6c80471e2dfe0da | How to configure Screen and Turtles -----------------------------------
The built-in default configuration mimics the appearance and behaviour of the
old turtle module in order to retain best possible compatibility with it. | trusted_official_docs | CPython Docs | How to configure Screen and Turtles -----------------------------------
The built-in default configuration mimics the appearance and behaviour of the
old turtle module in order to retain best possible compatibility with it. | How to configure Screen and Turtles -----------------------------------
The built-in default configuration mimics the appearance and behaviour of the
old turtle module in order to retain best possible compatibility with it. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6103218-79bf-4d3d-a8b2-6d07b3ad3bc6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,014 | supabase-export-v2 | 9f3a45084b4c4dc2 | :param stretch_wid: positive number :param stretch_len: positive number :param outline: positive number
Return or set the pen's attributes x/y-stretchfactors and/or outline. Set
resizemode to "user". If and only if resizemode is set to "user", the turtle
will be displayed stretched according to its stretchfactors: *s... | trusted_official_docs | CPython Docs | :param stretch_wid: positive number :param stretch_len: positive number :param outline: positive number
Return or set the pen's attributes x/y-stretchfactors and/or outline. Set
resizemode to "user". If and only if resizemode is set to "user", the turtle
will be displayed stretched according to its stretchfactors: *s... | :param stretch_wid: positive number :param stretch_len: positive number :param outline: positive number
Return or set the pen's attributes x/y-stretchfactors and/or outline. Set
resizemode to "user". If and only if resizemode is set to "user", the turtle
will be displayed stretched according to its stretchfactors: *s... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f76b2aa1-9b33-4fe3-b449-0c9bf22e7cbf | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,681 | supabase-export-v2 | 83719e8ff844bad3 | Try changing the color - for example, ``color('blue')`` - and width of the line - for example, ``width(3)`` - and then drawing again.
You can also move the turtle around without drawing, by lifting up the pen:
``up()`` before moving. To start drawing again, use ``down()``. | trusted_official_docs | CPython Docs | Try changing the color - for example, ``color('blue')`` - and width of the line - for example, ``width(3)`` - and then drawing again.
You can also move the turtle around without drawing, by lifting up the pen:
``up()`` before moving. To start drawing again, use ``down()``. | Try changing the color - for example, ``color('blue')`` - and width of the line - for example, ``width(3)`` - and then drawing again.
You can also move the turtle around without drawing, by lifting up the pen:
``up()`` before moving. To start drawing again, use ``down()``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f9bfc0b5-80be-422d-ad26-ba7e7ae1f0a7 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,308 | supabase-export-v2 | 0c0db00c81ffbf7d | bgcolor(self, *args) unbound turtle.Screen method Set or return backgroundcolor of the TurtleScreen.
Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers. | trusted_official_docs | CPython Docs | bgcolor(self, *args) unbound turtle.Screen method Set or return backgroundcolor of the TurtleScreen.
Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers. | bgcolor(self, *args) unbound turtle.Screen method Set or return backgroundcolor of the TurtleScreen.
Arguments (if given): a color string or three numbers
in the range 0..colormode or a 3-tuple of such numbers. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa0f984f-d982-46f9-8e9a-abcee6b6b562 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,818 | supabase-export-v2 | 707ba839b4aa2e35 | Set the orientation of the turtle to *to_angle*. Here are some common directions in degrees:
=================== ====================
standard mode logo mode
=================== ====================
0 - east 0 - north
90 - north 90 - east
180 - west 180 - south
270 - south 270 - west
=================== ========... | trusted_official_docs | CPython Docs | Set the orientation of the turtle to *to_angle*. Here are some common directions in degrees:
=================== ====================
standard mode logo mode
=================== ====================
0 - east 0 - north
90 - north 90 - east
180 - west 180 - south
270 - south 270 - west
=================== ========... | Set the orientation of the turtle to *to_angle*. Here are some common directions in degrees:
=================== ====================
standard mode logo mode
=================== ====================
0 - east 0 - north
90 - north 90 - east
180 - west 180 - south
270 - south 270 - west
=================== ========... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa649a2b-425d-4244-ab86-7ac03bd60bfc | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,019 | supabase-export-v2 | d94e0c36c3c4a561 | :param shear: number (optional)
Set or return the current shearfactor. Shear the turtleshape according to
the given shearfactor shear, which is the tangent of the shear angle. Do *not* change the turtle's heading (direction of movement). If shear is not given: return the current shearfactor, i. e. the
tangent of the ... | trusted_official_docs | CPython Docs | :param shear: number (optional)
Set or return the current shearfactor. Shear the turtleshape according to
the given shearfactor shear, which is the tangent of the shear angle. Do *not* change the turtle's heading (direction of movement). If shear is not given: return the current shearfactor, i. e. the
tangent of the ... | :param shear: number (optional)
Set or return the current shearfactor. Shear the turtleshape according to
the given shearfactor shear, which is the tangent of the shear angle. Do *not* change the turtle's heading (direction of movement). If shear is not given: return the current shearfactor, i. e. the
tangent of the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fa7cf6eb-4512-47f5-8d20-f611b87ae2a6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 10,985 | supabase-export-v2 | 5c642402b83efadd | .. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal"))
:param arg: object to be written to the TurtleScreen
:param move: True/False
:param align: one of the strings "left", "center" or right"
:param font: a triple (fontname, fontsize, fonttype) | trusted_official_docs | CPython Docs | .. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal"))
:param arg: object to be written to the TurtleScreen
:param move: True/False
:param align: one of the strings "left", "center" or right"
:param font: a triple (fontname, fontsize, fonttype) | .. function:: write(arg, move=False, align="left", font=("Arial", 8, "normal"))
:param arg: object to be written to the TurtleScreen
:param move: True/False
:param align: one of the strings "left", "center" or right"
:param font: a triple (fontname, fontsize, fonttype) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb08866c-6bea-417c-8aad-26ca0b17422e | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,329 | supabase-export-v2 | e864d61ecd582d24 | want to use :mod:`!turtle` with online help in your native language, you have to translate the docstrings and save the resulting file as e.g. :file:`turtle_docstringdict_german.py`.
If you have an appropriate entry in your :file:`turtle.cfg` file this dictionary
will be read in at import time and will replace the origi... | trusted_official_docs | CPython Docs | want to use :mod:`!turtle` with online help in your native language, you have to translate the docstrings and save the resulting file as e.g. :file:`turtle_docstringdict_german.py`.
If you have an appropriate entry in your :file:`turtle.cfg` file this dictionary
will be read in at import time and will replace the origi... | want to use :mod:`!turtle` with online help in your native language, you have to translate the docstrings and save the resulting file as e.g. :file:`turtle_docstringdict_german.py`.
If you have an appropriate entry in your :file:`turtle.cfg` file this dictionary
will be read in at import time and will replace the origi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fbefcf28-36d6-459b-a04a-4825fb3d25a5 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,002 | supabase-export-v2 | ea233c687aca03bf | :param name: a string which is a valid shapename
Set turtle shape to shape with given *name* or, if name is not given, return
name of current shape. Shape with *name* must exist in the TurtleScreen's
shape dictionary. Initially there are the following polygon shapes: "arrow",
"turtle", "circle", "square", "triangle"... | trusted_official_docs | CPython Docs | :param name: a string which is a valid shapename
Set turtle shape to shape with given *name* or, if name is not given, return
name of current shape. Shape with *name* must exist in the TurtleScreen's
shape dictionary. Initially there are the following polygon shapes: "arrow",
"turtle", "circle", "square", "triangle"... | :param name: a string which is a valid shapename
Set turtle shape to shape with given *name* or, if name is not given, return
name of current shape. Shape with *name* must exist in the TurtleScreen's
shape dictionary. Initially there are the following polygon shapes: "arrow",
"turtle", "circle", "square", "triangle"... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fdd38302-9394-40b7-b3a6-4ee4f946d6e0 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,362 | supabase-export-v2 | a0cd831ffda1e4f5 | been added as a complement to :func:`onkey`. As the latter binds actions to the key release event, an alias: :func:`onkeyrelease` was also added for it.
- The method :func:`Screen.mainloop <mainloop>` has been added,
so there is no longer a need to use the standalone :func:`mainloop` function
when working with :class... | trusted_official_docs | CPython Docs | been added as a complement to :func:`onkey`. As the latter binds actions to the key release event, an alias: :func:`onkeyrelease` was also added for it.
- The method :func:`Screen.mainloop <mainloop>` has been added,
so there is no longer a need to use the standalone :func:`mainloop` function
when working with :class... | been added as a complement to :func:`onkey`. As the latter binds actions to the key release event, an alias: :func:`onkeyrelease` was also added for it.
- The method :func:`Screen.mainloop <mainloop>` has been added,
so there is no longer a need to use the standalone :func:`mainloop` function
when working with :class... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ff9b5b10-6733-4a3b-bf40-95cd267b0d91 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,174 | supabase-export-v2 | 2c0412f3517a0733 | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-press event of key if key is given,
or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen
must have focus. (See method :func... | trusted_official_docs | CPython Docs | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-press event of key if key is given,
or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen
must have focus. (See method :func... | :param fun: a function with no arguments or ``None`` :param key: a string: key (e.g. "a") or key-symbol (e.g. "space")
Bind *fun* to key-press event of key if key is given,
or to any key-press-event if no key is given. Remark: in order to be able to register key-events, TurtleScreen
must have focus. (See method :func... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ffb0eeef-b14b-449e-9105-5fdaa1e86cb6 | CPython Docs | file://datasets/cpython/Doc/library/turtle.rst | unknown | 47e0c155-07cf-49ab-a88c-3efc4cddf397 | 11,121 | supabase-export-v2 | daec793152cfba5b | :param picname: a string, name of an image file (PNG, GIF, PGM, and PPM) or ``"nopic"``, or ``None``
Set background image or return name of current backgroundimage. If *picname*
is a filename, set the corresponding image as background. If *picname* is
``"nopic"``, delete background image, if present. If *picname* is ... | trusted_official_docs | CPython Docs | :param picname: a string, name of an image file (PNG, GIF, PGM, and PPM) or ``"nopic"``, or ``None``
Set background image or return name of current backgroundimage. If *picname*
is a filename, set the corresponding image as background. If *picname* is
``"nopic"``, delete background image, if present. If *picname* is ... | :param picname: a string, name of an image file (PNG, GIF, PGM, and PPM) or ``"nopic"``, or ``None``
Set background image or return name of current backgroundimage. If *picname*
is a filename, set the corresponding image as background. If *picname* is
``"nopic"``, delete background image, if present. If *picname* is ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0e53f24f-2952-403e-969e-d1c5e242ceee | CPython Docs | file://datasets/cpython/Doc/library/spwd.rst | unknown | f0bee673-1c61-4e7a-8231-5389822e57ae | 11,371 | supabase-export-v2 | 22239887492c4bd8 | A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!spwd` module was
`Python 3.12 <https://docs.python.org/3.12/library/spwd.html>`_. | trusted_official_docs | CPython Docs | A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!spwd` module was
`Python 3.12 <https://docs.python.org/3.12/library/spwd.html>`_. | A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!spwd` module was
`Python 3.12 <https://docs.python.org/3.12/library/spwd.html>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
dcfd7722-6f70-4c14-84d6-06041795ff00 | CPython Docs | file://datasets/cpython/Doc/library/spwd.rst | unknown | f0bee673-1c61-4e7a-8231-5389822e57ae | 11,370 | supabase-export-v2 | 79ea24b68cf9de7a | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team. | trusted_official_docs | CPython Docs | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team. | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
A possible replacement is the third-party library :pypi:`python-pam`. This library is not supported or maintained by the Python core team. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13028586-3f96-4072-880d-2b61f867e72e | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,429 | supabase-export-v2 | 41083dc5ba582a9b | Subclassing Repr Objects ------------------------
The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
:class:`Repr` to add support for additional built-in object types or to modify
the handling of types already supported. This example shows how special support
for file objects could be added: | trusted_official_docs | CPython Docs | Subclassing Repr Objects ------------------------
The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
:class:`Repr` to add support for additional built-in object types or to modify
the handling of types already supported. This example shows how special support
for file objects could be added: | Subclassing Repr Objects ------------------------
The use of dynamic dispatching by :meth:`Repr.repr1` allows subclasses of
:class:`Repr` to add support for additional built-in object types or to modify
the handling of types already supported. This example shows how special support
for file objects could be added: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18b58798-0303-44f2-a52f-84e89ffb96ca | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,415 | supabase-export-v2 | 54d65badc95ee33c | 6: []}}, 'ham'] >>> import reprlib >>> aRepr = reprlib.Repr() >>> print(aRepr.repr(example)) [1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
If :attr:`~Repr.indent` is set to a string, each recursion level
is placed on its own line, indented by that string: | trusted_official_docs | CPython Docs | 6: []}}, 'ham'] >>> import reprlib >>> aRepr = reprlib.Repr() >>> print(aRepr.repr(example)) [1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
If :attr:`~Repr.indent` is set to a string, each recursion level
is placed on its own line, indented by that string: | 6: []}}, 'ham'] >>> import reprlib >>> aRepr = reprlib.Repr() >>> print(aRepr.repr(example)) [1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
If :attr:`~Repr.indent` is set to a string, each recursion level
is placed on its own line, indented by that string: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2557425b-e40f-487d-a0e0-894a91d2eca1 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,377 | supabase-export-v2 | cfb31d058ccf9177 | with limits on the size of the resulting strings. This is used in the Python debugger and may be useful in other contexts as well.
This module provides a class, an instance, and a function: | trusted_official_docs | CPython Docs | with limits on the size of the resulting strings. This is used in the Python debugger and may be useful in other contexts as well.
This module provides a class, an instance, and a function: | with limits on the size of the resulting strings. This is used in the Python debugger and may be useful in other contexts as well.
This module provides a class, an instance, and a function: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2d243cdd-e786-4c23-bdfd-98d38fa67ca6 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,390 | supabase-export-v2 | 59324549910c2ecd | method of ``aRepr``. It returns a string similar to that returned by the built-in function of the same name, but with limits on most sizes.
In addition to size-limiting tools, the module also provides a decorator for
detecting recursive calls to :meth:`~object.__repr__` and substituting a
placeholder string instead. | trusted_official_docs | CPython Docs | method of ``aRepr``. It returns a string similar to that returned by the built-in function of the same name, but with limits on most sizes.
In addition to size-limiting tools, the module also provides a decorator for
detecting recursive calls to :meth:`~object.__repr__` and substituting a
placeholder string instead. | method of ``aRepr``. It returns a string similar to that returned by the built-in function of the same name, but with limits on most sizes.
In addition to size-limiting tools, the module also provides a decorator for
detecting recursive calls to :meth:`~object.__repr__` and substituting a
placeholder string instead. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
31df0c97-9dd3-46bf-92ac-3e9c2a7b08f2 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,424 | supabase-export-v2 | 5e54e47ae9897292 | .. method:: Repr.repr1(obj, level)
Recursive implementation used by :meth:`.repr`. This uses the type of *obj* to
determine which formatting method to call, passing it *obj* and *level*. The
type-specific methods should call :meth:`repr1` to perform recursive formatting,
with ``level - 1`` for the value of *level* i... | trusted_official_docs | CPython Docs | .. method:: Repr.repr1(obj, level)
Recursive implementation used by :meth:`.repr`. This uses the type of *obj* to
determine which formatting method to call, passing it *obj* and *level*. The
type-specific methods should call :meth:`repr1` to perform recursive formatting,
with ``level - 1`` for the value of *level* i... | .. method:: Repr.repr1(obj, level)
Recursive implementation used by :meth:`.repr`. This uses the type of *obj* to
determine which formatting method to call, passing it *obj* and *level*. The
type-specific methods should call :meth:`repr1` to perform recursive formatting,
with ``level - 1`` for the value of *level* i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3b409f8b-af41-4463-8f80-17a82bfafcaa | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,376 | supabase-export-v2 | 3dc945242e29dd4b | --------------
The :mod:`!reprlib` module provides a means for producing object representations
with limits on the size of the resulting strings. This is used in the Python
debugger and may be useful in other contexts as well. | trusted_official_docs | CPython Docs | --------------
The :mod:`!reprlib` module provides a means for producing object representations
with limits on the size of the resulting strings. This is used in the Python
debugger and may be useful in other contexts as well. | --------------
The :mod:`!reprlib` module provides a means for producing object representations
with limits on the size of the resulting strings. This is used in the Python
debugger and may be useful in other contexts as well. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4bd997a2-e6e7-415c-9e89-3297ed1d056f | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,387 | supabase-export-v2 | 90c2907e8b7009c3 | .. data:: aRepr
This is an instance of :class:`Repr` which is used to provide the
:func:`.repr` function described below. Changing the attributes of this
object will affect the size limits used by :func:`.repr` and the Python
debugger. | trusted_official_docs | CPython Docs | .. data:: aRepr
This is an instance of :class:`Repr` which is used to provide the
:func:`.repr` function described below. Changing the attributes of this
object will affect the size limits used by :func:`.repr` and the Python
debugger. | .. data:: aRepr
This is an instance of :class:`Repr` which is used to provide the
:func:`.repr` function described below. Changing the attributes of this
object will affect the size limits used by :func:`.repr` and the Python
debugger. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
650c4548-fd78-4056-b9e0-34b5dd341ac7 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,395 | supabase-export-v2 | 25a99a69a5a5572d | .. doctest::
>>> from reprlib import recursive_repr
>>> class MyList(list):
... @recursive_repr()
... def __repr__(self):
... return '<' + '|'.join(map(repr, self)) + '>'
... >>> m = MyList('abc')
>>> m.append(m)
>>> m.append('x')
>>> print(m)
<'a'|'b'|'c'|...|'x'> | trusted_official_docs | CPython Docs | .. doctest::
>>> from reprlib import recursive_repr
>>> class MyList(list):
... @recursive_repr()
... def __repr__(self):
... return '<' + '|'.join(map(repr, self)) + '>'
... >>> m = MyList('abc')
>>> m.append(m)
>>> m.append('x')
>>> print(m)
<'a'|'b'|'c'|...|'x'> | .. doctest::
>>> from reprlib import recursive_repr
>>> class MyList(list):
... @recursive_repr()
... def __repr__(self):
... return '<' + '|'.join(map(repr, self)) + '>'
... >>> m = MyList('abc')
>>> m.append(m)
>>> m.append('x')
>>> print(m)
<'a'|'b'|'c'|...|'x'> | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
73d869df-d371-440c-9e1b-e7dc3bcdf212 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,393 | supabase-export-v2 | 97ba20fc445e5fcf | .. decorator:: recursive_repr(fillvalue="...")
Decorator for :meth:`~object.__repr__` methods to detect recursive calls within the
same thread. If a recursive call is made, the *fillvalue* is returned,
otherwise, the usual :meth:`!__repr__` call is made. For example: | trusted_official_docs | CPython Docs | .. decorator:: recursive_repr(fillvalue="...")
Decorator for :meth:`~object.__repr__` methods to detect recursive calls within the
same thread. If a recursive call is made, the *fillvalue* is returned,
otherwise, the usual :meth:`!__repr__` call is made. For example: | .. decorator:: recursive_repr(fillvalue="...")
Decorator for :meth:`~object.__repr__` methods to detect recursive calls within the
same thread. If a recursive call is made, the *fillvalue* is returned,
otherwise, the usual :meth:`!__repr__` call is made. For example: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85f778ff-452b-4735-ad8c-5581d8d7e5e4 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,410 | supabase-export-v2 | 022b32fc7c6021a0 | .. attribute:: Repr.maxother
This limit is used to control the size of object types for which no specific
formatting method is available on the :class:`Repr` object. It is applied in a
similar manner as :attr:`maxstring`. The default is ``20``. | trusted_official_docs | CPython Docs | .. attribute:: Repr.maxother
This limit is used to control the size of object types for which no specific
formatting method is available on the :class:`Repr` object. It is applied in a
similar manner as :attr:`maxstring`. The default is ``20``. | .. attribute:: Repr.maxother
This limit is used to control the size of object types for which no specific
formatting method is available on the :class:`Repr` object. It is applied in a
similar manner as :attr:`maxstring`. The default is ``20``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
990e6486-096b-47b7-82a0-a5ecddf25716 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,408 | supabase-export-v2 | b530fcade583f4b8 | .. attribute:: Repr.maxstring
Limit on the number of characters in the representation of the string. Note
that the "normal" representation of the string is used as the character source:
if escape sequences are needed in the representation, these may be mangled when
the representation is shortened. The default is ``3... | trusted_official_docs | CPython Docs | .. attribute:: Repr.maxstring
Limit on the number of characters in the representation of the string. Note
that the "normal" representation of the string is used as the character source:
if escape sequences are needed in the representation, these may be mangled when
the representation is shortened. The default is ``3... | .. attribute:: Repr.maxstring
Limit on the number of characters in the representation of the string. Note
that the "normal" representation of the string is used as the character source:
if escape sequences are needed in the representation, these may be mangled when
the representation is shortened. The default is ``3... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a65aa0ac-cf39-46a7-bc06-9acfafe24fdc | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,397 | supabase-export-v2 | 04871bee775b6fdf | Repr Objects ------------
:class:`Repr` instances provide several attributes which can be used to provide
size limits for the representations of different object types, and methods
which format specific object types. | trusted_official_docs | CPython Docs | Repr Objects ------------
:class:`Repr` instances provide several attributes which can be used to provide
size limits for the representations of different object types, and methods
which format specific object types. | Repr Objects ------------
:class:`Repr` instances provide several attributes which can be used to provide
size limits for the representations of different object types, and methods
which format specific object types. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be1177d1-c441-4449-91df-f4ff5559541b | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,404 | supabase-export-v2 | 4386712176c74f5b | .. attribute:: Repr.maxdict Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray
Limits on the number of entries represented for the named object type. The
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
the others. | trusted_official_docs | CPython Docs | .. attribute:: Repr.maxdict Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray
Limits on the number of entries represented for the named object type. The
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
the others. | .. attribute:: Repr.maxdict Repr.maxlist Repr.maxtuple Repr.maxset Repr.maxfrozenset Repr.maxdeque Repr.maxarray
Limits on the number of entries represented for the named object type. The
default is ``4`` for :attr:`maxdict`, ``5`` for :attr:`maxarray`, and ``6`` for
the others. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cdb561ab-5501-4d11-8abd-569d8171bdf1 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,379 | supabase-export-v2 | 9faa7196f6b2c5de | .. class:: Repr(*, maxlevel=6, maxtuple=6, maxlist=6, maxarray=5, maxdict=4, \ maxset=6, maxfrozenset=6, maxdeque=6, maxstring=30, maxlong=40, \ maxother=30, fillvalue="...", indent=None)
Class which provides formatting services useful in implementing functions
similar to the built-in :func:`repr`; size limits for dif... | trusted_official_docs | CPython Docs | .. class:: Repr(*, maxlevel=6, maxtuple=6, maxlist=6, maxarray=5, maxdict=4, \ maxset=6, maxfrozenset=6, maxdeque=6, maxstring=30, maxlong=40, \ maxother=30, fillvalue="...", indent=None)
Class which provides formatting services useful in implementing functions
similar to the built-in :func:`repr`; size limits for dif... | .. class:: Repr(*, maxlevel=6, maxtuple=6, maxlist=6, maxarray=5, maxdict=4, \ maxset=6, maxfrozenset=6, maxdeque=6, maxstring=30, maxlong=40, \ maxother=30, fillvalue="...", indent=None)
Class which provides formatting services useful in implementing functions
similar to the built-in :func:`repr`; size limits for dif... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d125e3fc-74fc-4a0f-a505-3dc2a3a3d463 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,414 | supabase-export-v2 | ff959372c94e6542 | .. doctest:: indent
>>> example = [
... 1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
>>> import reprlib
>>> aRepr = reprlib.Repr()
>>> print(aRepr.repr(example))
[1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham'] | trusted_official_docs | CPython Docs | .. doctest:: indent
>>> example = [
... 1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
>>> import reprlib
>>> aRepr = reprlib.Repr()
>>> print(aRepr.repr(example))
[1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham'] | .. doctest:: indent
>>> example = [
... 1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham']
>>> import reprlib
>>> aRepr = reprlib.Repr()
>>> print(aRepr.repr(example))
[1, 'spam', {'a': 2, 'b': 'spam eggs', 'c': {3: 4.5, 6: []}}, 'ham'] | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f055f33f-5aa2-4d9e-9194-aa404ac23e01 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,426 | supabase-export-v2 | c1445e0f7c8947b5 | .. method:: Repr.repr_TYPE(obj, level) :noindex:
Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, **TYPE** is replaced by
``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is
handled by :meth:`repr1`. Type-specific methods whic... | trusted_official_docs | CPython Docs | .. method:: Repr.repr_TYPE(obj, level) :noindex:
Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, **TYPE** is replaced by
``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is
handled by :meth:`repr1`. Type-specific methods whic... | .. method:: Repr.repr_TYPE(obj, level) :noindex:
Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, **TYPE** is replaced by
``'_'.join(type(obj).__name__.split())``. Dispatch to these methods is
handled by :meth:`repr1`. Type-specific methods whic... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f73be223-072b-47f3-b84e-43a4f77f731a | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,389 | supabase-export-v2 | d84235d2bdc96eb0 | .. function:: repr(obj)
This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
similar to that returned by the built-in function of the same name, but with
limits on most sizes. | trusted_official_docs | CPython Docs | .. function:: repr(obj)
This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
similar to that returned by the built-in function of the same name, but with
limits on most sizes. | .. function:: repr(obj)
This is the :meth:`~Repr.repr` method of ``aRepr``. It returns a string
similar to that returned by the built-in function of the same name, but with
limits on most sizes. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f89185db-fff0-4d41-8b43-8866eff16919 | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,418 | supabase-export-v2 | b5dde7b882ca68a0 | >>> aRepr.indent = '-->' >>> print(aRepr.repr(example)) [ -->1, -->'spam', -->{ -->-->'a': 2, -->-->'b': 'spam eggs', -->-->'c': { -->-->-->3: 4.5, -->-->-->6: [], -->-->}, -->}, -->'ham', ]
Setting :attr:`~Repr.indent` to a positive integer value behaves as if it
was set to a string with that number of spaces: | trusted_official_docs | CPython Docs | >>> aRepr.indent = '-->' >>> print(aRepr.repr(example)) [ -->1, -->'spam', -->{ -->-->'a': 2, -->-->'b': 'spam eggs', -->-->'c': { -->-->-->3: 4.5, -->-->-->6: [], -->-->}, -->}, -->'ham', ]
Setting :attr:`~Repr.indent` to a positive integer value behaves as if it
was set to a string with that number of spaces: | >>> aRepr.indent = '-->' >>> print(aRepr.repr(example)) [ -->1, -->'spam', -->{ -->-->'a': 2, -->-->'b': 'spam eggs', -->-->'c': { -->-->-->3: 4.5, -->-->-->6: [], -->-->}, -->}, -->'ham', ]
Setting :attr:`~Repr.indent` to a positive integer value behaves as if it
was set to a string with that number of spaces: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fb29dc72-caa9-4e54-9ac4-544f87ad580a | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,425 | supabase-export-v2 | 315e6e7ef9682bae | and *level*. The type-specific methods should call :meth:`repr1` to perform recursive formatting, with ``level - 1`` for the value of *level* in the recursive call.
.. method:: Repr.repr_TYPE(obj, level)
:noindex: | trusted_official_docs | CPython Docs | and *level*. The type-specific methods should call :meth:`repr1` to perform recursive formatting, with ``level - 1`` for the value of *level* in the recursive call.
.. method:: Repr.repr_TYPE(obj, level)
:noindex: | and *level*. The type-specific methods should call :meth:`repr1` to perform recursive formatting, with ``level - 1`` for the value of *level* in the recursive call.
.. method:: Repr.repr_TYPE(obj, level)
:noindex: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
feaad8f0-b74e-40d0-9088-eafe25706bef | CPython Docs | file://datasets/cpython/Doc/library/reprlib.rst | unknown | 11b1d1d0-4496-467e-b7b9-18968f52d504 | 11,380 | supabase-export-v2 | fdb96f7aa10dd8e7 | implementing functions similar to the built-in :func:`repr`; size limits for different object types are added to avoid the generation of representations which are excessively long.
The keyword arguments of the constructor can be used as a shortcut to set the
attributes of the :class:`Repr` instance. Which means that t... | trusted_official_docs | CPython Docs | implementing functions similar to the built-in :func:`repr`; size limits for different object types are added to avoid the generation of representations which are excessively long.
The keyword arguments of the constructor can be used as a shortcut to set the
attributes of the :class:`Repr` instance. Which means that t... | implementing functions similar to the built-in :func:`repr`; size limits for different object types are added to avoid the generation of representations which are excessively long.
The keyword arguments of the constructor can be used as a shortcut to set the
attributes of the :class:`Repr` instance. Which means that t... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0432e8ed-5a6b-4f43-8585-d33975408ad4 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,484 | supabase-export-v2 | 298afd250d9e35c9 | Remove leading path information from all filenames.
This method modifies the object in place and returns it for method
chaining. After stripping, the statistics are considered to be in
random order. | trusted_official_docs | CPython Docs | Remove leading path information from all filenames.
This method modifies the object in place and returns it for method
chaining. After stripping, the statistics are considered to be in
random order. | Remove leading path information from all filenames.
This method modifies the object in place and returns it for method
chaining. After stripping, the statistics are considered to be in
random order. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
05b9e926-c6fc-420a-82b7-253f89123c51 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,481 | supabase-export-v2 | fefbf6215b6a300f | The *stream* argument specifies where output from :meth:`print_stats` and related methods is written. It defaults to :data:`sys.stdout`.
The profile data format is specific to the Python version that created it. There is no compatibility guarantee between Python versions or between
different profilers. | trusted_official_docs | CPython Docs | The *stream* argument specifies where output from :meth:`print_stats` and related methods is written. It defaults to :data:`sys.stdout`.
The profile data format is specific to the Python version that created it. There is no compatibility guarantee between Python versions or between
different profilers. | The *stream* argument specifies where output from :meth:`print_stats` and related methods is written. It defaults to :data:`sys.stdout`.
The profile data format is specific to the Python version that created it. There is no compatibility guarantee between Python versions or between
different profilers. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0a82b15c-ce9f-43f3-9aa9-2b4250704423 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,441 | supabase-export-v2 | 02fe288b928e1212 | Reading and displaying profile data ===================================
The :class:`Stats` class is the primary interface for working with profile
data. It can read statistics from files or directly from a
:class:`~profiling.tracing.Profile` object. | trusted_official_docs | CPython Docs | Reading and displaying profile data ===================================
The :class:`Stats` class is the primary interface for working with profile
data. It can read statistics from files or directly from a
:class:`~profiling.tracing.Profile` object. | Reading and displaying profile data ===================================
The :class:`Stats` class is the primary interface for working with profile
data. It can read statistics from files or directly from a
:class:`~profiling.tracing.Profile` object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0b6e9699-3fb8-4de3-b7d8-fc710d1e88f4 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,511 | supabase-export-v2 | b033cf2e05c5881b | to that many entries - A float between 0.0 and 1.0: selects that fraction of entries - A string: matches function names via regular expression
Restrictions are applied sequentially. For example:: | trusted_official_docs | CPython Docs | to that many entries - A float between 0.0 and 1.0: selects that fraction of entries - A string: matches function names via regular expression
Restrictions are applied sequentially. For example:: | to that many entries - A float between 0.0 and 1.0: selects that fraction of entries - A string: matches function names via regular expression
Restrictions are applied sequentially. For example:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2386c524-871d-4c7c-befd-cfa2f46d0bec | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,442 | supabase-export-v2 | 7325640c9a4aa628 | The :class:`Stats` class is the primary interface for working with profile data. It can read statistics from files or directly from a :class:`~profiling.tracing.Profile` object.
Load statistics from a file and print a basic report:: | trusted_official_docs | CPython Docs | The :class:`Stats` class is the primary interface for working with profile data. It can read statistics from files or directly from a :class:`~profiling.tracing.Profile` object.
Load statistics from a file and print a basic report:: | The :class:`Stats` class is the primary interface for working with profile data. It can read statistics from files or directly from a :class:`~profiling.tracing.Profile` object.
Load statistics from a file and print a basic report:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
289890bb-99e9-4491-a892-29cb379a6563 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,498 | supabase-export-v2 | 96dcf0e07f8eca97 | Valid sort keys:
+------------------+------------------------+----------------------+
| String | Enum | Meaning |
+==================+========================+======================+
| ``'calls'`` | ``SortKey.CALLS`` | call count |
+------------------+------------------------+----------------------+
| ``'cumulativ... | trusted_official_docs | CPython Docs | Valid sort keys:
+------------------+------------------------+----------------------+
| String | Enum | Meaning |
+==================+========================+======================+
| ``'calls'`` | ``SortKey.CALLS`` | call count |
+------------------+------------------------+----------------------+
| ``'cumulativ... | Valid sort keys:
+------------------+------------------------+----------------------+
| String | Enum | Meaning |
+==================+========================+======================+
| ``'calls'`` | ``SortKey.CALLS`` | call count |
+------------------+------------------------+----------------------+
| ``'cumulativ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2b62e5c2-c077-4884-a621-265eb702b960 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,510 | supabase-export-v2 | 5fb140e34f508e4b | Restrictions filter the output. Each restriction is either:
- An integer: limits output to that many entries
- A float between 0.0 and 1.0: selects that fraction of entries
- A string: matches function names via regular expression | trusted_official_docs | CPython Docs | Restrictions filter the output. Each restriction is either:
- An integer: limits output to that many entries
- A float between 0.0 and 1.0: selects that fraction of entries
- A string: matches function names via regular expression | Restrictions filter the output. Each restriction is either:
- An integer: limits output to that many entries
- A float between 0.0 and 1.0: selects that fraction of entries
- A string: matches function names via regular expression | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
32a8a95d-e5ea-4e91-83fe-0dcbad36a5dd | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,509 | supabase-export-v2 | bd2af36dfb7cf9fb | The output includes a header line summarizing the data, followed by a table of function statistics sorted according to the last :meth:`sort_stats` call.
Restrictions filter the output. Each restriction is either: | trusted_official_docs | CPython Docs | The output includes a header line summarizing the data, followed by a table of function statistics sorted according to the last :meth:`sort_stats` call.
Restrictions filter the output. Each restriction is either: | The output includes a header line summarizing the data, followed by a table of function statistics sorted according to the last :meth:`sort_stats` call.
Restrictions filter the output. Each restriction is either: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
38f73143-63d3-4047-836a-36554770cd79 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,505 | supabase-export-v2 | ea3dd7ad5f234962 | Reverse the current sort order.
By default, the sort direction is chosen appropriately for the sort key
(descending for time-based keys, ascending for name-based keys). This
method inverts that choice. | trusted_official_docs | CPython Docs | Reverse the current sort order.
By default, the sort direction is chosen appropriately for the sort key
(descending for time-based keys, ascending for name-based keys). This
method inverts that choice. | Reverse the current sort order.
By default, the sort direction is chosen appropriately for the sort key
(descending for time-based keys, ascending for name-based keys). This
method inverts that choice. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
39d7e091-1f4d-4cdb-a7d2-ca3ea3fbda6e | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,495 | supabase-export-v2 | 7cd04ea3f0e21401 | Each key can be a string or a :class:`SortKey` enum member. When multiple keys are provided, later keys break ties in earlier keys.
Using :class:`SortKey` enum members is preferred over strings as it
provides better error checking:: | trusted_official_docs | CPython Docs | Each key can be a string or a :class:`SortKey` enum member. When multiple keys are provided, later keys break ties in earlier keys.
Using :class:`SortKey` enum members is preferred over strings as it
provides better error checking:: | Each key can be a string or a :class:`SortKey` enum member. When multiple keys are provided, later keys break ties in earlier keys.
Using :class:`SortKey` enum members is preferred over strings as it
provides better error checking:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
404af77f-78cb-4391-ae49-83bcb32effa6 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,494 | supabase-export-v2 | d2696bdfddeed7a3 | Sort the statistics according to the specified criteria.
Each key can be a string or a :class:`SortKey` enum member. When
multiple keys are provided, later keys break ties in earlier keys. | trusted_official_docs | CPython Docs | Sort the statistics according to the specified criteria.
Each key can be a string or a :class:`SortKey` enum member. When
multiple keys are provided, later keys break ties in earlier keys. | Sort the statistics according to the specified criteria.
Each key can be a string or a :class:`SortKey` enum member. When
multiple keys are provided, later keys break ties in earlier keys. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4d4e8f79-d4df-49a3-8cf3-a365217e707f | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,517 | supabase-export-v2 | 61838f95feec059f | For each function in the filtered results, shows which functions called it and how often.
With :mod:`profiling.tracing` (or ``cProfile``), each caller line
shows three numbers: the number of calls from that caller, and the
total and cumulative times for those specific calls. | trusted_official_docs | CPython Docs | For each function in the filtered results, shows which functions called it and how often.
With :mod:`profiling.tracing` (or ``cProfile``), each caller line
shows three numbers: the number of calls from that caller, and the
total and cumulative times for those specific calls. | For each function in the filtered results, shows which functions called it and how often.
With :mod:`profiling.tracing` (or ``cProfile``), each caller line
shows three numbers: the number of calls from that caller, and the
total and cumulative times for those specific calls. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
53ca4418-1dbc-4f2f-9346-e50465a37b81 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,508 | supabase-export-v2 | d465383a370ea936 | Print a report of the profiling statistics.
The output includes a header line summarizing the data, followed by a
table of function statistics sorted according to the last
:meth:`sort_stats` call. | trusted_official_docs | CPython Docs | Print a report of the profiling statistics.
The output includes a header line summarizing the data, followed by a
table of function statistics sorted according to the last
:meth:`sort_stats` call. | Print a report of the profiling statistics.
The output includes a header line summarizing the data, followed by a
table of function statistics sorted according to the last
:meth:`sort_stats` call. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6fcbdaca-be3d-45a1-af57-eb4cfd6cd20d | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,458 | supabase-export-v2 | 0ae7a0f802ce9bb9 | Filtering output ----------------
The :meth:`~Stats.print_stats` method accepts restrictions that filter
which functions are displayed. Restrictions can be integers (limiting the
count), floats between 0 and 1 (selecting a percentage), or strings (matching
function names via regular expression). | trusted_official_docs | CPython Docs | Filtering output ----------------
The :meth:`~Stats.print_stats` method accepts restrictions that filter
which functions are displayed. Restrictions can be integers (limiting the
count), floats between 0 and 1 (selecting a percentage), or strings (matching
function names via regular expression). | Filtering output ----------------
The :meth:`~Stats.print_stats` method accepts restrictions that filter
which functions are displayed. Restrictions can be integers (limiting the
count), floats between 0 and 1 (selecting a percentage), or strings (matching
function names via regular expression). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
87f58b33-c367-486f-9ea6-7e17e3d432e4 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,518 | supabase-export-v2 | ddfdd312e4a40bc6 | (or ``cProfile``), each caller line shows three numbers: the number of calls from that caller, and the total and cumulative times for those specific calls.
Accepts the same restriction arguments as :meth:`print_stats`. | trusted_official_docs | CPython Docs | (or ``cProfile``), each caller line shows three numbers: the number of calls from that caller, and the total and cumulative times for those specific calls.
Accepts the same restriction arguments as :meth:`print_stats`. | (or ``cProfile``), each caller line shows three numbers: the number of calls from that caller, and the total and cumulative times for those specific calls.
Accepts the same restriction arguments as :meth:`print_stats`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8eefb749-5ee4-4423-9c4e-c782a12223cd | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,525 | supabase-export-v2 | af71642fa3fc57d4 | Return a ``StatsProfile`` object containing the statistics.
The returned object provides programmatic access to the profile data,
with function names mapped to ``FunctionProfile`` objects
containing timing and call count information. | trusted_official_docs | CPython Docs | Return a ``StatsProfile`` object containing the statistics.
The returned object provides programmatic access to the profile data,
with function names mapped to ``FunctionProfile`` objects
containing timing and call count information. | Return a ``StatsProfile`` object containing the statistics.
The returned object provides programmatic access to the profile data,
with function names mapped to ``FunctionProfile`` objects
containing timing and call count information. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8f880092-7f42-41b8-ba07-23e3690f3c72 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,485 | supabase-export-v2 | ff9f4640f3ea4c50 | This method modifies the object in place and returns it for method chaining. After stripping, the statistics are considered to be in random order.
If stripping causes two functions to become indistinguishable (same
filename, line number, and function name), their statistics are
combined into a single entry. | trusted_official_docs | CPython Docs | This method modifies the object in place and returns it for method chaining. After stripping, the statistics are considered to be in random order.
If stripping causes two functions to become indistinguishable (same
filename, line number, and function name), their statistics are
combined into a single entry. | This method modifies the object in place and returns it for method chaining. After stripping, the statistics are considered to be in random order.
If stripping causes two functions to become indistinguishable (same
filename, line number, and function name), their statistics are
combined into a single entry. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
92a3caff-5ae1-493a-a063-ee0f3eb6a461 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,501 | supabase-export-v2 | afd4bc2026118d26 | difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` is equivalent to ``sort_stats(SortKey.NAME, SortKey.FILENAME, SortKey.LINE)``.
For backward compatibility, the numeric arguments ``-1``, ``0``, ``1``,
a... | trusted_official_docs | CPython Docs | difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` is equivalent to ``sort_stats(SortKey.NAME, SortKey.FILENAME, SortKey.LINE)``.
For backward compatibility, the numeric arguments ``-1``, ``0``, ``1``,
a... | difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` is equivalent to ``sort_stats(SortKey.NAME, SortKey.FILENAME, SortKey.LINE)``.
For backward compatibility, the numeric arguments ``-1``, ``0``, ``1``,
a... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
acf8b4e6-9c3a-4e54-b09c-4bc0bd39bc3d | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,475 | supabase-export-v2 | 26fda371aa56f8a9 | # Or add files incrementally p = pstats.Stats('run1.prof') p.add('run2.prof') p.add('run3.prof')
When files are combined, statistics for identical functions (same file, line,
and name) are accumulated, giving an aggregate view across all profiling runs. | trusted_official_docs | CPython Docs | # Or add files incrementally p = pstats.Stats('run1.prof') p.add('run2.prof') p.add('run3.prof')
When files are combined, statistics for identical functions (same file, line,
and name) are accumulated, giving an aggregate view across all profiling runs. | # Or add files incrementally p = pstats.Stats('run1.prof') p.add('run2.prof') p.add('run3.prof')
When files are combined, statistics for identical functions (same file, line,
and name) are accumulated, giving an aggregate view across all profiling runs. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b5babff5-4fca-4e5d-af69-b1f642af13fe | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,440 | supabase-export-v2 | b3419368ffeb6654 | provides tools for reading, manipulating, and displaying profiling statistics generated by Python's profilers. It reads output from both :mod:`profiling.tracing` (deterministic profiler) and :mod:`profiling.sampling` (statistical profiler).
Reading and displaying profile data
=================================== | trusted_official_docs | CPython Docs | provides tools for reading, manipulating, and displaying profiling statistics generated by Python's profilers. It reads output from both :mod:`profiling.tracing` (deterministic profiler) and :mod:`profiling.sampling` (statistical profiler).
Reading and displaying profile data
=================================== | provides tools for reading, manipulating, and displaying profiling statistics generated by Python's profilers. It reads output from both :mod:`profiling.tracing` (deterministic profiler) and :mod:`profiling.sampling` (statistical profiler).
Reading and displaying profile data
=================================== | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b650865e-3e67-47b4-802c-aa3d34d6509c | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,452 | supabase-export-v2 | 2b56fd25c5daadcf | The :meth:`~Stats.strip_dirs` method removes directory paths from filenames, making the output more compact. The :meth:`~Stats.sort_stats` method accepts various keys to control the sort order.
Different sort keys highlight different aspects of performance:: | trusted_official_docs | CPython Docs | The :meth:`~Stats.strip_dirs` method removes directory paths from filenames, making the output more compact. The :meth:`~Stats.sort_stats` method accepts various keys to control the sort order.
Different sort keys highlight different aspects of performance:: | The :meth:`~Stats.strip_dirs` method removes directory paths from filenames, making the output more compact. The :meth:`~Stats.sort_stats` method accepts various keys to control the sort order.
Different sort keys highlight different aspects of performance:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
badc63d4-0d36-46c4-a0ae-537f90a80689 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,459 | supabase-export-v2 | 342e91342babbbd9 | are displayed. Restrictions can be integers (limiting the count), floats between 0 and 1 (selecting a percentage), or strings (matching function names via regular expression).
Print only the top 10%:: | trusted_official_docs | CPython Docs | are displayed. Restrictions can be integers (limiting the count), floats between 0 and 1 (selecting a percentage), or strings (matching function names via regular expression).
Print only the top 10%:: | are displayed. Restrictions can be integers (limiting the count), floats between 0 and 1 (selecting a percentage), or strings (matching function names via regular expression).
Print only the top 10%:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c975e927-b07b-4f0c-b594-918d7d05cc13 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,491 | supabase-export-v2 | 3b6c4116dbc70a7f | Save the current statistics to a file.
The file is created if it does not exist and overwritten if it does. The saved data can be loaded by creating a new :class:`Stats` object. | trusted_official_docs | CPython Docs | Save the current statistics to a file.
The file is created if it does not exist and overwritten if it does. The saved data can be loaded by creating a new :class:`Stats` object. | Save the current statistics to a file.
The file is created if it does not exist and overwritten if it does. The saved data can be loaded by creating a new :class:`Stats` object. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cd15454d-6207-404b-932e-d5fecb4c2d69 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,499 | supabase-export-v2 | a45ea4d3e72aecc7 | | ``SortKey.STDNAME`` | standard name | +------------------+------------------------+----------------------+ | ``'time'`` | ``SortKey.TIME`` | internal time | +------------------+------------------------+----------------------+ | ``'tottime'`` | N/A | internal time | +------------------+------------------------+-------... | trusted_official_docs | CPython Docs | | ``SortKey.STDNAME`` | standard name | +------------------+------------------------+----------------------+ | ``'time'`` | ``SortKey.TIME`` | internal time | +------------------+------------------------+----------------------+ | ``'tottime'`` | N/A | internal time | +------------------+------------------------+-------... | | ``SortKey.STDNAME`` | standard name | +------------------+------------------------+----------------------+ | ``'time'`` | ``SortKey.TIME`` | internal time | +------------------+------------------------+----------------------+ | ``'tottime'`` | N/A | internal time | +------------------+------------------------+-------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea6e34ac-e14f-4bf0-9bd5-e262abd5c0d9 | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,480 | supabase-export-v2 | 32a17c28a535818e | The arguments can be filenames (strings or path-like objects) or :class:`~profiling.tracing.Profile` objects. If multiple sources are provided, their statistics are combined.
The *stream* argument specifies where output from :meth:`print_stats` and
related methods is written. It defaults to :data:`sys.stdout`. | trusted_official_docs | CPython Docs | The arguments can be filenames (strings or path-like objects) or :class:`~profiling.tracing.Profile` objects. If multiple sources are provided, their statistics are combined.
The *stream* argument specifies where output from :meth:`print_stats` and
related methods is written. It defaults to :data:`sys.stdout`. | The arguments can be filenames (strings or path-like objects) or :class:`~profiling.tracing.Profile` objects. If multiple sources are provided, their statistics are combined.
The *stream* argument specifies where output from :meth:`print_stats` and
related methods is written. It defaults to :data:`sys.stdout`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eebbb9f9-8b3a-49d8-8ed9-fe223ee2914e | CPython Docs | file://datasets/cpython/Doc/library/pstats.rst | unknown | 81cd442a-a72e-49a5-abac-76ee06a19d89 | 11,500 | supabase-export-v2 | ade10fa1bb89ab31 | All sorts on statistics are in descending order (most time consuming first), while name, file, and line number sorts are ascending (alphabetical).
The difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that
NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` i... | trusted_official_docs | CPython Docs | All sorts on statistics are in descending order (most time consuming first), while name, file, and line number sorts are ascending (alphabetical).
The difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that
NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` i... | All sorts on statistics are in descending order (most time consuming first), while name, file, and line number sorts are ascending (alphabetical).
The difference between ``SortKey.NFL`` and ``SortKey.STDNAME`` is that
NFL sorts line numbers numerically while STDNAME sorts them as strings. ``sort_stats(SortKey.NFL)`` i... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a4a79ad5-26b6-4f62-a3dd-7eba0f648019 | CPython Docs | file://datasets/cpython/Doc/library/persistence.rst | unknown | 033872f3-399a-4539-8dbb-ede0b0c9349e | 11,547 | supabase-export-v2 | c659a06d1e5b3ee3 | **************** Data Persistence ****************
The modules described in this chapter support storing Python data in a
persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
many Python data types into a stream of bytes and then recreate the objects from
the bytes. The various DBM-related mod... | trusted_official_docs | CPython Docs | **************** Data Persistence ****************
The modules described in this chapter support storing Python data in a
persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
many Python data types into a stream of bytes and then recreate the objects from
the bytes. The various DBM-related mod... | **************** Data Persistence ****************
The modules described in this chapter support storing Python data in a
persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
many Python data types into a stream of bytes and then recreate the objects from
the bytes. The various DBM-related mod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c9b699dd-d746-47bc-b0ce-cbe7aa788b40 | CPython Docs | file://datasets/cpython/Doc/library/persistence.rst | unknown | 033872f3-399a-4539-8dbb-ede0b0c9349e | 11,548 | supabase-export-v2 | 5a22f1197014324e | the objects from the bytes. The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings.
The list of modules described in this chapter is: | trusted_official_docs | CPython Docs | the objects from the bytes. The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings.
The list of modules described in this chapter is: | the objects from the bytes. The various DBM-related modules support a family of hash-based file formats that store a mapping of strings to other strings.
The list of modules described in this chapter is: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3b204648-84a5-4627-9c04-fedf1dfba22e | CPython Docs | file://datasets/cpython/Doc/library/telnetlib.rst | unknown | 556bf9e3-d69f-4eea-a614-0b0dab3e8a3c | 11,556 | supabase-export-v2 | 4b3d502e92f42eeb | Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3` or :pypi:`Exscript`. These are not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!telnetlib` module was
`Python 3.12 <https://docs.python.org/3.12/library/telnetlib.html>`_. | trusted_official_docs | CPython Docs | Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3` or :pypi:`Exscript`. These are not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!telnetlib` module was
`Python 3.12 <https://docs.python.org/3.12/library/telnetlib.html>`_. | Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3` or :pypi:`Exscript`. These are not supported or maintained by the Python core team.
The last version of Python that provided the :mod:`!telnetlib` module was
`Python 3.12 <https://docs.python.org/3.12/library/telnetlib.html>`_. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
afeee324-0bab-4dd1-8cc1-20490d5b0045 | CPython Docs | file://datasets/cpython/Doc/library/telnetlib.rst | unknown | 556bf9e3-d69f-4eea-a614-0b0dab3e8a3c | 11,555 | supabase-export-v2 | e2a7c3044c023d12 | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3`
or :pypi:`Exscript`. These are not supported or maintained by the Pyt... | trusted_official_docs | CPython Docs | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3`
or :pypi:`Exscript`. These are not supported or maintained by the Pyt... | part of the Python standard library. It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after being deprecated in Python 3.11. The removal was decided in :pep:`594`.
Possible replacements are third-party libraries from PyPI: :pypi:`telnetlib3`
or :pypi:`Exscript`. These are not supported or maintained by the Pyt... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4809b80a-713d-4053-885b-fbbf879a39db | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.rst | unknown | 785445d4-fec1-4bb9-93b1-bce49d5c3ce0 | 11,560 | supabase-export-v2 | fd6d436dd1c4da0b | With it, a client can call methods with parameters on a remote server (the server is named by a URI) and get back structured data.
``xmlrpc`` is a package that collects server and client modules implementing
XML-RPC. The modules are: | trusted_official_docs | CPython Docs | With it, a client can call methods with parameters on a remote server (the server is named by a URI) and get back structured data.
``xmlrpc`` is a package that collects server and client modules implementing
XML-RPC. The modules are: | With it, a client can call methods with parameters on a remote server (the server is named by a URI) and get back structured data.
``xmlrpc`` is a package that collects server and client modules implementing
XML-RPC. The modules are: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
78a9c61d-04b7-45aa-a10b-88dd5ae343d0 | CPython Docs | file://datasets/cpython/Doc/library/xmlrpc.rst | unknown | 785445d4-fec1-4bb9-93b1-bce49d5c3ce0 | 11,559 | supabase-export-v2 | bde37fca6bf6f374 | .. module:: xmlrpc :synopsis: Server and client modules implementing XML-RPC.
XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a
transport. With it, a client can call methods with parameters on a remote
server (the server is named by a URI) and get back structured data. | trusted_official_docs | CPython Docs | .. module:: xmlrpc :synopsis: Server and client modules implementing XML-RPC.
XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a
transport. With it, a client can call methods with parameters on a remote
server (the server is named by a URI) and get back structured data. | .. module:: xmlrpc :synopsis: Server and client modules implementing XML-RPC.
XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a
transport. With it, a client can call methods with parameters on a remote
server (the server is named by a URI) and get back structured data. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
04653356-54f5-45c7-a03f-f136bb912460 | CPython Docs | file://datasets/cpython/Doc/library/types.rst | unknown | 3bcf4e41-59bb-42f7-90c9-1ec7bcbb0480 | 11,655 | supabase-export-v2 | 3a1e204ca2ff2173 | The type of :ref:`parameterized generics <types-genericalias>` such as ``list[int]``.
``t_origin`` should be a non-parameterized generic class, such as ``list``,
``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of
length 1) of types which parameterize ``t_origin``:: | trusted_official_docs | CPython Docs | The type of :ref:`parameterized generics <types-genericalias>` such as ``list[int]``.
``t_origin`` should be a non-parameterized generic class, such as ``list``,
``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of
length 1) of types which parameterize ``t_origin``:: | The type of :ref:`parameterized generics <types-genericalias>` such as ``list[int]``.
``t_origin`` should be a non-parameterized generic class, such as ``list``,
``tuple`` or ``dict``. ``t_args`` should be a :class:`tuple` (possibly of
length 1) of types which parameterize ``t_origin``:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1608c20f-3ba5-4463-9879-8efccc6906e6 | CPython Docs | file://datasets/cpython/Doc/library/types.rst | unknown | 3bcf4e41-59bb-42f7-90c9-1ec7bcbb0480 | 11,573 | supabase-export-v2 | 683c8fd671ffab2c | arguments are the components that make up a class definition header: the class name, the base classes (in order), the keyword arguments (such as ``metaclass``).
The *exec_body* argument is a callback that is used to populate the
freshly created class namespace. It should accept the class namespace
as its sole argumen... | trusted_official_docs | CPython Docs | arguments are the components that make up a class definition header: the class name, the base classes (in order), the keyword arguments (such as ``metaclass``).
The *exec_body* argument is a callback that is used to populate the
freshly created class namespace. It should accept the class namespace
as its sole argumen... | arguments are the components that make up a class definition header: the class name, the base classes (in order), the keyword arguments (such as ``metaclass``).
The *exec_body* argument is a callback that is used to populate the
freshly created class namespace. It should accept the class namespace
as its sole argumen... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.