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
898bca46-0af5-4585-be96-bb81880d46c4
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,485
supabase-export-v2
04eb785f1e2448c8
block context of the code which has scrolled above the top of the window. See :ref:`Code Context <code-context>` in the Editing and Navigation section below. Show/Hide Line Numbers (Editor Window only) Open a column to the left of the edit window which shows the number of each line of text. The default is off, which ...
trusted_official_docs
CPython Docs
block context of the code which has scrolled above the top of the window. See :ref:`Code Context <code-context>` in the Editing and Navigation section below. Show/Hide Line Numbers (Editor Window only) Open a column to the left of the edit window which shows the number of each line of text. The default is off, which ...
block context of the code which has scrolled above the top of the window. See :ref:`Code Context <code-context>` in the Editing and Navigation section below. Show/Hide Line Numbers (Editor Window only) Open a column to the left of the edit window which shows the number of each line of text. The default is off, which ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b516216-94cd-4916-867e-837c91938f0e
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,480
supabase-export-v2
f3201338af4545f9
Stack Viewer Show the stack traceback of the last exception in a tree widget, with access to locals and globals. Auto-open Stack Viewer Toggle automatically opening the stack viewer on an unhandled exception.
trusted_official_docs
CPython Docs
Stack Viewer Show the stack traceback of the last exception in a tree widget, with access to locals and globals. Auto-open Stack Viewer Toggle automatically opening the stack viewer on an unhandled exception.
Stack Viewer Show the stack traceback of the last exception in a tree widget, with access to locals and globals. Auto-open Stack Viewer Toggle automatically opening the stack viewer on an unhandled exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8cbba3aa-1f93-461d-a6b6-874dac988794
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,517
supabase-export-v2
2623983e250b1129
on Windows and Unix and the :kbd:`Command` key on macOS. (And all such discussions assume that the keys have not been re-bound to something else.) * Arrow keys move the cursor one character or line.
trusted_official_docs
CPython Docs
on Windows and Unix and the :kbd:`Command` key on macOS. (And all such discussions assume that the keys have not been re-bound to something else.) * Arrow keys move the cursor one character or line.
on Windows and Unix and the :kbd:`Command` key on macOS. (And all such discussions assume that the keys have not been re-bound to something else.) * Arrow keys move the cursor one character or line.
python, official-docs, cpython, P0
Local_Trusted_Corpus
90c9c11c-fb51-4f7f-8e07-fe1e8cca4d5a
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,641
supabase-export-v2
c55d2e834e80fc51
See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for testing. idlelib --- implementation of IDLE application ----------------------------------------------
trusted_official_docs
CPython Docs
See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for testing. idlelib --- implementation of IDLE application ----------------------------------------------
See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for testing. idlelib --- implementation of IDLE application ----------------------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
922b784f-332d-4d59-bb12-70633bb7e322
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,594
supabase-export-v2
36cb95db95ccf8ba
is safe to allow this internal connection because no data is visible on external ports. A similar problem is a network mis-configuration that blocks connections. Python installation issues occasionally stop IDLE: multiple versions can clash, or a single installation might need admin access. If one undo the clash, or ca...
trusted_official_docs
CPython Docs
is safe to allow this internal connection because no data is visible on external ports. A similar problem is a network mis-configuration that blocks connections. Python installation issues occasionally stop IDLE: multiple versions can clash, or a single installation might need admin access. If one undo the clash, or ca...
is safe to allow this internal connection because no data is visible on external ports. A similar problem is a network mis-configuration that blocks connections. Python installation issues occasionally stop IDLE: multiple versions can clash, or a single installation might need admin access. If one undo the clash, or ca...
python, official-docs, cpython, P0
Local_Trusted_Corpus
928df890-3f5e-4d7d-ba2c-37204feca03b
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,477
supabase-export-v2
ad51242984e48747
referenced in an exception traceback and lines found by Find in Files. Also available in the context menu of the Shell window and Output windows. .. index:: single: debugger single: stack viewer
trusted_official_docs
CPython Docs
referenced in an exception traceback and lines found by Find in Files. Also available in the context menu of the Shell window and Output windows. .. index:: single: debugger single: stack viewer
referenced in an exception traceback and lines found by Find in Files. Also available in the context menu of the Shell window and Output windows. .. index:: single: debugger single: stack viewer
python, official-docs, cpython, P0
Local_Trusted_Corpus
96125d74-7685-431f-b891-38b99c268bf4
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,450
supabase-export-v2
26ee47514d2bd9c4
Format Paragraph Rewrap the text block containing the text insert cursor. Avoid code lines. See :ref:`Format block<format-block>` in the Editing and Navigation section below. Indent Region Shift selected lines right by the indent width (default 4 spaces).
trusted_official_docs
CPython Docs
Format Paragraph Rewrap the text block containing the text insert cursor. Avoid code lines. See :ref:`Format block<format-block>` in the Editing and Navigation section below. Indent Region Shift selected lines right by the indent width (default 4 spaces).
Format Paragraph Rewrap the text block containing the text insert cursor. Avoid code lines. See :ref:`Format block<format-block>` in the Editing and Navigation section below. Indent Region Shift selected lines right by the indent width (default 4 spaces).
python, official-docs, cpython, P0
Local_Trusted_Corpus
986c8374-5292-4205-a620-e0bbb4960286
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,454
supabase-export-v2
573ad083bcab9949
Uncomment Region Remove leading # or ## from selected lines. Tabify Region Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 space blocks to indent Python code.)
trusted_official_docs
CPython Docs
Uncomment Region Remove leading # or ## from selected lines. Tabify Region Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 space blocks to indent Python code.)
Uncomment Region Remove leading # or ## from selected lines. Tabify Region Turn *leading* stretches of spaces into tabs. (Note: We recommend using 4 space blocks to indent Python code.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
9aa5b2db-33b2-417a-bd63-ec858baacf0f
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,459
supabase-export-v2
e79c6711a97baa2b
line by applying :meth:`str.rstrip` to each line, including lines within multiline strings. Except for Shell windows, remove extra newlines at the end of the file. .. index:: single: Run script
trusted_official_docs
CPython Docs
line by applying :meth:`str.rstrip` to each line, including lines within multiline strings. Except for Shell windows, remove extra newlines at the end of the file. .. index:: single: Run script
line by applying :meth:`str.rstrip` to each line, including lines within multiline strings. Except for Shell windows, remove extra newlines at the end of the file. .. index:: single: Run script
python, official-docs, cpython, P0
Local_Trusted_Corpus
9c2baaa7-a1a9-47b5-9207-3eb74c524756
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,575
supabase-export-v2
faef86aeaa064d22
.. option:: -c <command> Run the specified Python command in the shell window. For example, pass ``-c "print('Hello, World!')"``. On Windows, the outer quotes must be double quotes as shown.
trusted_official_docs
CPython Docs
.. option:: -c <command> Run the specified Python command in the shell window. For example, pass ``-c "print('Hello, World!')"``. On Windows, the outer quotes must be double quotes as shown.
.. option:: -c <command> Run the specified Python command in the shell window. For example, pass ``-c "print('Hello, World!')"``. On Windows, the outer quotes must be double quotes as shown.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e18c586-f3f6-4955-b1e8-1e64c42b7ea1
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,516
supabase-export-v2
fed43fa500090092
characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space. Several non-character keys move the cursor and possibly delete characters. Deletion does not puts text on the clipboard, but IDLE has an undo list. Wherever this doc disc...
trusted_official_docs
CPython Docs
characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space. Several non-character keys move the cursor and possibly delete characters. Deletion does not puts text on the clipboard, but IDLE has an undo list. Wherever this doc disc...
characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space. Several non-character keys move the cursor and possibly delete characters. Deletion does not puts text on the clipboard, but IDLE has an undo list. Wherever this doc disc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9ef9830a-c678-440b-b231-5cea1558dc8d
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,464
supabase-export-v2
b6231a2fc2e976e5
.. _run-custom: Run... Customized Same as :ref:`Run Module <run-module>`, but run the module with customized settings. *Command Line Arguments* extend :data:`sys.argv` as if passed on a command line. The module can be run in the Shell without restarting.
trusted_official_docs
CPython Docs
.. _run-custom: Run... Customized Same as :ref:`Run Module <run-module>`, but run the module with customized settings. *Command Line Arguments* extend :data:`sys.argv` as if passed on a command line. The module can be run in the Shell without restarting.
.. _run-custom: Run... Customized Same as :ref:`Run Module <run-module>`, but run the module with customized settings. *Command Line Arguments* extend :data:`sys.argv` as if passed on a command line. The module can be run in the Shell without restarting.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f13e4c5-4b13-494e-8b14-cb7faa6e61dd
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,537
supabase-export-v2
bf991da3216f1527
hitting :kbd:`Tab` after a prefix, outside of a string and without a preceding '.' opens a box with keywords, builtin names, and available module-level names. When editing code in an editor (as oppose to Shell), increase the available module-level names by running your code and not restarting the Shell thereafter. This...
trusted_official_docs
CPython Docs
hitting :kbd:`Tab` after a prefix, outside of a string and without a preceding '.' opens a box with keywords, builtin names, and available module-level names. When editing code in an editor (as oppose to Shell), increase the available module-level names by running your code and not restarting the Shell thereafter. This...
hitting :kbd:`Tab` after a prefix, outside of a string and without a preceding '.' opens a box with keywords, builtin names, and available module-level names. When editing code in an editor (as oppose to Shell), increase the available module-level names by running your code and not restarting the Shell thereafter. This...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a1303584-f9c4-4c39-a720-39f1849cde39
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,466
supabase-export-v2
a63b2f28515e4a99
.. _check-module: Check Module Check the syntax of the module currently open in the Editor window. If the module has not been saved IDLE will either prompt the user to save or autosave, as selected in the General tab of the Idle Settings dialog. If there is a syntax error, the approximate location is indicated in t...
trusted_official_docs
CPython Docs
.. _check-module: Check Module Check the syntax of the module currently open in the Editor window. If the module has not been saved IDLE will either prompt the user to save or autosave, as selected in the General tab of the Idle Settings dialog. If there is a syntax error, the approximate location is indicated in t...
.. _check-module: Check Module Check the syntax of the module currently open in the Editor window. If the module has not been saved IDLE will either prompt the user to save or autosave, as selected in the General tab of the Idle Settings dialog. If there is a syntax error, the approximate location is indicated in t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5a0ec6d-644c-463f-999b-c86535d069c2
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,457
supabase-export-v2
b6d8a9e6b8bf6e63
Toggle Tabs Open a dialog to switch between indenting with spaces and tabs. New Indent Width Open a dialog to change indent width. The accepted default by the Python community is 4 spaces.
trusted_official_docs
CPython Docs
Toggle Tabs Open a dialog to switch between indenting with spaces and tabs. New Indent Width Open a dialog to change indent width. The accepted default by the Python community is 4 spaces.
Toggle Tabs Open a dialog to switch between indenting with spaces and tabs. New Indent Width Open a dialog to change indent width. The accepted default by the Python community is 4 spaces.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5e53acf-89a9-4638-8c7a-d2a5620f31bf
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,600
supabase-export-v2
4b1f12a65c6be416
Running user code ^^^^^^^^^^^^^^^^^ With rare exceptions, the result of executing Python code with IDLE is intended to be the same as executing the same code by the default method, directly with Python in a text-mode system console or terminal window. However, the different interface and operation occasionally affect v...
trusted_official_docs
CPython Docs
Running user code ^^^^^^^^^^^^^^^^^ With rare exceptions, the result of executing Python code with IDLE is intended to be the same as executing the same code by the default method, directly with Python in a text-mode system console or terminal window. However, the different interface and operation occasionally affect v...
Running user code ^^^^^^^^^^^^^^^^^ With rare exceptions, the result of executing Python code with IDLE is intended to be the same as executing the same code by the default method, directly with Python in a text-mode system console or terminal window. However, the different interface and operation occasionally affect v...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a99483cb-b1a9-4878-afaf-efd598698cea
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,611
supabase-export-v2
6321d1e5cdaa29b7
windows only keep the last n lines of output. A Windows console, for instance, keeps a user-settable 1 to 9999 lines, with 300 the default. A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters are displayed with a proper gly...
trusted_official_docs
CPython Docs
windows only keep the last n lines of output. A Windows console, for instance, keeps a user-settable 1 to 9999 lines, with 300 the default. A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters are displayed with a proper gly...
windows only keep the last n lines of output. A Windows console, for instance, keeps a user-settable 1 to 9999 lines, with 300 the default. A Tk Text widget, and hence IDLE's Shell, displays characters (codepoints) in the BMP (Basic Multilingual Plane) subset of Unicode. Which characters are displayed with a proper gly...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab654702-47d0-45cf-8b41-c7b650abb80b
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,559
supabase-export-v2
2cc842e06f4cd038
:kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed. * :kbd:`Return` while the cursor is on any previous statement appends the latter to anything already typed at the prompt.
trusted_official_docs
CPython Docs
:kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed. * :kbd:`Return` while the cursor is on any previous statement appends the latter to anything already typed at the prompt.
:kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed. * :kbd:`Return` while the cursor is on any previous statement appends the latter to anything already typed at the prompt.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ad2698a8-f348-4349-b134-cceea0c38f5f
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,566
supabase-export-v2
fdc1e63bb98850fd
environment variables are convenient places to store functions that are used frequently from the IDLE shell, or for executing import statements to import common modules. In addition, ``Tk`` also loads a startup file if it is present. Note that the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` ...
trusted_official_docs
CPython Docs
environment variables are convenient places to store functions that are used frequently from the IDLE shell, or for executing import statements to import common modules. In addition, ``Tk`` also loads a startup file if it is present. Note that the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` ...
environment variables are convenient places to store functions that are used frequently from the IDLE shell, or for executing import statements to import common modules. In addition, ``Tk`` also loads a startup file if it is present. Note that the Tk file is loaded unconditionally. This additional file is ``.Idle.py`` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ae2c5f74-85b6-4268-a5df-6bb8db378be1
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,544
supabase-export-v2
00f18c67c827a61b
nothing appears. Idle does not itself import turtle. The menu entry and shortcut also do nothing. Enter ``import turtle``. Thereafter, ``turtle.write(`` will display a calltip. In an editor, import statements have no effect until one runs the file. One might want to run a file after writing import statements, after add...
trusted_official_docs
CPython Docs
nothing appears. Idle does not itself import turtle. The menu entry and shortcut also do nothing. Enter ``import turtle``. Thereafter, ``turtle.write(`` will display a calltip. In an editor, import statements have no effect until one runs the file. One might want to run a file after writing import statements, after add...
nothing appears. Idle does not itself import turtle. The menu entry and shortcut also do nothing. Enter ``import turtle``. Thereafter, ``turtle.write(`` will display a calltip. In an editor, import statements have no effect until one runs the file. One might want to run a file after writing import statements, after add...
python, official-docs, cpython, P0
Local_Trusted_Corpus
af9d6bca-0730-4f7e-9316-8331e28b1ac5
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,445
supabase-export-v2
7983e73a7522c275
Expand Word Expand a prefix you have typed to match a full word in the same window; repeat to get a different expansion. Show Call Tip After an unclosed parenthesis for a function, open a small window with function parameter hints. See :ref:`Calltips <calltips>` in the Editing and Navigation section below.
trusted_official_docs
CPython Docs
Expand Word Expand a prefix you have typed to match a full word in the same window; repeat to get a different expansion. Show Call Tip After an unclosed parenthesis for a function, open a small window with function parameter hints. See :ref:`Calltips <calltips>` in the Editing and Navigation section below.
Expand Word Expand a prefix you have typed to match a full word in the same window; repeat to get a different expansion. Show Call Tip After an unclosed parenthesis for a function, open a small window with function parameter hints. See :ref:`Calltips <calltips>` in the Editing and Navigation section below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b07778b5-7a76-42a7-9ab1-4966e896314d
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,422
supabase-export-v2
ede1dbc0e22a3c39
Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first. Path Browser Show sys.path directories, modules, functions, classes and methods in a tree structure.
trusted_official_docs
CPython Docs
Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first. Path Browser Show sys.path directories, modules, functions, classes and methods in a tree structure.
Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first. Path Browser Show sys.path directories, modules, functions, classes and methods in a tree structure.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b26c4565-ca74-4fef-b5d5-6d91b223d4ac
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,555
supabase-export-v2
32e7f5d1654cb524
when the user execution process has crashed, when one requests a restart on the Shell menu, or when one runs code in an editor window. The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following:
trusted_official_docs
CPython Docs
when the user execution process has crashed, when one requests a restart on the Shell menu, or when one runs code in an editor window. The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following:
when the user execution process has crashed, when one requests a restart on the Shell menu, or when one runs code in an editor window. The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following:
python, official-docs, cpython, P0
Local_Trusted_Corpus
b4a24282-b9dd-4063-8c1f-2b0c4c6a7c06
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,640
supabase-export-v2
27c62b2226185c41
Extensions ^^^^^^^^^^ IDLE contains an extension facility. Preferences for extensions can be changed with the Extensions tab of the preferences dialog. See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for tes...
trusted_official_docs
CPython Docs
Extensions ^^^^^^^^^^ IDLE contains an extension facility. Preferences for extensions can be changed with the Extensions tab of the preferences dialog. See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for tes...
Extensions ^^^^^^^^^^ IDLE contains an extension facility. Preferences for extensions can be changed with the Extensions tab of the preferences dialog. See the beginning of config-extensions.def in the idlelib directory for further information. The only current default extension is zzdummy, an example also used for tes...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b5b4621e-7f47-4dd6-8a86-7dfd5dbc1036
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,486
supabase-export-v2
1c5f0d73f438e32c
window which shows the number of each line of text. The default is off, which may be changed in the preferences (see :ref:`Setting preferences <preferences>`). Zoom/Restore Height Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General...
trusted_official_docs
CPython Docs
window which shows the number of each line of text. The default is off, which may be changed in the preferences (see :ref:`Setting preferences <preferences>`). Zoom/Restore Height Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General...
window which shows the number of each line of text. The default is off, which may be changed in the preferences (see :ref:`Setting preferences <preferences>`). Zoom/Restore Height Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b608a08d-14ab-45d7-9da5-3fcbfd1aa9cc
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,538
supabase-export-v2
48f567633b9561ab
and not restarting the Shell thereafter. This is especially useful after adding imports at the top of a file. This also increases possible attribute completions. Completion boxes initially exclude names beginning with '_' or, for modules, not included in '__all__'. The hidden names can be accessed by typing '_' after '...
trusted_official_docs
CPython Docs
and not restarting the Shell thereafter. This is especially useful after adding imports at the top of a file. This also increases possible attribute completions. Completion boxes initially exclude names beginning with '_' or, for modules, not included in '__all__'. The hidden names can be accessed by typing '_' after '...
and not restarting the Shell thereafter. This is especially useful after adding imports at the top of a file. This also increases possible attribute completions. Completion boxes initially exclude names beginning with '_' or, for modules, not included in '__all__'. The hidden names can be accessed by typing '_' after '...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b786cc45-157b-49ff-80a5-1ff8dc56137f
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,635
supabase-export-v2
9a18edacd811155d
the user's home directory. Problems caused by bad user configuration files are solved by editing or deleting one or more of the files in ``.idlerc``. On the Font tab, see the text sample for the effect of font face and size on multiple characters in multiple languages. Edit the sample to add other characters of persona...
trusted_official_docs
CPython Docs
the user's home directory. Problems caused by bad user configuration files are solved by editing or deleting one or more of the files in ``.idlerc``. On the Font tab, see the text sample for the effect of font face and size on multiple characters in multiple languages. Edit the sample to add other characters of persona...
the user's home directory. Problems caused by bad user configuration files are solved by editing or deleting one or more of the files in ``.idlerc``. On the Font tab, see the text sample for the effect of font face and size on multiple characters in multiple languages. Edit the sample to add other characters of persona...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b8bb0d91-3183-4ce4-8d6b-10b517dd1ea0
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,629
supabase-export-v2
144da593c6690f24
Help sources ^^^^^^^^^^^^ Help menu entry "IDLE Help" displays a formatted html version of the IDLE chapter of the Library Reference. The result, in a read-only tkinter text window, is close to what one sees in a web browser. Navigate through the text with a mousewheel, the scrollbar, or up and down arrow keys held dow...
trusted_official_docs
CPython Docs
Help sources ^^^^^^^^^^^^ Help menu entry "IDLE Help" displays a formatted html version of the IDLE chapter of the Library Reference. The result, in a read-only tkinter text window, is close to what one sees in a web browser. Navigate through the text with a mousewheel, the scrollbar, or up and down arrow keys held dow...
Help sources ^^^^^^^^^^^^ Help menu entry "IDLE Help" displays a formatted html version of the IDLE chapter of the Library Reference. The result, in a read-only tkinter text window, is close to what one sees in a web browser. Navigate through the text with a mousewheel, the scrollbar, or up and down arrow keys held dow...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b97e2d4e-e224-4fd9-bae1-513ef3409a82
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,424
supabase-export-v2
83b4f26caf277629
since being opened or last saved have a \* before and after the window title. If there is no associated file, do Save As instead. Save As... Save the current window with a Save As dialog. The file saved becomes the new associated file for the window. (If your file manager is set to hide extensions, the current extens...
trusted_official_docs
CPython Docs
since being opened or last saved have a \* before and after the window title. If there is no associated file, do Save As instead. Save As... Save the current window with a Save As dialog. The file saved becomes the new associated file for the window. (If your file manager is set to hide extensions, the current extens...
since being opened or last saved have a \* before and after the window title. If there is no associated file, do Save As instead. Save As... Save the current window with a Save As dialog. The file saved becomes the new associated file for the window. (If your file manager is set to hide extensions, the current extens...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba1d4dda-6dd0-42b6-bab9-ba3fb5b0c0da
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,421
supabase-export-v2
caa6a4b6d2578af8
.. index:: single: Module browser single: Path browser Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first.
trusted_official_docs
CPython Docs
.. index:: single: Module browser single: Path browser Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first.
.. index:: single: Module browser single: Path browser Module Browser Show functions, classes, and methods in the current Editor file in a tree structure. In the shell, open a module first.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bb858f16-d0a2-4df9-aa04-9c529f2a7183
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,541
supabase-export-v2
6a2c6f4b2f370c3b
is in the argument part of a definition, select Edit and "Show Call Tip" on the menu or enter its shortcut to display a calltip. The calltip consists of the function's signature and docstring up to the latter's first blank line or the fifth non-blank line. (Some builtin functions lack an accessible signature.) A '/' or...
trusted_official_docs
CPython Docs
is in the argument part of a definition, select Edit and "Show Call Tip" on the menu or enter its shortcut to display a calltip. The calltip consists of the function's signature and docstring up to the latter's first blank line or the fifth non-blank line. (Some builtin functions lack an accessible signature.) A '/' or...
is in the argument part of a definition, select Edit and "Show Call Tip" on the menu or enter its shortcut to display a calltip. The calltip consists of the function's signature and docstring up to the latter's first blank line or the fifth non-blank line. (Some builtin functions lack an accessible signature.) A '/' or...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bbe4a7d1-6b82-4d23-9533-b420a307ec9e
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,495
supabase-export-v2
111d90d56f795a60
be added here with the Configure IDLE dialog under the General tab. See the :ref:`Help sources <help-sources>` subsection below for more on Help menu choices. .. index:: single: Cut single: Copy single: Paste single: Set Breakpoint single: Clear Breakpoint single: breakpoints
trusted_official_docs
CPython Docs
be added here with the Configure IDLE dialog under the General tab. See the :ref:`Help sources <help-sources>` subsection below for more on Help menu choices. .. index:: single: Cut single: Copy single: Paste single: Set Breakpoint single: Clear Breakpoint single: breakpoints
be added here with the Configure IDLE dialog under the General tab. See the :ref:`Help sources <help-sources>` subsection below for more on Help menu choices. .. index:: single: Cut single: Copy single: Paste single: Set Breakpoint single: Clear Breakpoint single: breakpoints
python, official-docs, cpython, P0
Local_Trusted_Corpus
bd1511f8-114d-4f5c-9401-188c1658c840
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,507
supabase-export-v2
a4963780a2f118ca
The Shell window also has an output squeezing facility explained in the *Python Shell window* subsection below. Squeeze If the cursor is over an output line, squeeze all the output between the code above and the prompt below down to a 'Squeezed text' label.
trusted_official_docs
CPython Docs
The Shell window also has an output squeezing facility explained in the *Python Shell window* subsection below. Squeeze If the cursor is over an output line, squeeze all the output between the code above and the prompt below down to a 'Squeezed text' label.
The Shell window also has an output squeezing facility explained in the *Python Shell window* subsection below. Squeeze If the cursor is over an output line, squeeze all the output between the code above and the prompt below down to a 'Squeezed text' label.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c0344f30-f5e1-4d43-b7ee-0c7f260fe899
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,528
supabase-export-v2
c56e7abc5175c0c9
inserts spaces (in the Python Shell window one tab), number depends on Indent width. Currently, tabs are restricted to four spaces due to Tcl/Tk limitations. See also the indent/dedent region commands on the :ref:`Format menu <format-menu>`.
trusted_official_docs
CPython Docs
inserts spaces (in the Python Shell window one tab), number depends on Indent width. Currently, tabs are restricted to four spaces due to Tcl/Tk limitations. See also the indent/dedent region commands on the :ref:`Format menu <format-menu>`.
inserts spaces (in the Python Shell window one tab), number depends on Indent width. Currently, tabs are restricted to four spaces due to Tcl/Tk limitations. See also the indent/dedent region commands on the :ref:`Format menu <format-menu>`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c13506ff-85b6-4e43-a839-15bf49e26e21
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,596
supabase-export-v2
a4ab3fa7ecddb9aa
or Keyboard Interrupt (control-C) may fail to connect. Dismissing the error box or using Restart Shell on the Shell menu may fix a temporary problem. When IDLE first starts, it attempts to read user configuration files in ``~/.idlerc/`` (~ is one's home directory). If there is a problem, an error message should be disp...
trusted_official_docs
CPython Docs
or Keyboard Interrupt (control-C) may fail to connect. Dismissing the error box or using Restart Shell on the Shell menu may fix a temporary problem. When IDLE first starts, it attempts to read user configuration files in ``~/.idlerc/`` (~ is one's home directory). If there is a problem, an error message should be disp...
or Keyboard Interrupt (control-C) may fail to connect. Dismissing the error box or using Restart Shell on the Shell menu may fix a temporary problem. When IDLE first starts, it attempts to read user configuration files in ``~/.idlerc/`` (~ is one's home directory). If there is a problem, an error message should be disp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb3b8699-1c8d-4aa3-a085-83b5ade0868c
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,606
supabase-export-v2
6f699950b33b91c1
directly access the keyboard and screen will not work. These include system-specific functions that determine whether a key has been pressed and if so, which. The IDLE code running in the execution process adds frames to the call stack that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` and ``sys.se...
trusted_official_docs
CPython Docs
directly access the keyboard and screen will not work. These include system-specific functions that determine whether a key has been pressed and if so, which. The IDLE code running in the execution process adds frames to the call stack that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` and ``sys.se...
directly access the keyboard and screen will not work. These include system-specific functions that determine whether a key has been pressed and if so, which. The IDLE code running in the execution process adds frames to the call stack that would not be there otherwise. IDLE wraps ``sys.getrecursionlimit`` and ``sys.se...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ce04f219-478b-424f-8b12-0fc21b1fe8b4
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,428
supabase-export-v2
fafdad2a04e65d14
Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE. Exit IDLE Close all windows and quit IDLE (ask to save unsaved edit windows).
trusted_official_docs
CPython Docs
Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE. Exit IDLE Close all windows and quit IDLE (ask to save unsaved edit windows).
Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE. Exit IDLE Close all windows and quit IDLE (ask to save unsaved edit windows).
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfd1ebf3-fe10-42f2-b317-f357cdea6953
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,482
supabase-export-v2
ece73606e942d824
Options menu (Shell and Editor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Configure IDLE Open a configuration dialog and change preferences for the following: fonts, indentation, keybindings, text color themes, startup windows and size, additional help sources, and extensions. On macOS, open the configuration dialog by selec...
trusted_official_docs
CPython Docs
Options menu (Shell and Editor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Configure IDLE Open a configuration dialog and change preferences for the following: fonts, indentation, keybindings, text color themes, startup windows and size, additional help sources, and extensions. On macOS, open the configuration dialog by selec...
Options menu (Shell and Editor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Configure IDLE Open a configuration dialog and change preferences for the following: fonts, indentation, keybindings, text color themes, startup windows and size, additional help sources, and extensions. On macOS, open the configuration dialog by selec...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cfffe89a-e138-4e6b-b90b-a45d801d6f66
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,443
supabase-export-v2
22ab691f25d3b3ea
that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status. Show Completions Open a scrollable list allowing selection of existing names. See :ref:`Completions <completions>` in the Editing and Navigation section below.
trusted_official_docs
CPython Docs
that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status. Show Completions Open a scrollable list allowing selection of existing names. See :ref:`Completions <completions>` in the Editing and Navigation section below.
that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status. Show Completions Open a scrollable list allowing selection of existing names. See :ref:`Completions <completions>` in the Editing and Navigation section below.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d132247c-eab1-4519-bce8-5d10d4af76aa
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,612
supabase-export-v2
d73a2bf013dab422
else, depending on the operating system and font. (Moving the text cursor through such output with arrow keys may exhibit some surprising spacing behavior.) :: >>> s = 'a\tb\a<\x02><\r>\bc\nd' # Enter 22 chars. >>> len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is...
trusted_official_docs
CPython Docs
else, depending on the operating system and font. (Moving the text cursor through such output with arrow keys may exhibit some surprising spacing behavior.) :: >>> s = 'a\tb\a<\x02><\r>\bc\nd' # Enter 22 chars. >>> len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is...
else, depending on the operating system and font. (Moving the text cursor through such output with arrow keys may exhibit some surprising spacing behavior.) :: >>> s = 'a\tb\a<\x02><\r>\bc\nd' # Enter 22 chars. >>> len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d261c8d0-cd41-40e6-b962-d72c7d8422f4
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,405
supabase-export-v2
e1a4e2ae17addda4
* Python shell window (interactive interpreter) with colorizing of code input, output, and error messages * multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features
trusted_official_docs
CPython Docs
* Python shell window (interactive interpreter) with colorizing of code input, output, and error messages * multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features
* Python shell window (interactive interpreter) with colorizing of code input, output, and error messages * multi-window text editor with multiple undo, Python colorizing, smart indent, call tips, auto completion, and other features
python, official-docs, cpython, P0
Local_Trusted_Corpus
d32da01a-a8f1-4d08-b31b-e98efdfe8d1d
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,412
supabase-export-v2
4d9b7335993d2b8d
Menus ----- IDLE has two main window types, the Shell window and the Editor window. It is possible to have multiple editor windows simultaneously. On Windows and Linux, each has its own top menu. Each menu documented below indicates which window type it is associated with.
trusted_official_docs
CPython Docs
Menus ----- IDLE has two main window types, the Shell window and the Editor window. It is possible to have multiple editor windows simultaneously. On Windows and Linux, each has its own top menu. Each menu documented below indicates which window type it is associated with.
Menus ----- IDLE has two main window types, the Shell window and the Editor window. It is possible to have multiple editor windows simultaneously. On Windows and Linux, each has its own top menu. Each menu documented below indicates which window type it is associated with.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d3843d8c-19fb-4267-a9d2-aae929eb6602
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,478
supabase-export-v2
f95c26ff428b64a9
.. index:: single: debugger single: stack viewer Debugger (toggle) When activated, code entered in the Shell or run from an Editor will run under the debugger. In the Editor, breakpoints can be set with the context menu. This feature is still incomplete and somewhat experimental.
trusted_official_docs
CPython Docs
.. index:: single: debugger single: stack viewer Debugger (toggle) When activated, code entered in the Shell or run from an Editor will run under the debugger. In the Editor, breakpoints can be set with the context menu. This feature is still incomplete and somewhat experimental.
.. index:: single: debugger single: stack viewer Debugger (toggle) When activated, code entered in the Shell or run from an Editor will run under the debugger. In the Editor, breakpoints can be set with the context menu. This feature is still incomplete and somewhat experimental.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d679f471-0490-4444-8e48-b447535cf1ca
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,613
supabase-export-v2
db085175124b8a99
len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is. # Result varies by OS and font. Try it. The ``repr`` function is used for interactive echo of expression values. It returns an altered version of the input string in which control codes, some BMP codepoints, and all n...
trusted_official_docs
CPython Docs
len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is. # Result varies by OS and font. Try it. The ``repr`` function is used for interactive echo of expression values. It returns an altered version of the input string in which control codes, some BMP codepoints, and all n...
len(s) 14 >>> s # Display repr(s) 'a\tb\x07<\x02><\r>\x08c\nd' >>> print(s, end='') # Display s as is. # Result varies by OS and font. Try it. The ``repr`` function is used for interactive echo of expression values. It returns an altered version of the input string in which control codes, some BMP codepoints, and all n...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d73e03a3-4192-4b75-90a3-134418a17176
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,646
supabase-export-v2
7a4aff183e8e68d9
The Lib/idlelib package implements the IDLE application. See the rest of this page for how to use IDLE. The files in idlelib are described in idlelib/README.txt. Access it either in idlelib or click Help => About IDLE on the IDLE menu. This file also maps IDLE menu items to the code that implements the item. Except for...
trusted_official_docs
CPython Docs
The Lib/idlelib package implements the IDLE application. See the rest of this page for how to use IDLE. The files in idlelib are described in idlelib/README.txt. Access it either in idlelib or click Help => About IDLE on the IDLE menu. This file also maps IDLE menu items to the code that implements the item. Except for...
The Lib/idlelib package implements the IDLE application. See the rest of this page for how to use IDLE. The files in idlelib are described in idlelib/README.txt. Access it either in idlelib or click Help => About IDLE on the IDLE menu. This file also maps IDLE menu items to the code that implements the item. Except for...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d7bb3a23-6878-42a2-8ab5-b0dc2e6709c9
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,565
supabase-export-v2
7b84c561f40503b6
Startup and Code Execution -------------------------- Upon startup with the ``-s`` option, IDLE will execute the file referenced by the environment variables :envvar:`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`. IDLE first checks for ``IDLESTARTUP``; if ``IDLESTARTUP`` is present the file referenced is run. If ``IDLESTARTU...
trusted_official_docs
CPython Docs
Startup and Code Execution -------------------------- Upon startup with the ``-s`` option, IDLE will execute the file referenced by the environment variables :envvar:`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`. IDLE first checks for ``IDLESTARTUP``; if ``IDLESTARTUP`` is present the file referenced is run. If ``IDLESTARTU...
Startup and Code Execution -------------------------- Upon startup with the ``-s`` option, IDLE will execute the file referenced by the environment variables :envvar:`IDLESTARTUP` or :envvar:`PYTHONSTARTUP`. IDLE first checks for ``IDLESTARTUP``; if ``IDLESTARTUP`` is present the file referenced is run. If ``IDLESTARTU...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d8efda1b-603d-45a1-b214-f4877ccbfb33
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,484
supabase-export-v2
44f161ee1329e6d5
Most configuration options apply to all windows or all future windows. The option items below only apply to the active window. Show/Hide Code Context (Editor Window only) Open a pane at the top of the edit window which shows the block context of the code which has scrolled above the top of the window. See :ref:`Code...
trusted_official_docs
CPython Docs
Most configuration options apply to all windows or all future windows. The option items below only apply to the active window. Show/Hide Code Context (Editor Window only) Open a pane at the top of the edit window which shows the block context of the code which has scrolled above the top of the window. See :ref:`Code...
Most configuration options apply to all windows or all future windows. The option items below only apply to the active window. Show/Hide Code Context (Editor Window only) Open a pane at the top of the edit window which shows the block context of the code which has scrolled above the top of the window. See :ref:`Code...
python, official-docs, cpython, P0
Local_Trusted_Corpus
da35d2f1-2140-40a2-94b3-8dd48dbefd17
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,493
supabase-export-v2
fec60fac2fa08db0
Python Docs Access local Python documentation, if installed, or start a web browser and open docs.python.org showing the latest Python documentation. Turtle Demo Run the turtledemo module with example Python code and turtle drawings.
trusted_official_docs
CPython Docs
Python Docs Access local Python documentation, if installed, or start a web browser and open docs.python.org showing the latest Python documentation. Turtle Demo Run the turtledemo module with example Python code and turtle drawings.
Python Docs Access local Python documentation, if installed, or start a web browser and open docs.python.org showing the latest Python documentation. Turtle Demo Run the turtledemo module with example Python code and turtle drawings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
da5715bd-20a8-4242-8622-20cf8eac19bb
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,535
supabase-export-v2
4208bd9a701d4366
one enters a prefix after the box is displayed. Show Completions after a quote completes filenames in the current directory instead of a root directory. Hitting :kbd:`Tab` after a prefix usually has the same effect as Show Completions. (With no prefix, it indents.) However, if there is only one match to the prefix, tha...
trusted_official_docs
CPython Docs
one enters a prefix after the box is displayed. Show Completions after a quote completes filenames in the current directory instead of a root directory. Hitting :kbd:`Tab` after a prefix usually has the same effect as Show Completions. (With no prefix, it indents.) However, if there is only one match to the prefix, tha...
one enters a prefix after the box is displayed. Show Completions after a quote completes filenames in the current directory instead of a root directory. Hitting :kbd:`Tab` after a prefix usually has the same effect as Show Completions. (With no prefix, it indents.) However, if there is only one match to the prefix, tha...
python, official-docs, cpython, P0
Local_Trusted_Corpus
df43a7f8-a8f6-4b87-9339-9e7b0abff512
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,515
supabase-export-v2
cad031ec6d5b28b5
Key bindings ^^^^^^^^^^^^ The IDLE insertion cursor is a thin vertical bar between character positions. When characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space.
trusted_official_docs
CPython Docs
Key bindings ^^^^^^^^^^^^ The IDLE insertion cursor is a thin vertical bar between character positions. When characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space.
Key bindings ^^^^^^^^^^^^ The IDLE insertion cursor is a thin vertical bar between character positions. When characters are entered, the insertion cursor and everything to its right moves right one character and the new character is entered in the new space.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dfefb025-fce9-4498-9cfc-4c9d4540966d
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,616
supabase-export-v2
db2c37cd095a2e0d
one may right click on a traceback line to jump to the corresponding line in an IDLE editor. The file will be opened if necessary. Shell has a special facility for squeezing output lines down to a 'Squeezed text' label. This is done automatically for output over N lines (N = 50 by default). N can be changed in the PySh...
trusted_official_docs
CPython Docs
one may right click on a traceback line to jump to the corresponding line in an IDLE editor. The file will be opened if necessary. Shell has a special facility for squeezing output lines down to a 'Squeezed text' label. This is done automatically for output over N lines (N = 50 by default). N can be changed in the PySh...
one may right click on a traceback line to jump to the corresponding line in an IDLE editor. The file will be opened if necessary. Shell has a special facility for squeezing output lines down to a 'Squeezed text' label. This is done automatically for output over N lines (N = 50 by default). N can be changed in the PySh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e2502224-5880-45c6-9cc3-ebaf571f4bb5
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,414
supabase-export-v2
c31e194278100fcd
=> Find in Files, are a subtype of editor window. They currently have the same top menu but a different default title and context menu. On macOS, there is one application menu. It dynamically changes according to the window currently selected. It has an IDLE menu, and some entries described below are moved around to co...
trusted_official_docs
CPython Docs
=> Find in Files, are a subtype of editor window. They currently have the same top menu but a different default title and context menu. On macOS, there is one application menu. It dynamically changes according to the window currently selected. It has an IDLE menu, and some entries described below are moved around to co...
=> Find in Files, are a subtype of editor window. They currently have the same top menu but a different default title and context menu. On macOS, there is one application menu. It dynamically changes according to the window currently selected. It has an IDLE menu, and some entries described below are moved around to co...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e3685d20-bc6c-4bf6-b02f-4a0f0820136c
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,513
supabase-export-v2
56cc84c19460cf8e
IDLE running the window. The status bar contains the line number ('Ln') and column number ('Col'). Line numbers start with 1; column numbers with 0. IDLE assumes that files with a known .py* extension contain Python code and that other files do not. Run Python code with the Run menu.
trusted_official_docs
CPython Docs
IDLE running the window. The status bar contains the line number ('Ln') and column number ('Col'). Line numbers start with 1; column numbers with 0. IDLE assumes that files with a known .py* extension contain Python code and that other files do not. Run Python code with the Run menu.
IDLE running the window. The status bar contains the line number ('Ln') and column number ('Col'). Line numbers start with 1; column numbers with 0. IDLE assumes that files with a known .py* extension contain Python code and that other files do not. Run Python code with the Run menu.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e65f2c94-85fb-45a8-8c39-2e13d08b3d9a
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,442
supabase-export-v2
5fd5d98e1b1124f5
Replace... Open a search-and-replace dialog. Go to Line Move the cursor to the beginning of the line requested and make that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status.
trusted_official_docs
CPython Docs
Replace... Open a search-and-replace dialog. Go to Line Move the cursor to the beginning of the line requested and make that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status.
Replace... Open a search-and-replace dialog. Go to Line Move the cursor to the beginning of the line requested and make that line visible. A request past the end of the file goes to the end. Clear any selection and update the line and column status.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9258a1a-9e08-4f35-9a3b-72645518e1d3
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,427
supabase-export-v2
f8e47fd0f9bc6229
Print Window Print the current window to the default printer. Close Window Close the current window (if an unsaved editor, ask to save; if an unsaved Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE.
trusted_official_docs
CPython Docs
Print Window Print the current window to the default printer. Close Window Close the current window (if an unsaved editor, ask to save; if an unsaved Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE.
Print Window Print the current window to the default printer. Close Window Close the current window (if an unsaved editor, ask to save; if an unsaved Shell, ask to quit execution). Calling ``exit()`` or ``close()`` in the Shell window also closes Shell. If this is the only window, also exit IDLE.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9468f88-e125-4c7d-a3a6-f978716c35f5
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,636
supabase-export-v2
5ac22cbb2de92d73
particular characters have problems in Shell or an editor, add them to the top of the sample and try changing first size and then font. On the Highlights and Keys tab, select a built-in or custom color theme and key set. To use a newer built-in color theme or key set with older IDLEs, save it as a new custom theme or k...
trusted_official_docs
CPython Docs
particular characters have problems in Shell or an editor, add them to the top of the sample and try changing first size and then font. On the Highlights and Keys tab, select a built-in or custom color theme and key set. To use a newer built-in color theme or key set with older IDLEs, save it as a new custom theme or k...
particular characters have problems in Shell or an editor, add them to the top of the sample and try changing first size and then font. On the Highlights and Keys tab, select a built-in or custom color theme and key set. To use a newer built-in color theme or key set with older IDLEs, save it as a new custom theme or k...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e98cd7e1-6bce-4d97-b445-53528e8e5b16
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,563
supabase-export-v2
a3a1d5cc90161588
:keyword:`_ <wildcard-patterns>` in pattern-matching statements. However, this highlighting is not perfect and will be incorrect in some rare cases, including some ``_``-s in ``case`` patterns. Text coloring is done in the background, so uncolorized text is occasionally visible. To change the color scheme, use the Conf...
trusted_official_docs
CPython Docs
:keyword:`_ <wildcard-patterns>` in pattern-matching statements. However, this highlighting is not perfect and will be incorrect in some rare cases, including some ``_``-s in ``case`` patterns. Text coloring is done in the background, so uncolorized text is occasionally visible. To change the color scheme, use the Conf...
:keyword:`_ <wildcard-patterns>` in pattern-matching statements. However, this highlighting is not perfect and will be incorrect in some rare cases, including some ``_``-s in ``case`` patterns. Text coloring is done in the background, so uncolorized text is occasionally visible. To change the color scheme, use the Conf...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9a7f189-de91-4839-9c8e-e65758ac5508
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,610
supabase-export-v2
e41fd687a0df7f7c
features are inherited from the underlying Tk Text widget. Others are programmed additions. Where it matters, Shell is designed for development rather than production runs. For instance, Shell never throws away output. A program that sends unlimited output to Shell will eventually fill memory, resulting in a memory err...
trusted_official_docs
CPython Docs
features are inherited from the underlying Tk Text widget. Others are programmed additions. Where it matters, Shell is designed for development rather than production runs. For instance, Shell never throws away output. A program that sends unlimited output to Shell will eventually fill memory, resulting in a memory err...
features are inherited from the underlying Tk Text widget. Others are programmed additions. Where it matters, Shell is designed for development rather than production runs. For instance, Shell never throws away output. A program that sends unlimited output to Shell will eventually fill memory, resulting in a memory err...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ef4b9b74-0dcb-457e-a8fc-893c25b3abd0
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,614
supabase-export-v2
f6cad4a1e2cad0b8
codepoints are replaced with escape codes. As demonstrated above, it allows one to identify the characters in a string, regardless of how they are displayed. Normal and error output are generally kept separate (on separate lines) from code input and each other. They each get different highlight colors.
trusted_official_docs
CPython Docs
codepoints are replaced with escape codes. As demonstrated above, it allows one to identify the characters in a string, regardless of how they are displayed. Normal and error output are generally kept separate (on separate lines) from code input and each other. They each get different highlight colors.
codepoints are replaced with escape codes. As demonstrated above, it allows one to identify the characters in a string, regardless of how they are displayed. Normal and error output are generally kept separate (on separate lines) from code input and each other. They each get different highlight colors.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1d49f11-5902-4a8e-ac84-8483f13d4dff
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,498
supabase-export-v2
dbe29b1d7e5dcf5a
Open a context menu by right-clicking in a window (Control-click on macOS). Context menus have the standard clipboard functions also on the Edit menu. Cut Copy selection into the system-wide clipboard; then delete the selection.
trusted_official_docs
CPython Docs
Open a context menu by right-clicking in a window (Control-click on macOS). Context menus have the standard clipboard functions also on the Edit menu. Cut Copy selection into the system-wide clipboard; then delete the selection.
Open a context menu by right-clicking in a window (Control-click on macOS). Context menus have the standard clipboard functions also on the Edit menu. Cut Copy selection into the system-wide clipboard; then delete the selection.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fcf83dfc-fdab-4b57-a66d-938ec65f55d3
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,602
supabase-export-v2
478fe4cc3708e7e4
input from and send output to the Shell window. The original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and ``sys.__stderr__`` are not touched, but may be ``None``. Sending print output from one process to a text widget in another is slower than printing to a system terminal in the same process. This has t...
trusted_official_docs
CPython Docs
input from and send output to the Shell window. The original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and ``sys.__stderr__`` are not touched, but may be ``None``. Sending print output from one process to a text widget in another is slower than printing to a system terminal in the same process. This has t...
input from and send output to the Shell window. The original values stored in ``sys.__stdin__``, ``sys.__stdout__``, and ``sys.__stderr__`` are not touched, but may be ``None``. Sending print output from one process to a text widget in another is slower than printing to a system terminal in the same process. This has t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fdfa5199-7b33-4810-829e-022f78c4e9b2
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,558
supabase-export-v2
8d5b3232f38029c0
* :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt. * :kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed.
trusted_official_docs
CPython Docs
* :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt. * :kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed.
* :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt. * :kbd:`Alt-p` and :kbd:`Alt-n` (:kbd:`C-p` and :kbd:`C-n` on macOS) retrieve to the current prompt the previous or next previously entered statement that matches anything already typed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe5d5698-0c62-4e36-8c9d-9ab142e31c7d
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,549
supabase-export-v2
247ac1d254fa472e
on, a single blank line will display. Clicking on a line in the context pane will move that line to the top of the editor. The text and background colors for the context pane can be configured under the Highlights tab in the Configure IDLE dialog.
trusted_official_docs
CPython Docs
on, a single blank line will display. Clicking on a line in the context pane will move that line to the top of the editor. The text and background colors for the context pane can be configured under the Highlights tab in the Configure IDLE dialog.
on, a single blank line will display. Clicking on a line in the context pane will move that line to the top of the editor. The text and background colors for the context pane can be configured under the Highlights tab in the Configure IDLE dialog.
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe963870-06b8-473b-bf1e-5b075dfc3368
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,588
supabase-export-v2
ceab29048a5ffb6c
If arguments are provided: - If ``-``, ``-c``, or ``-r`` is used, all arguments are placed in ``sys.argv[1:]``, and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or ``'-r'`` respectively. No editor window is opened, even if that is the default set in the *Options* dialog. - Otherwise, arguments are treated as files to b...
trusted_official_docs
CPython Docs
If arguments are provided: - If ``-``, ``-c``, or ``-r`` is used, all arguments are placed in ``sys.argv[1:]``, and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or ``'-r'`` respectively. No editor window is opened, even if that is the default set in the *Options* dialog. - Otherwise, arguments are treated as files to b...
If arguments are provided: - If ``-``, ``-c``, or ``-r`` is used, all arguments are placed in ``sys.argv[1:]``, and ``sys.argv[0]`` is set to ``''``, ``'-c'``, or ``'-r'`` respectively. No editor window is opened, even if that is the default set in the *Options* dialog. - Otherwise, arguments are treated as files to b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
feb34371-15ab-4dd2-9453-e784fd494b43
CPython Docs
file://datasets/cpython/Doc/library/idle.rst
unknown
d9a6f0a7-b1a4-48f2-b5b7-d815ab65b840
9,556
supabase-export-v2
76b0f209fd27ebb8
The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following: * :kbd:`C-c` attempts to interrupt statement execution (but may fail).
trusted_official_docs
CPython Docs
The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following: * :kbd:`C-c` attempts to interrupt statement execution (but may fail).
The editing features described in previous subsections work when entering code interactively. IDLE's Shell window also responds to the following: * :kbd:`C-c` attempts to interrupt statement execution (but may fail).
python, official-docs, cpython, P0
Local_Trusted_Corpus
03a1693b-14a0-4bf7-8eec-6fc7a61fdff7
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,662
supabase-export-v2
9d980867f5e966b6
.. function:: pack(format, v1, v2, ...) Return a bytes object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly.
trusted_official_docs
CPython Docs
.. function:: pack(format, v1, v2, ...) Return a bytes object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly.
.. function:: pack(format, v1, v2, ...) Return a bytes object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly.
python, official-docs, cpython, P0
Local_Trusted_Corpus
06b8b931-7ef9-41d1-856d-864598b0be05
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,699
supabase-export-v2
d82491a56984eeb2
(2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'. (3) To align the end of a structure to the alignment requirement of a particular type, end the format with the code for that type with a repeat count of zero. See :ref:`struct-examples`.
trusted_official_docs
CPython Docs
(2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'. (3) To align the end of a structure to the alignment requirement of a particular type, end the format with the code for that type with a repeat count of zero. See :ref:`struct-examples`.
(2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'. (3) To align the end of a structure to the alignment requirement of a particular type, end the format with the code for that type with a repeat count of zero. See :ref:`struct-examples`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
08150738-c0cb-4ae4-8d56-1d67c779ec14
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,752
supabase-export-v2
2ba1ffc74082be86
Native Formats ^^^^^^^^^^^^^^ When constructing format strings which mimic native layouts, the compiler and machine architecture determine byte ordering and padding. In such cases, the ``@`` format character should be used to specify native byte ordering and data sizes. Internal pad bytes are normally inserted automati...
trusted_official_docs
CPython Docs
Native Formats ^^^^^^^^^^^^^^ When constructing format strings which mimic native layouts, the compiler and machine architecture determine byte ordering and padding. In such cases, the ``@`` format character should be used to specify native byte ordering and data sizes. Internal pad bytes are normally inserted automati...
Native Formats ^^^^^^^^^^^^^^ When constructing format strings which mimic native layouts, the compiler and machine architecture determine byte ordering and padding. In such cases, the ``@`` format character should be used to specify native byte ordering and data sizes. Internal pad bytes are normally inserted automati...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a2a694d-d8aa-429f-a0c0-78433b1669e6
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,730
supabase-export-v2
f2a1069825c55c10
Examples ^^^^^^^^ .. note:: Native byte order examples (designated by the ``'@'`` format prefix or lack of any prefix character) may not match what the reader's machine produces as that depends on the platform and compiler.
trusted_official_docs
CPython Docs
Examples ^^^^^^^^ .. note:: Native byte order examples (designated by the ``'@'`` format prefix or lack of any prefix character) may not match what the reader's machine produces as that depends on the platform and compiler.
Examples ^^^^^^^^ .. note:: Native byte order examples (designated by the ``'@'`` format prefix or lack of any prefix character) may not match what the reader's machine produces as that depends on the platform and compiler.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0ab7ace4-9331-4b11-a2b9-fe34aa216689
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,764
supabase-export-v2
1bbfcef1c2651752
(executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit machine:: >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 12 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) False
trusted_official_docs
CPython Docs
(executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit machine:: >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 12 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) False
(executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit machine:: >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 12 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) False
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b6f5bcb-9aef-4c77-ad81-8d212cf60f73
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,749
supabase-export-v2
c28cba3071f87609
Applications ------------ Two main applications for the :mod:`!struct` module exist, data interchange between Python and C code within an application or another application compiled using the same compiler (:ref:`native formats<struct-native-formats>`), and data interchange between applications using agreed upon data l...
trusted_official_docs
CPython Docs
Applications ------------ Two main applications for the :mod:`!struct` module exist, data interchange between Python and C code within an application or another application compiled using the same compiler (:ref:`native formats<struct-native-formats>`), and data interchange between applications using agreed upon data l...
Applications ------------ Two main applications for the :mod:`!struct` module exist, data interchange between Python and C code within an application or another application compiled using the same compiler (:ref:`native formats<struct-native-formats>`), and data interchange between applications using agreed upon data l...
python, official-docs, cpython, P0
Local_Trusted_Corpus
14f370a4-9f6e-4b81-b39a-fec6ccf8be44
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,722
supabase-export-v2
7094803bc6aee5b2
When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (10) For the ``'F'`` and ``'D'`` format characters, the packed representation uses the IEEE 754 binary32 and binary64 format for components of the complex number, regardless of the floating-point format used by the platform. Note th...
trusted_official_docs
CPython Docs
When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (10) For the ``'F'`` and ``'D'`` format characters, the packed representation uses the IEEE 754 binary32 and binary64 format for components of the complex number, regardless of the floating-point format used by the platform. Note th...
When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (10) For the ``'F'`` and ``'D'`` format characters, the packed representation uses the IEEE 754 binary32 and binary64 format for components of the complex number, regardless of the floating-point format used by the platform. Note th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
183d29ed-5348-49ed-91c8-827e895b378c
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,724
supabase-export-v2
efef2a7e7719a497
A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``. Whitespace characters between formats are ignored; a count and its format must not contain whitespace though.
trusted_official_docs
CPython Docs
A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``. Whitespace characters between formats are ignored; a count and its format must not contain whitespace though.
A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``. Whitespace characters between formats are ignored; a count and its format must not contain whitespace though.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1d09fae5-8468-4bbc-8987-8d8b55377d6c
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,682
supabase-export-v2
da761d802a7cb9ae
in struct format strings single: < (less); in struct format strings single: > (greater); in struct format strings single: ! (exclamation); in struct format strings Alternatively, the first character of the format string can be used to indicate the byte order, size and alignment of the packed data, according to the foll...
trusted_official_docs
CPython Docs
in struct format strings single: < (less); in struct format strings single: > (greater); in struct format strings single: ! (exclamation); in struct format strings Alternatively, the first character of the format string can be used to indicate the byte order, size and alignment of the packed data, according to the foll...
in struct format strings single: < (less); in struct format strings single: > (greater); in struct format strings single: ! (exclamation); in struct format strings Alternatively, the first character of the format string can be used to indicate the byte order, size and alignment of the packed data, according to the foll...
python, official-docs, cpython, P0
Local_Trusted_Corpus
207e57a4-82f5-4fdc-a7bb-a02144dcb1ca
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,763
supabase-export-v2
6c7562e2d034c708
2, 3) == pack('<qqh', 1, 2, 3) True >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 24 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) True The above results (executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit m...
trusted_official_docs
CPython Docs
2, 3) == pack('<qqh', 1, 2, 3) True >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 24 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) True The above results (executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit m...
2, 3) == pack('<qqh', 1, 2, 3) True >>> calcsize('<qqh6x') 24 >>> calcsize('@llh0l') 24 >>> pack('@llh0l', 1, 2, 3) == pack('<qqh6x', 1, 2, 3) True The above results (executed on a 64-bit machine) aren't guaranteed to match when executed on different machines. For example, the examples below were executed on a 32-bit m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
25b5fb0f-827a-4ca1-82a0-4299bcc50491
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,655
supabase-export-v2
5eefc166dc317737
.. note:: When no prefix character is given, native mode is the default. It packs or unpacks data based on the platform and compiler on which the Python interpreter was built. The result of packing a given C struct includes pad bytes which maintain proper alignment for the C types involved; similarly, alignment is ...
trusted_official_docs
CPython Docs
.. note:: When no prefix character is given, native mode is the default. It packs or unpacks data based on the platform and compiler on which the Python interpreter was built. The result of packing a given C struct includes pad bytes which maintain proper alignment for the C types involved; similarly, alignment is ...
.. note:: When no prefix character is given, native mode is the default. It packs or unpacks data based on the platform and compiler on which the Python interpreter was built. The result of packing a given C struct includes pad bytes which maintain proper alignment for the C types involved; similarly, alignment is ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
28092588-f6e3-448e-92c1-d3976cfda4a8
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,695
supabase-export-v2
a7fd25e8dc7064f4
The form ``'!'`` represents the network byte order which is always big-endian as defined in `IETF RFC 1700 <IETF RFC 1700_>`_. There is no way to indicate non-native byte order (force byte-swapping); use the appropriate choice of ``'<'`` or ``'>'``.
trusted_official_docs
CPython Docs
The form ``'!'`` represents the network byte order which is always big-endian as defined in `IETF RFC 1700 <IETF RFC 1700_>`_. There is no way to indicate non-native byte order (force byte-swapping); use the appropriate choice of ``'<'`` or ``'>'``.
The form ``'!'`` represents the network byte order which is always big-endian as defined in `IETF RFC 1700 <IETF RFC 1700_>`_. There is no way to indicate non-native byte order (force byte-swapping); use the appropriate choice of ``'<'`` or ``'>'``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2b5fb5a7-550b-4d18-b9dd-9b8835a73039
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,720
supabase-export-v2
0671058cf7d37f05
``count`` bytes, but that the :class:`!bytes` object returned can never contain more than 255 bytes. When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (9) For the ``'s'`` format character, the count is interpreted as the length of the byte string, not a repeat count like for the oth...
trusted_official_docs
CPython Docs
``count`` bytes, but that the :class:`!bytes` object returned can never contain more than 255 bytes. When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (9) For the ``'s'`` format character, the count is interpreted as the length of the byte string, not a repeat count like for the oth...
``count`` bytes, but that the :class:`!bytes` object returned can never contain more than 255 bytes. When packing, arguments of types :class:`bytes` and :class:`bytearray` are accepted. (9) For the ``'s'`` format character, the count is interpreted as the length of the byte string, not a repeat count like for the oth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2d61da33-9498-4528-8a47-9b9a98224560
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,690
supabase-export-v2
056ab084e21d1d28
>>> import struct >>> struct.pack('>h', 1023) b'\x03\xff' >>> struct.pack('<h', 1023) b'\xff\x03' Native byte order is big-endian or little-endian, depending on the host system. For example, Intel x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byt...
trusted_official_docs
CPython Docs
>>> import struct >>> struct.pack('>h', 1023) b'\x03\xff' >>> struct.pack('<h', 1023) b'\xff\x03' Native byte order is big-endian or little-endian, depending on the host system. For example, Intel x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byt...
>>> import struct >>> struct.pack('>h', 1023) b'\x03\xff' >>> struct.pack('<h', 1023) b'\xff\x03' Native byte order is big-endian or little-endian, depending on the host system. For example, Intel x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byt...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3260f6ef-42d2-4ded-85b3-66a266b6f007
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,762
supabase-export-v2
30c010686aeea7c2
zero-repeat format character won't work. Instead, the user must explicitly add ``'x'`` pad bytes where needed. Revisiting the examples from the previous section, we have:: >>> calcsize('<qh6xq') 24 >>> pack('<qh6xq', 1, 2, 3) == pack('@lhl', 1, 2, 3) True >>> calcsize('@llh') 18 >>> pack('@llh', 1, 2, 3) == pack(...
trusted_official_docs
CPython Docs
zero-repeat format character won't work. Instead, the user must explicitly add ``'x'`` pad bytes where needed. Revisiting the examples from the previous section, we have:: >>> calcsize('<qh6xq') 24 >>> pack('<qh6xq', 1, 2, 3) == pack('@lhl', 1, 2, 3) True >>> calcsize('@llh') 18 >>> pack('@llh', 1, 2, 3) == pack(...
zero-repeat format character won't work. Instead, the user must explicitly add ``'x'`` pad bytes where needed. Revisiting the examples from the previous section, we have:: >>> calcsize('<qh6xq') 24 >>> pack('<qh6xq', 1, 2, 3) == pack('@lhl', 1, 2, 3) True >>> calcsize('@llh') 18 >>> pack('@llh', 1, 2, 3) == pack(...
python, official-docs, cpython, P0
Local_Trusted_Corpus
333719ff-1366-4b2e-a975-5a7cbcdc6702
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,656
supabase-export-v2
277bc740ef9b3d95
unpacking. In contrast, when communicating data between external sources, the programmer is responsible for defining byte ordering and padding between elements. See :ref:`struct-alignment` for details. Several :mod:`!struct` functions (and methods of :class:`Struct`) take a *buffer* argument. This refers to objects tha...
trusted_official_docs
CPython Docs
unpacking. In contrast, when communicating data between external sources, the programmer is responsible for defining byte ordering and padding between elements. See :ref:`struct-alignment` for details. Several :mod:`!struct` functions (and methods of :class:`Struct`) take a *buffer* argument. This refers to objects tha...
unpacking. In contrast, when communicating data between external sources, the programmer is responsible for defining byte ordering and padding between elements. See :ref:`struct-alignment` for details. Several :mod:`!struct` functions (and methods of :class:`Struct`) take a *buffer* argument. This refers to objects tha...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3de237af-8a98-43c1-b1f1-aed81187fb4d
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,739
supabase-export-v2
e9e51845073e3dc9
>>> record = b'raymond \x32\x12\x08\x01\x08' >>> name, serialnum, school, gradelevel = unpack('<10sHHb', record) >>> from collections import namedtuple >>> Student = namedtuple('Student', 'name serialnum school gradelevel') >>> Student._make(unpack('<10sHHb', record)) Student(name=b'raymond ', serialnum=4658, school...
trusted_official_docs
CPython Docs
>>> record = b'raymond \x32\x12\x08\x01\x08' >>> name, serialnum, school, gradelevel = unpack('<10sHHb', record) >>> from collections import namedtuple >>> Student = namedtuple('Student', 'name serialnum school gradelevel') >>> Student._make(unpack('<10sHHb', record)) Student(name=b'raymond ', serialnum=4658, school...
>>> record = b'raymond \x32\x12\x08\x01\x08' >>> name, serialnum, school, gradelevel = unpack('<10sHHb', record) >>> from collections import namedtuple >>> Student = namedtuple('Student', 'name serialnum school gradelevel') >>> Student._make(unpack('<10sHHb', record)) Student(name=b'raymond ', serialnum=4658, school...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40048a95-b2f3-4f1f-853b-fcbb693a7e84
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,681
supabase-export-v2
67e8694be8df79f7
exactly to the memory layout of the corresponding C struct. Whether to use native byte ordering and padding or standard formats depends on the application. .. index:: single: @ (at); in struct format strings single: = (equals); in struct format strings single: < (less); in struct format strings single: > (greater);...
trusted_official_docs
CPython Docs
exactly to the memory layout of the corresponding C struct. Whether to use native byte ordering and padding or standard formats depends on the application. .. index:: single: @ (at); in struct format strings single: = (equals); in struct format strings single: < (less); in struct format strings single: > (greater);...
exactly to the memory layout of the corresponding C struct. Whether to use native byte ordering and padding or standard formats depends on the application. .. index:: single: @ (at); in struct format strings single: = (equals); in struct format strings single: < (less); in struct format strings single: > (greater);...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44c27cb5-c94e-4f2f-a7ac-51b7d253e4c4
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,741
supabase-export-v2
1d0e36872655ce1e
after the packed ``'#'`` to align the following integer on a four-byte boundary. In this example, the output was produced on a little endian machine:: >>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic')...
trusted_official_docs
CPython Docs
after the packed ``'#'`` to align the following integer on a four-byte boundary. In this example, the output was produced on a little endian machine:: >>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic')...
after the packed ``'#'`` to align the following integer on a four-byte boundary. In this example, the output was produced on a little endian machine:: >>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic')...
python, official-docs, cpython, P0
Local_Trusted_Corpus
44cea1f6-8094-410c-880c-015b6c5cc78d
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,666
supabase-export-v2
369f67e223aeb532
.. function:: unpack(format, buffer) Unpack from the buffer *buffer* (presumably packed by ``pack(format, ...)``) according to the format string *format*. The result is a tuple even if it contains exactly one item. The buffer's size in bytes must match the size required by the format, as reflected by :func:`calcsize...
trusted_official_docs
CPython Docs
.. function:: unpack(format, buffer) Unpack from the buffer *buffer* (presumably packed by ``pack(format, ...)``) according to the format string *format*. The result is a tuple even if it contains exactly one item. The buffer's size in bytes must match the size required by the format, as reflected by :func:`calcsize...
.. function:: unpack(format, buffer) Unpack from the buffer *buffer* (presumably packed by ``pack(format, ...)``) according to the format string *format*. The result is a tuple even if it contains exactly one item. The buffer's size in bytes must match the size required by the format, as reflected by :func:`calcsize...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4627a384-2612-46d7-bea6-5f361b12ddb4
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,691
supabase-export-v2
56550b6f31df8c2e
x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byteorder` to check the endianness of your system. Native size and alignment are determined using the C compiler's ``sizeof`` expression. This is always combined with native byte order.
trusted_official_docs
CPython Docs
x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byteorder` to check the endianness of your system. Native size and alignment are determined using the C compiler's ``sizeof`` expression. This is always combined with native byte order.
x86, AMD64 (x86-64), and Apple M1 are little-endian; IBM z and many legacy architectures are big-endian. Use :data:`sys.byteorder` to check the endianness of your system. Native size and alignment are determined using the C compiler's ``sizeof`` expression. This is always combined with native byte order.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4a2c1fa9-3564-4f44-89f5-89b780187f88
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,761
supabase-export-v2
7011bbae79d5da2e
Standard Formats ^^^^^^^^^^^^^^^^ When exchanging data beyond your process such as networking or storage, be precise. Specify the exact byte order, size, and alignment. Do not assume they match the native order of a particular machine. For example, network byte order is big-endian, while many popular CPUs are little-en...
trusted_official_docs
CPython Docs
Standard Formats ^^^^^^^^^^^^^^^^ When exchanging data beyond your process such as networking or storage, be precise. Specify the exact byte order, size, and alignment. Do not assume they match the native order of a particular machine. For example, network byte order is big-endian, while many popular CPUs are little-en...
Standard Formats ^^^^^^^^^^^^^^^^ When exchanging data beyond your process such as networking or storage, be precise. Specify the exact byte order, size, and alignment. Do not assume they match the native order of a particular machine. For example, network byte order is big-endian, while many popular CPUs are little-en...
python, official-docs, cpython, P0
Local_Trusted_Corpus
50613ca1-1b4b-4568-9892-26d94b0d9d04
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,758
supabase-export-v2
bbdaff731e5fadc3
The ``'x'`` format code can be used to specify the repeat, but for native formats it is better to use a zero-repeat format like ``'0l'``. By default, native byte ordering and alignment is used, but it is better to be explicit and use the ``'@'`` prefix character.
trusted_official_docs
CPython Docs
The ``'x'`` format code can be used to specify the repeat, but for native formats it is better to use a zero-repeat format like ``'0l'``. By default, native byte ordering and alignment is used, but it is better to be explicit and use the ``'@'`` prefix character.
The ``'x'`` format code can be used to specify the repeat, but for native formats it is better to use a zero-repeat format like ``'0l'``. By default, native byte ordering and alignment is used, but it is better to be explicit and use the ``'@'`` prefix character.
python, official-docs, cpython, P0
Local_Trusted_Corpus
51226996-12e6-4817-bb2f-30fd4c787ad3
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,663
supabase-export-v2
2c739880a5d0c8d2
object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly. .. function:: pack_into(format, buffer, offset, v1, v2, ...)
trusted_official_docs
CPython Docs
object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly. .. function:: pack_into(format, buffer, offset, v1, v2, ...)
object containing the values *v1*, *v2*, ... packed according to the format string *format*. The arguments must match the values required by the format exactly. .. function:: pack_into(format, buffer, offset, v1, v2, ...)
python, official-docs, cpython, P0
Local_Trusted_Corpus
541582a1-9789-4b83-b08a-53184b4ce707
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,755
supabase-export-v2
a273b3f00ee3b06f
>>> calcsize('@lhl') 24 >>> calcsize('@llh') 18 Data is not padded to an 8-byte boundary at the end of the second format string without the use of extra padding. A zero-repeat format code solves that problem::
trusted_official_docs
CPython Docs
>>> calcsize('@lhl') 24 >>> calcsize('@llh') 18 Data is not padded to an 8-byte boundary at the end of the second format string without the use of extra padding. A zero-repeat format code solves that problem::
>>> calcsize('@lhl') 24 >>> calcsize('@llh') 18 Data is not padded to an 8-byte boundary at the end of the second format string without the use of extra padding. A zero-repeat format code solves that problem::
python, official-docs, cpython, P0
Local_Trusted_Corpus
57dbcb03-0523-4a0f-8bbc-3faab78ef0c2
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,726
supabase-export-v2
3aaca9c9189877e3
formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :exc:`struct.error` is raised. .. versionchanged:: 3.1 Previously, some of the integer formats wrapped out-of-range values and raised :exc:`DeprecationWarning` i...
trusted_official_docs
CPython Docs
formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :exc:`struct.error` is raised. .. versionchanged:: 3.1 Previously, some of the integer formats wrapped out-of-range values and raised :exc:`DeprecationWarning` i...
formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :exc:`struct.error` is raised. .. versionchanged:: 3.1 Previously, some of the integer formats wrapped out-of-range values and raised :exc:`DeprecationWarning` i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5d986142-cac1-4c67-a117-4d57772ee3cd
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,753
supabase-export-v2
c8a8d944e5eaf990
be needed at the end of a format string to round up to the correct byte boundary for proper alignment of consecutive chunks of data. Consider these two simple examples (on a 64-bit, little-endian machine)::
trusted_official_docs
CPython Docs
be needed at the end of a format string to round up to the correct byte boundary for proper alignment of consecutive chunks of data. Consider these two simple examples (on a 64-bit, little-endian machine)::
be needed at the end of a format string to round up to the correct byte boundary for proper alignment of consecutive chunks of data. Consider these two simple examples (on a 64-bit, little-endian machine)::
python, official-docs, cpython, P0
Local_Trusted_Corpus
5ef6934f-e967-4866-8828-1d4d16d9e8b5
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,717
supabase-export-v2
4eacb71962a63508
or big-endian ordering based on the host system. The struct module does not interpret this as native ordering, so the ``'P'`` format is not available. (6) The IEEE 754 binary16 "half precision" type was introduced in the 2008 revision of the `IEEE 754 standard <ieee 754 standard_>`_. It has a sign bit, a 5-bit expon...
trusted_official_docs
CPython Docs
or big-endian ordering based on the host system. The struct module does not interpret this as native ordering, so the ``'P'`` format is not available. (6) The IEEE 754 binary16 "half precision" type was introduced in the 2008 revision of the `IEEE 754 standard <ieee 754 standard_>`_. It has a sign bit, a 5-bit expon...
or big-endian ordering based on the host system. The struct module does not interpret this as native ordering, so the ``'P'`` format is not available. (6) The IEEE 754 binary16 "half precision" type was introduced in the 2008 revision of the `IEEE 754 standard <ieee 754 standard_>`_. It has a sign bit, a 5-bit expon...
python, official-docs, cpython, P0
Local_Trusted_Corpus
63d0d0b2-9d52-4c30-bde0-1e372aea06b2
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,723
supabase-export-v2
2e7d3e7662ad5746
in C. As specified in the C11 standard, each complex type is represented by a two-element C array containing, respectively, the real and imaginary parts. A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``.
trusted_official_docs
CPython Docs
in C. As specified in the C11 standard, each complex type is represented by a two-element C array containing, respectively, the real and imaginary parts. A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``.
in C. As specified in the C11 standard, each complex type is represented by a two-element C array containing, respectively, the real and imaginary parts. A format character may be preceded by an integral repeat count. For example, the format string ``'4h'`` means exactly the same as ``'hhhh'``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6474fc9a-234d-4385-b6ff-2401b59b7cd7
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,742
supabase-export-v2
4b116093af520153
>>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic') 5 The following format ``'llh0l'`` results in two pad bytes being added at the end, assuming the platform's longs are aligned on 4-byte boundaries::
trusted_official_docs
CPython Docs
>>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic') 5 The following format ``'llh0l'`` results in two pad bytes being added at the end, assuming the platform's longs are aligned on 4-byte boundaries::
>>> pack('@ci', b'#', 0x12131415) b'#\x00\x00\x00\x15\x14\x13\x12' >>> pack('@ic', 0x12131415, b'#') b'\x15\x14\x13\x12#' >>> calcsize('@ci') 8 >>> calcsize('@ic') 5 The following format ``'llh0l'`` results in two pad bytes being added at the end, assuming the platform's longs are aligned on 4-byte boundaries::
python, official-docs, cpython, P0
Local_Trusted_Corpus
670a6c4c-8d73-4c7d-b647-d3c5bd77fab9
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,725
supabase-export-v2
dea11cc12445ac86
Whitespace characters between formats are ignored; a count and its format must not contain whitespace though. When packing a value ``x`` using one of the integer formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :...
trusted_official_docs
CPython Docs
Whitespace characters between formats are ignored; a count and its format must not contain whitespace though. When packing a value ``x`` using one of the integer formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :...
Whitespace characters between formats are ignored; a count and its format must not contain whitespace though. When packing a value ``x`` using one of the integer formats (``'b'``, ``'B'``, ``'h'``, ``'H'``, ``'i'``, ``'I'``, ``'l'``, ``'L'``, ``'q'``, ``'Q'``), if ``x`` is outside the valid range for that format then :...
python, official-docs, cpython, P0
Local_Trusted_Corpus
69079eea-4f64-4176-a5e3-97ff92d53717
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,712
supabase-export-v2
40f75c33cd62652f
The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type defined by C standards since C99. In standard mode, it is represented by one byte. (2) When attempting to pack a non-integer using any of the integer conversion codes, if the non-integer has a :meth:`~object.__index__` method then that method is cal...
trusted_official_docs
CPython Docs
The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type defined by C standards since C99. In standard mode, it is represented by one byte. (2) When attempting to pack a non-integer using any of the integer conversion codes, if the non-integer has a :meth:`~object.__index__` method then that method is cal...
The ``'?'`` conversion code corresponds to the :c:expr:`_Bool` type defined by C standards since C99. In standard mode, it is represented by one byte. (2) When attempting to pack a non-integer using any of the integer conversion codes, if the non-integer has a :meth:`~object.__index__` method then that method is cal...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6927dd49-9e5c-4b7a-98b5-2a1b1af95ec1
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,693
supabase-export-v2
895ef4b59cf1f0e8
Standard size depends only on the format character; see the table in the :ref:`format-characters` section. Note the difference between ``'@'`` and ``'='``: both use native byte order, but the size and alignment of the latter is standardized.
trusted_official_docs
CPython Docs
Standard size depends only on the format character; see the table in the :ref:`format-characters` section. Note the difference between ``'@'`` and ``'='``: both use native byte order, but the size and alignment of the latter is standardized.
Standard size depends only on the format character; see the table in the :ref:`format-characters` section. Note the difference between ``'@'`` and ``'='``: both use native byte order, but the size and alignment of the latter is standardized.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6a6ff80f-fed3-4271-ab86-0bb8bd7021b9
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,664
supabase-export-v2
4544f5ea1dc97d72
.. function:: pack_into(format, buffer, offset, v1, v2, ...) Pack the values *v1*, *v2*, ... according to the format string *format* and write the packed bytes into the writable buffer *buffer* starting at position *offset*. Note that *offset* is a required argument.
trusted_official_docs
CPython Docs
.. function:: pack_into(format, buffer, offset, v1, v2, ...) Pack the values *v1*, *v2*, ... according to the format string *format* and write the packed bytes into the writable buffer *buffer* starting at position *offset*. Note that *offset* is a required argument.
.. function:: pack_into(format, buffer, offset, v1, v2, ...) Pack the values *v1*, *v2*, ... according to the format string *format* and write the packed bytes into the writable buffer *buffer* starting at position *offset*. Note that *offset* is a required argument.
python, official-docs, cpython, P0
Local_Trusted_Corpus
71fa1448-f598-44e9-9eee-8f6e3f07e07c
CPython Docs
file://datasets/cpython/Doc/library/struct.rst
unknown
2b254f62-3731-4466-bd26-d385fbd9a112
9,698
supabase-export-v2
99e6f0ac857e9b3c
(1) Padding is only automatically added between successive structure members. No padding is added at the beginning or the end of the encoded struct. (2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'.
trusted_official_docs
CPython Docs
(1) Padding is only automatically added between successive structure members. No padding is added at the beginning or the end of the encoded struct. (2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'.
(1) Padding is only automatically added between successive structure members. No padding is added at the beginning or the end of the encoded struct. (2) No padding is added when using non-native size and alignment, e.g. with '<', '>', '=', and '!'.
python, official-docs, cpython, P0
Local_Trusted_Corpus