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
b5664508-b113-43d6-9104-f8d8110fe9b5
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,135
supabase-export-v2
9a724552624dcf9f
short) let you include the value of Python expressions inside a string by prefixing the string with ``f`` or ``F`` and writing expressions as ``{expression}``. An optional format specifier can follow the expression. This allows greater control over how the value is formatted. The following example rounds pi to three pl...
trusted_official_docs
CPython Docs
short) let you include the value of Python expressions inside a string by prefixing the string with ``f`` or ``F`` and writing expressions as ``{expression}``. An optional format specifier can follow the expression. This allows greater control over how the value is formatted. The following example rounds pi to three pl...
short) let you include the value of Python expressions inside a string by prefixing the string with ``f`` or ``F`` and writing expressions as ``{expression}``. An optional format specifier can follow the expression. This allows greater control over how the value is formatted. The following example rounds pi to three pl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b65150d5-7f5a-4526-94c7-67906e00f917
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,168
supabase-export-v2
3769a66279463b7a
than the alternative, which would be lying about a value. (If you really want truncation you can always add a slice operation, as in ``x.ljust(n)[:n]``.) There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs::
trusted_official_docs
CPython Docs
than the alternative, which would be lying about a value. (If you really want truncation you can always add a slice operation, as in ``x.ljust(n)[:n]``.) There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs::
than the alternative, which would be lying about a value. (If you really want truncation you can always add a slice operation, as in ``x.ljust(n)[:n]``.) There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs::
python, official-docs, cpython, P0
Local_Trusted_Corpus
b969065d-86da-4bd2-972f-8f449de83280
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,121
supabase-export-v2
f92630cb33b768c3
>>> year = 2016 >>> event = 'Referendum' >>> f'Results of the {year} {event}' 'Results of the 2016 Referendum' * The :meth:`str.format` method of strings requires more manual effort. You'll still use ``{`` and ``}`` to mark where a variable will be substituted and can provide detailed formatting directives, but you'...
trusted_official_docs
CPython Docs
>>> year = 2016 >>> event = 'Referendum' >>> f'Results of the {year} {event}' 'Results of the 2016 Referendum' * The :meth:`str.format` method of strings requires more manual effort. You'll still use ``{`` and ``}`` to mark where a variable will be substituted and can provide detailed formatting directives, but you'...
>>> year = 2016 >>> event = 'Referendum' >>> f'Results of the {year} {event}' 'Results of the 2016 Referendum' * The :meth:`str.format` method of strings requires more manual effort. You'll still use ``{`` and ``}`` to mark where a variable will be substituted and can provide detailed formatting directives, but you'...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9cc7f8b-3a39-4d4f-9ab1-9c34a63acade
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,124
supabase-export-v2
055ee61630e9dead
>>> yes_votes = 42_572_654 >>> total_votes = 85_705_149 >>> percentage = yes_votes / total_votes >>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage) ' 42572654 YES votes 49.67%' Notice how the ``yes_votes`` are padded with spaces and a negative sign only for negative numbers. The example also prints ``percentag...
trusted_official_docs
CPython Docs
>>> yes_votes = 42_572_654 >>> total_votes = 85_705_149 >>> percentage = yes_votes / total_votes >>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage) ' 42572654 YES votes 49.67%' Notice how the ``yes_votes`` are padded with spaces and a negative sign only for negative numbers. The example also prints ``percentag...
>>> yes_votes = 42_572_654 >>> total_votes = 85_705_149 >>> percentage = yes_votes / total_votes >>> '{:-9} YES votes {:2.2%}'.format(yes_votes, percentage) ' 42572654 YES votes 49.67%' Notice how the ``yes_votes`` are padded with spaces and a negative sign only for negative numbers. The example also prints ``percentag...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ba8caa73-36f2-4b0a-9e31-07ebf36e8d66
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,138
supabase-export-v2
3deeb7a8e5456c8e
integer after the ``':'`` will cause that field to be a minimum number of characters wide. This is useful for making columns line up. :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678} >>> for name, phone in table.items(): ... print(f'{name:10} ==> {phone:10d}') ... Sjoerd ==> 4127 Jack ==> 4098 Dcab ==> ...
trusted_official_docs
CPython Docs
integer after the ``':'`` will cause that field to be a minimum number of characters wide. This is useful for making columns line up. :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678} >>> for name, phone in table.items(): ... print(f'{name:10} ==> {phone:10d}') ... Sjoerd ==> 4127 Jack ==> 4098 Dcab ==> ...
integer after the ``':'`` will cause that field to be a minimum number of characters wide. This is useful for making columns line up. :: >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 7678} >>> for name, phone in table.items(): ... print(f'{name:10} ==> {phone:10d}') ... Sjoerd ==> 4127 Jack ==> 4098 Dcab ==> ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bad8af8f-bc5d-4bc1-b0e4-96d0364401eb
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,208
supabase-export-v2
05b29f433212c6ac
the file represented as number of bytes from the beginning of the file when in binary mode and an opaque number when in text mode. To change the file object's position, use ``f.seek(offset, whence)``. The position is computed from adding *offset* to a reference point; the reference point is selected by the *whence* arg...
trusted_official_docs
CPython Docs
the file represented as number of bytes from the beginning of the file when in binary mode and an opaque number when in text mode. To change the file object's position, use ``f.seek(offset, whence)``. The position is computed from adding *offset* to a reference point; the reference point is selected by the *whence* arg...
the file represented as number of bytes from the beginning of the file when in binary mode and an opaque number when in text mode. To change the file object's position, use ``f.seek(offset, whence)``. The position is computed from adding *offset* to a reference point; the reference point is selected by the *whence* arg...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bf3c78ae-c054-4f12-a529-c77055094380
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,188
supabase-export-v2
d3b26e5f0cc4ad82
>>> # We can check that the file has been automatically closed. >>> f.closed True If you're not using the :keyword:`with` keyword, then you should call ``f.close()`` to close the file and immediately free up any system resources used by it.
trusted_official_docs
CPython Docs
>>> # We can check that the file has been automatically closed. >>> f.closed True If you're not using the :keyword:`with` keyword, then you should call ``f.close()`` to close the file and immediately free up any system resources used by it.
>>> # We can check that the file has been automatically closed. >>> f.closed True If you're not using the :keyword:`with` keyword, then you should call ``f.close()`` to close the file and immediately free up any system resources used by it.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c4456ee3-cd3e-44e2-ac5c-b49a77aa75b3
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,166
supabase-export-v2
1bfa0142d6330858
8 3 9 27 4 16 64 5 25 125 6 36 216 7 49 343 8 64 512 9 81 729 10 100 1000 (Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.)
trusted_official_docs
CPython Docs
8 3 9 27 4 16 64 5 25 125 6 36 216 7 49 343 8 64 512 9 81 729 10 100 1000 (Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.)
8 3 9 27 4 16 64 5 25 125 6 36 216 7 49 343 8 64 512 9 81 729 10 100 1000 (Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5ad90d3-6829-4057-b5b2-60a0776b87ec
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,205
supabase-export-v2
9cdaa5a3f48d930c
>>> f.write('This is a test\n') 15 Other types of objects need to be converted -- either to a string (in text mode) or a bytes object (in binary mode) -- before writing them::
trusted_official_docs
CPython Docs
>>> f.write('This is a test\n') 15 Other types of objects need to be converted -- either to a string (in text mode) or a bytes object (in binary mode) -- before writing them::
>>> f.write('This is a test\n') 15 Other types of objects need to be converted -- either to a string (in text mode) or a bytes object (in binary mode) -- before writing them::
python, official-docs, cpython, P0
Local_Trusted_Corpus
c7491063-038b-4f61-95a9-26581541eeed
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,159
supabase-export-v2
0a674962706a812e
This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variables:: >>> table = {k: str(v) for k, v in vars().items()} >>> message = " ".join([f'{k}: ' + '{' + k +'};' for k in table.keys()]) >>> print(message.format(**table)) __name__: __ma...
trusted_official_docs
CPython Docs
This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variables:: >>> table = {k: str(v) for k, v in vars().items()} >>> message = " ".join([f'{k}: ' + '{' + k +'};' for k in table.keys()]) >>> print(message.format(**table)) __name__: __ma...
This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variables:: >>> table = {k: str(v) for k, v in vars().items()} >>> message = " ".join([f'{k}: ' + '{' + k +'};' for k in table.keys()]) >>> print(message.format(**table)) __name__: __ma...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c840593d-64fe-44d6-8d90-6ad99832b890
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,169
supabase-export-v2
9027e0e812a4f1cb
There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs:: >>> '12'.zfill(5) '00012' >>> '-3.14'.zfill(7) '-003.14' >>> '3.14159265359'.zfill(5) '3.14159265359'
trusted_official_docs
CPython Docs
There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs:: >>> '12'.zfill(5) '00012' >>> '-3.14'.zfill(7) '-003.14' >>> '3.14159265359'.zfill(5) '3.14159265359'
There is another method, :meth:`str.zfill`, which pads a numeric string on the left with zeros. It understands about plus and minus signs:: >>> '12'.zfill(5) '00012' >>> '-3.14'.zfill(7) '-003.14' >>> '3.14159265359'.zfill(5) '3.14159265359'
python, official-docs, cpython, P0
Local_Trusted_Corpus
ccfb84d7-5ba4-45f0-8421-ee923b28f71c
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,186
supabase-export-v2
4c7a8aaf29abcff4
its suite finishes, even if an exception is raised at some point. Using :keyword:`!with` is also much shorter than writing equivalent :keyword:`try`\ -\ :keyword:`finally` blocks:: >>> with open('workfile', encoding="utf-8") as f: ... read_data = f.read()
trusted_official_docs
CPython Docs
its suite finishes, even if an exception is raised at some point. Using :keyword:`!with` is also much shorter than writing equivalent :keyword:`try`\ -\ :keyword:`finally` blocks:: >>> with open('workfile', encoding="utf-8") as f: ... read_data = f.read()
its suite finishes, even if an exception is raised at some point. Using :keyword:`!with` is also much shorter than writing equivalent :keyword:`try`\ -\ :keyword:`finally` blocks:: >>> with open('workfile', encoding="utf-8") as f: ... read_data = f.read()
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9e00db4-5eb9-44f3-92a9-7e0d2e54ddaa
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,158
supabase-export-v2
5a10c1ad6825d36c
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678 This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variable...
trusted_official_docs
CPython Docs
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678 This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variable...
>>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678} >>> print('Jack: {Jack:d}; Sjoerd: {Sjoerd:d}; Dcab: {Dcab:d}'.format(**table)) Jack: 4098; Sjoerd: 4127; Dcab: 8637678 This is particularly useful in combination with the built-in function :func:`vars`, which returns a dictionary containing all local variable...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e2a09026-d67d-44d3-be3f-8c4e4cb6449b
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,197
supabase-export-v2
8deb8e91009be637
bytes (in binary mode) are read and returned. If the end of the file has been reached, ``f.read()`` will return an empty string (``''``). :: >>> f.read() 'This is the entire file.\n' >>> f.read() ''
trusted_official_docs
CPython Docs
bytes (in binary mode) are read and returned. If the end of the file has been reached, ``f.read()`` will return an empty string (``''``). :: >>> f.read() 'This is the entire file.\n' >>> f.read() ''
bytes (in binary mode) are read and returned. If the end of the file has been reached, ``f.read()`` will return an empty string (``''``). :: >>> f.read() 'This is the entire file.\n' >>> f.read() ''
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4be0ef9-3216-4bda-a60d-4f253f8147e3
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,218
supabase-export-v2
9eb19609469da802
commonly used by modern applications to allow for data exchange. Many programmers are already familiar with it, which makes it a good choice for interoperability. If you have an object ``x``, you can view its JSON string representation with a simple line of code::
trusted_official_docs
CPython Docs
commonly used by modern applications to allow for data exchange. Many programmers are already familiar with it, which makes it a good choice for interoperability. If you have an object ``x``, you can view its JSON string representation with a simple line of code::
commonly used by modern applications to allow for data exchange. Many programmers are already familiar with it, which makes it a good choice for interoperability. If you have an object ``x``, you can view its JSON string representation with a simple line of code::
python, official-docs, cpython, P0
Local_Trusted_Corpus
e758a4e0-cc64-4395-93a3-4a40ead65c39
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,220
supabase-export-v2
062151c16f49603b
>>> import json >>> x = [1, 'simple', 'list'] >>> json.dumps(x) '[1, "simple", "list"]' Another variant of the :func:`~json.dumps` function, called :func:`~json.dump`, simply serializes the object to a :term:`text file`. So if ``f`` is a :term:`text file` object opened for writing, we can do this::
trusted_official_docs
CPython Docs
>>> import json >>> x = [1, 'simple', 'list'] >>> json.dumps(x) '[1, "simple", "list"]' Another variant of the :func:`~json.dumps` function, called :func:`~json.dump`, simply serializes the object to a :term:`text file`. So if ``f`` is a :term:`text file` object opened for writing, we can do this::
>>> import json >>> x = [1, 'simple', 'list'] >>> json.dumps(x) '[1, "simple", "list"]' Another variant of the :func:`~json.dumps` function, called :func:`~json.dump`, simply serializes the object to a :term:`text file`. So if ``f`` is a :term:`text file` object opened for writing, we can do this::
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea650f7b-4255-45fe-89d7-c7d77a773af3
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,127
supabase-export-v2
3c95d5b14a932685
just want a quick display of some variables for debugging purposes, you can convert any value to a string with the :func:`repr` or :func:`str` functions. The :func:`str` function is meant to return representations of values which are fairly human-readable, while :func:`repr` is meant to generate representations which c...
trusted_official_docs
CPython Docs
just want a quick display of some variables for debugging purposes, you can convert any value to a string with the :func:`repr` or :func:`str` functions. The :func:`str` function is meant to return representations of values which are fairly human-readable, while :func:`repr` is meant to generate representations which c...
just want a quick display of some variables for debugging purposes, you can convert any value to a string with the :func:`repr` or :func:`str` functions. The :func:`str` function is meant to return representations of values which are fairly human-readable, while :func:`repr` is meant to generate representations which c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea7cb964-1810-44a5-8457-2c3912cfa37c
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,183
supabase-export-v2
f09134b09bf2a793
added to the end. ``'r+'`` opens the file for both reading and writing. The *mode* argument is optional; ``'r'`` will be assumed if it's omitted. Normally, files are opened in :dfn:`text mode`, that means, you read and write strings from and to the file, which are encoded in a specific *encoding*. If *encoding* is not ...
trusted_official_docs
CPython Docs
added to the end. ``'r+'`` opens the file for both reading and writing. The *mode* argument is optional; ``'r'`` will be assumed if it's omitted. Normally, files are opened in :dfn:`text mode`, that means, you read and write strings from and to the file, which are encoded in a specific *encoding*. If *encoding* is not ...
added to the end. ``'r+'`` opens the file for both reading and writing. The *mode* argument is optional; ``'r'`` will be assumed if it's omitted. Normally, files are opened in :dfn:`text mode`, that means, you read and write strings from and to the file, which are encoded in a specific *encoding*. If *encoding* is not ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ea9aaa2f-5c38-43c2-8ce7-147174d08885
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,182
supabase-export-v2
1e1f98fd4081a036
>>> print(f) <open file 'workfile', mode 'w' at 80a0960> The first argument is a string containing the filename. The second argument is another string containing a few characters describing the way in which the file will be used. *mode* can be ``'r'`` when the file will only be read, ``'w'`` for only writing (an existi...
trusted_official_docs
CPython Docs
>>> print(f) <open file 'workfile', mode 'w' at 80a0960> The first argument is a string containing the filename. The second argument is another string containing a few characters describing the way in which the file will be used. *mode* can be ``'r'`` when the file will only be read, ``'w'`` for only writing (an existi...
>>> print(f) <open file 'workfile', mode 'w' at 80a0960> The first argument is a string containing the filename. The second argument is another string containing a few characters describing the way in which the file will be used. *mode* can be ``'r'`` when the file will only be read, ``'w'`` for only writing (an existi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f0b1e502-7a35-4c11-b19b-7b8a23aee5d9
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,199
supabase-export-v2
a99f40f439e858b1
string, the end of the file has been reached, while a blank line is represented by ``'\n'``, a string containing only a single newline. :: >>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() ''
trusted_official_docs
CPython Docs
string, the end of the file has been reached, while a blank line is represented by ``'\n'``, a string containing only a single newline. :: >>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() ''
string, the end of the file has been reached, while a blank line is represented by ``'\n'``, a string containing only a single newline. :: >>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() ''
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1fffbe0-b31e-455a-8f9f-fa4099a9ea7e
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,200
supabase-export-v2
e517fc25d801dd0f
>>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() '' For reading lines from a file, you can loop over the file object. This is memory efficient, fast, and leads to simple code::
trusted_official_docs
CPython Docs
>>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() '' For reading lines from a file, you can loop over the file object. This is memory efficient, fast, and leads to simple code::
>>> f.readline() 'This is the first line of the file.\n' >>> f.readline() 'Second line of the file\n' >>> f.readline() '' For reading lines from a file, you can loop over the file object. This is memory efficient, fast, and leads to simple code::
python, official-docs, cpython, P0
Local_Trusted_Corpus
f431866e-aecc-4100-9ed3-4e3732d2b5b3
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,154
supabase-export-v2
0b70cd537251e312
>>> print('The story of {0}, {1}, and {other}.'.format('Bill', 'Manfred', ... other='Georg')) The story of Bill, Manfred, and Georg. If you have a really long format string that you don't want to split up, it would be nice if you could reference the variables to be formatted by name instead of by position. This can be ...
trusted_official_docs
CPython Docs
>>> print('The story of {0}, {1}, and {other}.'.format('Bill', 'Manfred', ... other='Georg')) The story of Bill, Manfred, and Georg. If you have a really long format string that you don't want to split up, it would be nice if you could reference the variables to be formatted by name instead of by position. This can be ...
>>> print('The story of {0}, {1}, and {other}.'.format('Bill', 'Manfred', ... other='Georg')) The story of Bill, Manfred, and Georg. If you have a really long format string that you don't want to split up, it would be nice if you could reference the variables to be formatted by name instead of by position. This can be ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f6fc3f13-d8ab-4f60-ba93-72bcada30fcf
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,117
supabase-export-v2
ae12f21b53e74da0
using the :meth:`~io.TextIOBase.write` method of file objects; the standard output file can be referenced as ``sys.stdout``. See the Library Reference for more information on this.) Often you'll want more control over the formatting of your output than simply printing space-separated values. There are several ways to f...
trusted_official_docs
CPython Docs
using the :meth:`~io.TextIOBase.write` method of file objects; the standard output file can be referenced as ``sys.stdout``. See the Library Reference for more information on this.) Often you'll want more control over the formatting of your output than simply printing space-separated values. There are several ways to f...
using the :meth:`~io.TextIOBase.write` method of file objects; the standard output file can be referenced as ``sys.stdout``. See the Library Reference for more information on this.) Often you'll want more control over the formatting of your output than simply printing space-separated values. There are several ways to f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe615fa0-98fb-47a7-ab85-a1b3c77d8b77
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,171
supabase-export-v2
8b23dc59c8ba8035
Old string formatting --------------------- The % operator (modulo) can also be used for string formatting. Given ``format % values`` (where *format* is a string), ``%`` conversion specifications in *format* are replaced with zero or more elements of *values*. This operation is commonly known as string interpolation. F...
trusted_official_docs
CPython Docs
Old string formatting --------------------- The % operator (modulo) can also be used for string formatting. Given ``format % values`` (where *format* is a string), ``%`` conversion specifications in *format* are replaced with zero or more elements of *values*. This operation is commonly known as string interpolation. F...
Old string formatting --------------------- The % operator (modulo) can also be used for string formatting. Given ``format % values`` (where *format* is a string), ``%`` conversion specifications in *format* are replaced with zero or more elements of *values*. This operation is commonly known as string interpolation. F...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe90591f-9465-475a-8509-79a09040f371
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,167
supabase-export-v2
90e1ff0be0f28cae
(Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.) The :meth:`str.rjust` method of string objects right-justifies a string in a field of a given width by padding it with spaces on the left. There are similar methods :meth:`str.ljust` and ...
trusted_official_docs
CPython Docs
(Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.) The :meth:`str.rjust` method of string objects right-justifies a string in a field of a given width by padding it with spaces on the left. There are similar methods :meth:`str.ljust` and ...
(Note that the one space between each column was added by the way :func:`print` works: it always adds spaces between its arguments.) The :meth:`str.rjust` method of string objects right-justifies a string in a field of a given width by padding it with spaces on the left. There are similar methods :meth:`str.ljust` and ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fed3aec1-ed5b-4d18-ae47-6d8880379870
CPython Docs
file://datasets/cpython/Doc/tutorial/inputoutput.rst
unknown
7b3a4c1f-2443-4c0c-bdfd-60ba87d122ae
54,198
supabase-export-v2
29578b44d7a34134
>>> f.read() 'This is the entire file.\n' >>> f.read() '' ``f.readline()`` reads a single line from the file; a newline character (``\n``) is left at the end of the string, and is only omitted on the last line of the file if the file doesn't end in a newline. This makes the return value unambiguous; if ``f.readline()``...
trusted_official_docs
CPython Docs
>>> f.read() 'This is the entire file.\n' >>> f.read() '' ``f.readline()`` reads a single line from the file; a newline character (``\n``) is left at the end of the string, and is only omitted on the last line of the file if the file doesn't end in a newline. This makes the return value unambiguous; if ``f.readline()``...
>>> f.read() 'This is the entire file.\n' >>> f.read() '' ``f.readline()`` reads a single line from the file; a newline character (``\n``) is left at the end of the string, and is only omitted on the last line of the file if the file doesn't end in a newline. This makes the return value unambiguous; if ``f.readline()``...
python, official-docs, cpython, P0
Local_Trusted_Corpus
159f92df-4849-4a43-a225-78d7c71b6793
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,240
supabase-export-v2
d44fe170a515f7a8
* https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings. * https://scipy.org: The Scientific Python project includes modules for fast array computations and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, ...
trusted_official_docs
CPython Docs
* https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings. * https://scipy.org: The Scientific Python project includes modules for fast array computations and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, ...
* https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings. * https://scipy.org: The Scientific Python project includes modules for fast array computations and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4807fab5-5be2-4205-a27c-4084e881fdb6
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,238
supabase-export-v2
ca10188da8635e09
of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find it. * https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a sizable collection of code examples, larger modules, and useful scripts. Particularly notabl...
trusted_official_docs
CPython Docs
of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find it. * https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a sizable collection of code examples, larger modules, and useful scripts. Particularly notabl...
of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find it. * https://code.activestate.com/recipes/langs/python/: The Python Cookbook is a sizable collection of code examples, larger modules, and useful scripts. Particularly notabl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ee691ed-2245-4eb8-a51e-7dccb4ddb41a
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,232
supabase-export-v2
53f6c1ff043cf1bf
generate random numbers, parse command-line options, compress data, and many other tasks. Skimming through the Library Reference will give you an idea of what's available. * :ref:`installing-index` explains how to install additional modules written by other Python users.
trusted_official_docs
CPython Docs
generate random numbers, parse command-line options, compress data, and many other tasks. Skimming through the Library Reference will give you an idea of what's available. * :ref:`installing-index` explains how to install additional modules written by other Python users.
generate random numbers, parse command-line options, compress data, and many other tasks. Skimming through the Library Reference will give you an idea of what's available. * :ref:`installing-index` explains how to install additional modules written by other Python users.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9f5536e9-6547-4048-9515-688235c06e58
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,239
supabase-export-v2
6eefe7b135d2e2a0
of code examples, larger modules, and useful scripts. Particularly notable contributions are collected in a book also titled Python Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.) * https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings.
trusted_official_docs
CPython Docs
of code examples, larger modules, and useful scripts. Particularly notable contributions are collected in a book also titled Python Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.) * https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings.
of code examples, larger modules, and useful scripts. Particularly notable contributions are collected in a book also titled Python Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.) * https://pyvideo.org collects links to Python-related videos from conferences and user-group meetings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8542c8f-0ac0-4b94-880d-75dea97b9fea
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,231
supabase-export-v2
fe8370693a53c9bf
* :ref:`library-index`: You should browse through this manual, which gives complete (though terse) reference material about types, functions, and the modules in the standard library. The standard Python distribution includes a *lot* of additional code. There are modules to read Unix mailboxes, retrieve documents via ...
trusted_official_docs
CPython Docs
* :ref:`library-index`: You should browse through this manual, which gives complete (though terse) reference material about types, functions, and the modules in the standard library. The standard Python distribution includes a *lot* of additional code. There are modules to read Unix mailboxes, retrieve documents via ...
* :ref:`library-index`: You should browse through this manual, which gives complete (though terse) reference material about types, functions, and the modules in the standard library. The standard Python distribution includes a *lot* of additional code. There are modules to read Unix mailboxes, retrieve documents via ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bab70b99-aff0-497f-8bc1-1e52ebe9969e
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,242
supabase-export-v2
94c0be6afd0e584d
There are hundreds of postings a day, asking (and answering) questions, suggesting new features, and announcing new modules. Mailing list archives are available at https://mail.python.org/pipermail/. Before posting, be sure to check the list of :ref:`Frequently Asked Questions <faq-index>` (also called the FAQ). The FA...
trusted_official_docs
CPython Docs
There are hundreds of postings a day, asking (and answering) questions, suggesting new features, and announcing new modules. Mailing list archives are available at https://mail.python.org/pipermail/. Before posting, be sure to check the list of :ref:`Frequently Asked Questions <faq-index>` (also called the FAQ). The FA...
There are hundreds of postings a day, asking (and answering) questions, suggesting new features, and announcing new modules. Mailing list archives are available at https://mail.python.org/pipermail/. Before posting, be sure to check the list of :ref:`Frequently Asked Questions <faq-index>` (also called the FAQ). The FA...
python, official-docs, cpython, P0
Local_Trusted_Corpus
baff1c28-58ac-4618-bcd0-076cb8a1f1c0
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,237
supabase-export-v2
4207c9909f9114d4
* https://docs.python.org: Fast access to Python's documentation. * https://pypi.org: The Python Package Index, previously also nicknamed the Cheese Shop [#]_, is an index of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find i...
trusted_official_docs
CPython Docs
* https://docs.python.org: Fast access to Python's documentation. * https://pypi.org: The Python Package Index, previously also nicknamed the Cheese Shop [#]_, is an index of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find i...
* https://docs.python.org: Fast access to Python's documentation. * https://pypi.org: The Python Package Index, previously also nicknamed the Cheese Shop [#]_, is an index of user-created Python modules that are available for download. Once you begin releasing code, you can register it here so that others can find i...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cecddfdf-f15b-4672-85c7-38e0ab9f3ee1
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,228
supabase-export-v2
ca1642d2329dea7a
********* What Now? ********* Reading this tutorial has probably reinforced your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more?
trusted_official_docs
CPython Docs
********* What Now? ********* Reading this tutorial has probably reinforced your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more?
********* What Now? ********* Reading this tutorial has probably reinforced your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more?
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4f0d4cd-65a8-4407-a628-ac9c4e764d97
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,229
supabase-export-v2
15eb103291996031
your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more? This tutorial is part of Python's documentation set. Some other documents in the set are:
trusted_official_docs
CPython Docs
your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more? This tutorial is part of Python's documentation set. Some other documents in the set are:
your interest in using Python --- you should be eager to apply Python to solving your real-world problems. Where should you go to learn more? This tutorial is part of Python's documentation set. Some other documents in the set are:
python, official-docs, cpython, P0
Local_Trusted_Corpus
dba12670-0d02-4eaa-928a-50045bdf6699
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,241
supabase-export-v2
6462cd17b437cf7e
and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, random number distributions, statistical analysis and the like. For Python-related questions and problem reports, you can post to the newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing ...
trusted_official_docs
CPython Docs
and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, random number distributions, statistical analysis and the like. For Python-related questions and problem reports, you can post to the newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing ...
and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers, random number distributions, statistical analysis and the like. For Python-related questions and problem reports, you can post to the newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1ce6cde-4d68-43e4-9b7f-095b1b59ae99
CPython Docs
file://datasets/cpython/Doc/tutorial/whatnow.rst
unknown
24cab09f-a451-4060-a669-c5f874ebbb19
54,233
supabase-export-v2
a4d8e22829c85226
* :ref:`installing-index` explains how to install additional modules written by other Python users. * :ref:`reference-index`: A detailed explanation of Python's syntax and semantics. It's heavy reading, but is useful as a complete guide to the language itself.
trusted_official_docs
CPython Docs
* :ref:`installing-index` explains how to install additional modules written by other Python users. * :ref:`reference-index`: A detailed explanation of Python's syntax and semantics. It's heavy reading, but is useful as a complete guide to the language itself.
* :ref:`installing-index` explains how to install additional modules written by other Python users. * :ref:`reference-index`: A detailed explanation of Python's syntax and semantics. It's heavy reading, but is useful as a complete guide to the language itself.
python, official-docs, cpython, P0
Local_Trusted_Corpus
00b91f3c-14bf-4943-b5b8-a535d20fa403
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,254
supabase-export-v2
525136c38c5c5030
of this manually, read on. You can use the :source:`testbed app <Android/testbed>` as a guide; each step below contains a link to the relevant file. * First, acquire a build of Python for Android:
trusted_official_docs
CPython Docs
of this manually, read on. You can use the :source:`testbed app <Android/testbed>` as a guide; each step below contains a link to the relevant file. * First, acquire a build of Python for Android:
of this manually, read on. You can use the :source:`testbed app <Android/testbed>` as a guide; each step below contains a link to the relevant file. * First, acquire a build of Python for Android:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2a32886b-6919-4af4-9b48-1b0f68a8b788
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,247
supabase-export-v2
c3afc3ae35ed3dfa
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On Android, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where y...
trusted_official_docs
CPython Docs
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On Android, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where y...
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On Android, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where y...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4426ec50-75bb-4ed1-9b24-2e918118c926
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,257
supabase-export-v2
53acbaeeb2cc9512
* Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be created under :samp:`cross-build/{HOST}`. * Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your ...
trusted_official_docs
CPython Docs
* Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be created under :samp:`cross-build/{HOST}`. * Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your ...
* Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be created under :samp:`cross-build/{HOST}`. * Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
74a11e31-1da1-45d7-bcdf-27c826cd58f8
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,253
supabase-export-v2
b6210691d546f933
* `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__ * `Termux <https://termux.dev/en/>`__ If you're s...
trusted_official_docs
CPython Docs
* `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__ * `Termux <https://termux.dev/en/>`__ If you're s...
* `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://www.riverbankcomputing.com/static/Docs/pyqtdeploy/>`__ * `Termux <https://termux.dev/en/>`__ If you're s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
77244f27-7f39-4664-975f-55389b0077c8
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,256
supabase-export-v2
8e147c7c7ccdc5a5
The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package. * Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be...
trusted_official_docs
CPython Docs
The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package. * Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be...
The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package. * Or if you want to build it yourself, follow the instructions in :source:`Android/README.md`. The ``prefix`` directory will be...
python, official-docs, cpython, P0
Local_Trusted_Corpus
84269754-4155-4649-a006-ab74b25b9a5a
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,252
supabase-export-v2
c8d901e221921ba2
Most app developers should use one of the following tools, which will provide a much easier experience: * `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://...
trusted_official_docs
CPython Docs
Most app developers should use one of the following tools, which will provide a much easier experience: * `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://...
Most app developers should use one of the following tools, which will provide a much easier experience: * `Briefcase <https://briefcase.beeware.org>`__, from the BeeWare project * `Buildozer <https://buildozer.readthedocs.io>`__, from the Kivy project * `Chaquopy <https://chaquo.com/chaquopy>`__ * `pyqtdeploy <https://...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b60b6fdd-6280-44cf-a4be-9d13f3bb9dde
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,255
supabase-export-v2
79701a7009996f25
* First, acquire a build of Python for Android: * The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package.
trusted_official_docs
CPython Docs
* First, acquire a build of Python for Android: * The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package.
* First, acquire a build of Python for Android: * The easiest way is to download an Android release from `python.org <https://www.python.org/downloads/android/>`__. The ``prefix`` directory mentioned below is at the top level of the package.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b61e4a68-51db-4e37-8845-eadfbb7ebd08
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,264
supabase-export-v2
d03238efd2d41eff
* Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI. Building a Python package for Android -------------------------------------
trusted_official_docs
CPython Docs
* Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI. Building a Python package for Android -------------------------------------
* Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI. Building a Python package for Android -------------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
c1b5ddc0-4984-41c8-a027-2e7e0c9f3edb
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,263
supabase-export-v2
ce255080f2a96264
* Add code to your app to :source:`extract the assets to the filesystem <Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`. * Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI.
trusted_official_docs
CPython Docs
* Add code to your app to :source:`extract the assets to the filesystem <Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`. * Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI.
* Add code to your app to :source:`extract the assets to the filesystem <Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`. * Add code to your app to :source:`start Python in embedded mode <Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code called via JNI.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d0c4dda9-7ce3-4065-968f-d0f24a86e4ec
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,249
supabase-export-v2
784260629cf91c5b
API <embedding>`. The full Python interpreter, the standard library, and all your Python code is then packaged into your app for its own private use. The Python standard library has some notable omissions and restrictions on Android. See the :ref:`API availability guide <mobile-availability>` for details.
trusted_official_docs
CPython Docs
API <embedding>`. The full Python interpreter, the standard library, and all your Python code is then packaged into your app for its own private use. The Python standard library has some notable omissions and restrictions on Android. See the :ref:`API availability guide <mobile-availability>` for details.
API <embedding>`. The full Python interpreter, the standard library, and all your Python code is then packaged into your app for its own private use. The Python standard library has some notable omissions and restrictions on Android. See the :ref:`API availability guide <mobile-availability>` for details.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d73f818b-7328-419c-8cb0-81f9215869f8
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,248
supabase-export-v2
4dc9cbcd6c289a2c
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on Android is in embedded mode – that is, by writing a native Android application, embedding a Python interpreter using ``l...
trusted_official_docs
CPython Docs
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on Android is in embedded mode – that is, by writing a native Android application, embedding a Python interpreter using ``l...
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on Android is in embedded mode – that is, by writing a native Android application, embedding a Python interpreter using ``l...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e50d3b80-455d-4ac7-b1e6-ddfc45875132
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,258
supabase-export-v2
be3dd5ed8a088963
code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your own Python code can be copied from ``prefix/lib``: * In your JNI libraries:
trusted_official_docs
CPython Docs
code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your own Python code can be copied from ``prefix/lib``: * In your JNI libraries:
code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>` file to copy the following items into your project. All except your own Python code can be copied from ``prefix/lib``: * In your JNI libraries:
python, official-docs, cpython, P0
Local_Trusted_Corpus
eef48f58-a739-4896-a25f-e1375de43f56
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,246
supabase-export-v2
85555b310d7fc67b
======================= Using Python on Android ======================= Python on Android is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executa...
trusted_official_docs
CPython Docs
======================= Using Python on Android ======================= Python on Android is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executa...
======================= Using Python on Android ======================= Python on Android is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fe8c4489-5459-4bed-a9c1-99c792156c5b
CPython Docs
file://datasets/cpython/Doc/using/android.rst
unknown
314a9ef9-d886-4b10-9b86-e486ff83d726
54,265
supabase-export-v2
2d1850ce07fe63e0
Building a Python package for Android ------------------------------------- Python packages can be built for Android as wheels and released on PyPI. The recommended tool for doing this is `cibuildwheel <https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__, which automates all the details of setting up a cross-...
trusted_official_docs
CPython Docs
Building a Python package for Android ------------------------------------- Python packages can be built for Android as wheels and released on PyPI. The recommended tool for doing this is `cibuildwheel <https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__, which automates all the details of setting up a cross-...
Building a Python package for Android ------------------------------------- Python packages can be built for Android as wheels and released on PyPI. The recommended tool for doing this is `cibuildwheel <https://cibuildwheel.pypa.io/en/stable/platforms/#android>`__, which automates all the details of setting up a cross-...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0968bd2a-6c4a-4db4-89b2-b3e3c5bbba85
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,305
supabase-export-v2
a93aefe12c5c65e9
4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears. 5. In the "General" settings, under "Frameworks, Libraries and Embedded Content", add ``Python.xcframework``, with "Embed & Sign" selected.
trusted_official_docs
CPython Docs
4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears. 5. In the "General" settings, under "Frameworks, Libraries and Embedded Content", add ``Python.xcframework``, with "Embed & Sign" selected.
4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears. 5. In the "General" settings, under "Frameworks, Libraries and Embedded Content", add ``Python.xcframework``, with "Embed & Sign" selected.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0e6ef06a-6b2c-43b3-b80e-05e6bbaf8cbd
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,283
supabase-export-v2
59d420996c8b0332
is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed. The iOS App Store requires that *all* binary modules in an iOS app must be dynamic libraries, contained in a framework with appropriate metadata, s...
trusted_official_docs
CPython Docs
is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed. The iOS App Store requires that *all* binary modules in an iOS app must be dynamic libraries, contained in a framework with appropriate metadata, s...
is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed. The iOS App Store requires that *all* binary modules in an iOS app must be dynamic libraries, contained in a framework with appropriate metadata, s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f94f59d-26dd-4621-b497-b1600e2757e7
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,317
supabase-export-v2
c6a0466d4cc58f5d
If you have placed your XCframework somewhere other than the root of your project, modify the path to the first argument. 8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that:
trusted_official_docs
CPython Docs
If you have placed your XCframework somewhere other than the root of your project, modify the path to the first argument. 8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that:
If you have placed your XCframework somewhere other than the root of your project, modify the path to the first argument. 8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that:
python, official-docs, cpython, P0
Local_Trusted_Corpus
14eb9bc5-2ec6-471c-a932-8446b3d76467
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,269
supabase-export-v2
fa92e856e3057845
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On iOS, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where you c...
trusted_official_docs
CPython Docs
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On iOS, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where you c...
that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an interactive prompt, or by running a Python script. On iOS, there is no concept of installing as a system resource. The only unit of software distribution is an "app". There is also no console where you c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1711a93d-67ff-4239-98e6-ca29c1b3773b
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,313
supabase-export-v2
e21ec7ae2b6fdb7c
* Quoted Include In Framework Header: No 7. Add a build step that processes the Python standard library, and your own Python binary dependencies. In the "Build Phases" tab, add a new "Run Script" build step *before* the "Embed Frameworks" step, but *after* the "Copy Bundle Resources" step. Name the step "Process Pyt...
trusted_official_docs
CPython Docs
* Quoted Include In Framework Header: No 7. Add a build step that processes the Python standard library, and your own Python binary dependencies. In the "Build Phases" tab, add a new "Run Script" build step *before* the "Embed Frameworks" step, but *after* the "Copy Bundle Resources" step. Name the step "Process Pyt...
* Quoted Include In Framework Header: No 7. Add a build step that processes the Python standard library, and your own Python binary dependencies. In the "Build Phases" tab, add a new "Run Script" build step *before* the "Embed Frameworks" step, but *after* the "Copy Bundle Resources" step. Name the step "Process Pyt...
python, official-docs, cpython, P0
Local_Trusted_Corpus
198f9556-d89e-47fc-b146-c4c0213e37cf
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,346
supabase-export-v2
5c46de03d448ace7
bundle for problematic code. There are some steps that must be taken to ensure that your app will be able to pass these validation steps. Incompatible code in the standard library -----------------------------------------
trusted_official_docs
CPython Docs
bundle for problematic code. There are some steps that must be taken to ensure that your app will be able to pass these validation steps. Incompatible code in the standard library -----------------------------------------
bundle for problematic code. There are some steps that must be taken to ensure that your app will be able to pass these validation steps. Incompatible code in the standard library -----------------------------------------
python, official-docs, cpython, P0
Local_Trusted_Corpus
1bae9d17-e0b5-4eb0-b807-96b2bf9e2962
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,318
supabase-export-v2
8e714d2aef6c6611
8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that: * UTF-8 mode (:c:member:`PyPreConfig.utf8_mode`) is *enabled*; * Buffered stdio (:c:member:`PyConfig.buffered_stdio`) is *disabled*; * Writing bytecode (:c:member:`PyConfig.write_bytecode`) is *disabled*; * S...
trusted_official_docs
CPython Docs
8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that: * UTF-8 mode (:c:member:`PyPreConfig.utf8_mode`) is *enabled*; * Buffered stdio (:c:member:`PyConfig.buffered_stdio`) is *disabled*; * Writing bytecode (:c:member:`PyConfig.write_bytecode`) is *disabled*; * S...
8. Add Objective C code to initialize and use a Python interpreter in embedded mode. You should ensure that: * UTF-8 mode (:c:member:`PyPreConfig.utf8_mode`) is *enabled*; * Buffered stdio (:c:member:`PyConfig.buffered_stdio`) is *disabled*; * Writing bytecode (:c:member:`PyConfig.write_bytecode`) is *disabled*; * S...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e452967-2cc7-48ff-95b9-f429a0f67099
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,278
supabase-export-v2
d0e52e0b6e073218
version, device model, and whether the device is a simulator, can be obtained using :func:`platform.ios_ver`. :func:`platform.system` will report ``iOS`` or ``iPadOS``, depending on the device. :func:`os.uname` reports kernel-level details; it will report a name of ``Darwin``.
trusted_official_docs
CPython Docs
version, device model, and whether the device is a simulator, can be obtained using :func:`platform.ios_ver`. :func:`platform.system` will report ``iOS`` or ``iPadOS``, depending on the device. :func:`os.uname` reports kernel-level details; it will report a name of ``Darwin``.
version, device model, and whether the device is a simulator, can be obtained using :func:`platform.ios_ver`. :func:`platform.system` will report ``iOS`` or ``iPadOS``, depending on the device. :func:`os.uname` reports kernel-level details; it will report a name of ``Darwin``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
1e94bb8c-8134-425b-bba5-841bce28c9b2
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,343
supabase-export-v2
a9774cbe569f64a9
be the first child of the root node), and select the "Configurations" tab. Modify the "Arguments Passed On Launch" value to change the testing arguments. The test plan also disables parallel testing, and specifies the use of the ``Testbed.lldbinit`` file for providing configuration of the debugger. The default debugger...
trusted_official_docs
CPython Docs
be the first child of the root node), and select the "Configurations" tab. Modify the "Arguments Passed On Launch" value to change the testing arguments. The test plan also disables parallel testing, and specifies the use of the ``Testbed.lldbinit`` file for providing configuration of the debugger. The default debugger...
be the first child of the root node), and select the "Configurations" tab. Modify the "Arguments Passed On Launch" value to change the testing arguments. The test plan also disables parallel testing, and specifies the use of the ``Testbed.lldbinit`` file for providing configuration of the debugger. The default debugger...
python, official-docs, cpython, P0
Local_Trusted_Corpus
1ec4c148-1079-42c9-a7a8-ac07ded8fec0
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,351
supabase-export-v2
9ea0addc2efcdcce
of the affected libraries, you must provide an ``.xcprivacy`` file for that library. OpenSSL is one library affected by this requirement, but there are others. If you produce a binary module named ``mymodule.so``, and use you the Xcode build script described in step 7 above, you can place a ``mymodule.xcprivacy`` file ...
trusted_official_docs
CPython Docs
of the affected libraries, you must provide an ``.xcprivacy`` file for that library. OpenSSL is one library affected by this requirement, but there are others. If you produce a binary module named ``mymodule.so``, and use you the Xcode build script described in step 7 above, you can place a ``mymodule.xcprivacy`` file ...
of the affected libraries, you must provide an ``.xcprivacy`` file for that library. OpenSSL is one library affected by this requirement, but there are others. If you produce a binary module named ``mymodule.so``, and use you the Xcode build script described in step 7 above, you can place a ``mymodule.xcprivacy`` file ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
281e0eed-5768-4a92-b87d-38f240d702d9
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,303
supabase-export-v2
2de6e832e78f6dcf
you've dropped the ``XCframework`` into the root of your project; however, you can use any other location that you want by adjusting paths as needed. 3. Add your application code as a folder in your Xcode project. In the following instructions, we'll assume that your user code is in a folder named ``app`` in the root...
trusted_official_docs
CPython Docs
you've dropped the ``XCframework`` into the root of your project; however, you can use any other location that you want by adjusting paths as needed. 3. Add your application code as a folder in your Xcode project. In the following instructions, we'll assume that your user code is in a folder named ``app`` in the root...
you've dropped the ``XCframework`` into the root of your project; however, you can use any other location that you want by adjusting paths as needed. 3. Add your application code as a folder in your Xcode project. In the following instructions, we'll assume that your user code is in a folder named ``app`` in the root...
python, official-docs, cpython, P0
Local_Trusted_Corpus
285ed47b-ee4c-48c0-8810-03e0192b4b2b
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,338
supabase-export-v2
4ff9b3a60c7b696c
Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine. You can also open the testbed project in Xcode by running:
trusted_official_docs
CPython Docs
Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine. You can also open the testbed project in Xcode by running:
Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine. You can also open the testbed project in Xcode by running:
python, official-docs, cpython, P0
Local_Trusted_Corpus
2c931c11-332f-4346-bb14-56e63b6a23b8
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,348
supabase-export-v2
27dfaf8a41ddf5c8
positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python standard library for an app to pass App Store review. The Python source tree contains :source:`a patch file <Mac/Resources/app-store-compliance.patch>` that will remove all code that is known to cause issues with the App Stor...
trusted_official_docs
CPython Docs
positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python standard library for an app to pass App Store review. The Python source tree contains :source:`a patch file <Mac/Resources/app-store-compliance.patch>` that will remove all code that is known to cause issues with the App Stor...
positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python standard library for an app to pass App Store review. The Python source tree contains :source:`a patch file <Mac/Resources/app-store-compliance.patch>` that will remove all code that is known to cause issues with the App Stor...
python, official-docs, cpython, P0
Local_Trusted_Corpus
30371548-1a68-46a8-9a17-44f9eb477f22
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,350
supabase-export-v2
311b710369e69afc
Privacy manifests ----------------- In April 2025, Apple introduced a requirement for `certain third-party libraries to provide a Privacy Manifest <https://developer.apple.com/support/third-party-SDK-requirements>`__. As a result, if you have a binary module that uses one of the affected libraries, you must provide an ...
trusted_official_docs
CPython Docs
Privacy manifests ----------------- In April 2025, Apple introduced a requirement for `certain third-party libraries to provide a Privacy Manifest <https://developer.apple.com/support/third-party-SDK-requirements>`__. As a result, if you have a binary module that uses one of the affected libraries, you must provide an ...
Privacy manifests ----------------- In April 2025, Apple introduced a requirement for `certain third-party libraries to provide a Privacy Manifest <https://developer.apple.com/support/third-party-SDK-requirements>`__. As a result, if you have a binary module that uses one of the affected libraries, you must provide an ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
39de6fac-0db8-430d-9cc9-2422348836c4
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,296
supabase-export-v2
db352039527ade44
does not maintain Xcode for older macOS versions. The Xcode Command Line Tools are not sufficient for iOS development; you need a *full* Xcode install. If you want to run your code on the iOS simulator, you'll also need to install an iOS Simulator Platform. You should be prompted to select an iOS Simulator Platform whe...
trusted_official_docs
CPython Docs
does not maintain Xcode for older macOS versions. The Xcode Command Line Tools are not sufficient for iOS development; you need a *full* Xcode install. If you want to run your code on the iOS simulator, you'll also need to install an iOS Simulator Platform. You should be prompted to select an iOS Simulator Platform whe...
does not maintain Xcode for older macOS versions. The Xcode Command Line Tools are not sufficient for iOS development; you need a *full* Xcode install. If you want to run your code on the iOS simulator, you'll also need to install an iOS Simulator Platform. You should be prompted to select an iOS Simulator Platform whe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3c394c80-b779-407f-a49f-a38337b990d1
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,285
supabase-export-v2
f2eed78d8220823e
standalone frameworks with appropriate metadata and signing. For details on how to perform this post-processing, see the guide for :ref:`adding Python to your project <adding-ios>`. To help Python discover binaries in their new location, the original ``.so`` file on ``sys.path`` is replaced with a ``.fwork`` file. This...
trusted_official_docs
CPython Docs
standalone frameworks with appropriate metadata and signing. For details on how to perform this post-processing, see the guide for :ref:`adding Python to your project <adding-ios>`. To help Python discover binaries in their new location, the original ``.so`` file on ``sys.path`` is replaced with a ``.fwork`` file. This...
standalone frameworks with appropriate metadata and signing. For details on how to perform this post-processing, see the guide for :ref:`adding Python to your project <adding-ios>`. To help Python discover binaries in their new location, the original ``.so`` file on ``sys.path`` is replaced with a ``.fwork`` file. This...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3f7a5a97-3a7f-452b-9c7a-32669e9ce5aa
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,347
supabase-export-v2
53d49dbe0b583c6e
Incompatible code in the standard library ----------------------------------------- The Python standard library contains some code that is known to violate these automated rules. While these violations appear to be false positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python stan...
trusted_official_docs
CPython Docs
Incompatible code in the standard library ----------------------------------------- The Python standard library contains some code that is known to violate these automated rules. While these violations appear to be false positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python stan...
Incompatible code in the standard library ----------------------------------------- The Python standard library contains some code that is known to violate these automated rules. While these violations appear to be false positives, Apple's review rules cannot be challenged; so, it is necessary to modify the Python stan...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4197f2c9-6d41-4b08-b9d0-23cf46256857
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,293
supabase-export-v2
bb89522ac96b5acc
useful for end-users to compile their own modules. When compiling third-party Python modules for iOS, you should ensure these stub binaries are on your path. Installing Python on iOS ========================
trusted_official_docs
CPython Docs
useful for end-users to compile their own modules. When compiling third-party Python modules for iOS, you should ensure these stub binaries are on your path. Installing Python on iOS ========================
useful for end-users to compile their own modules. When compiling third-party Python modules for iOS, you should ensure these stub binaries are on your path. Installing Python on iOS ========================
python, official-docs, cpython, P0
Local_Trusted_Corpus
47e9d94e-32f3-40dc-b46d-bf3d75b0f740
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,271
supabase-export-v2
fc7a232e390eff35
interpreter, the standard library, and all your Python code is then packaged as a standalone bundle that can be distributed via the iOS App Store. If you're looking to experiment for the first time with writing an iOS app in Python, projects such as `BeeWare <https://beeware.org>`__ and `Kivy <https://kivy.org>`__ will...
trusted_official_docs
CPython Docs
interpreter, the standard library, and all your Python code is then packaged as a standalone bundle that can be distributed via the iOS App Store. If you're looking to experiment for the first time with writing an iOS app in Python, projects such as `BeeWare <https://beeware.org>`__ and `Kivy <https://kivy.org>`__ will...
interpreter, the standard library, and all your Python code is then packaged as a standalone bundle that can be distributed via the iOS App Store. If you're looking to experiment for the first time with writing an iOS app in Python, projects such as `BeeWare <https://beeware.org>`__ and `Kivy <https://kivy.org>`__ will...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5dee26ff-c837-4d7a-abd4-50df291011d2
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,270
supabase-export-v2
ad8d8e10017f6d6c
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on iOS is in embedded mode - that is, by writing a native iOS application, and embedding a Python interpreter using ``libPy...
trusted_official_docs
CPython Docs
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on iOS is in embedded mode - that is, by writing a native iOS application, and embedding a Python interpreter using ``libPy...
unit of software distribution is an "app". There is also no console where you could run a :program:`python` executable, or interact with a Python REPL. As a result, the only way you can use Python on iOS is in embedded mode - that is, by writing a native iOS application, and embedding a Python interpreter using ``libPy...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5e4ae8d3-9bdd-46fe-b94d-21067a910226
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,322
supabase-export-v2
7f22de57043e5bfa
a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required: * You need to ensure that any folders containing third-party binaries are either associated with the app target, or are explicitly copied as part of step 7. Step ...
trusted_official_docs
CPython Docs
a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required: * You need to ensure that any folders containing third-party binaries are either associated with the app target, or are explicitly copied as part of step 7. Step ...
a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required: * You need to ensure that any folders containing third-party binaries are either associated with the app target, or are explicitly copied as part of step 7. Step ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6943189f-7b3e-42a5-9efa-4d69bdc6d6fd
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,274
supabase-export-v2
2b3ce3d41334a6bc
iOS version compatibility ------------------------- The minimum supported iOS version is specified at compile time, using the :option:`--host` option to ``configure``. By default, when compiled for iOS, Python will be compiled with a minimum supported iOS version of 13.0. To use a different minimum iOS version, provide...
trusted_official_docs
CPython Docs
iOS version compatibility ------------------------- The minimum supported iOS version is specified at compile time, using the :option:`--host` option to ``configure``. By default, when compiled for iOS, Python will be compiled with a minimum supported iOS version of 13.0. To use a different minimum iOS version, provide...
iOS version compatibility ------------------------- The minimum supported iOS version is specified at compile time, using the :option:`--host` option to ``configure``. By default, when compiled for iOS, Python will be compiled with a minimum supported iOS version of 13.0. To use a different minimum iOS version, provide...
python, official-docs, cpython, P0
Local_Trusted_Corpus
78afd764-1dde-43fe-8710-bee635ab249b
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,337
supabase-export-v2
2aaf83adacbbe65a
$ python app-testbed run -- module1.tests This is the equivalent of running ``python -m module1.tests`` on a desktop Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine.
trusted_official_docs
CPython Docs
$ python app-testbed run -- module1.tests This is the equivalent of running ``python -m module1.tests`` on a desktop Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine.
$ python app-testbed run -- module1.tests This is the equivalent of running ``python -m module1.tests`` on a desktop Python build. Any arguments after the ``--`` will be passed to the testbed as if they were arguments to ``python -m`` on a desktop machine.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7d5e43dd-6d77-40c7-af15-c238ec1fea39
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,276
supabase-export-v2
d73dd2e12492e749
Platform identification ----------------------- When executing on iOS, ``sys.platform`` will report as ``ios``. This value will be returned on an iPhone or iPad, regardless of whether the app is running on the simulator or a physical device.
trusted_official_docs
CPython Docs
Platform identification ----------------------- When executing on iOS, ``sys.platform`` will report as ``ios``. This value will be returned on an iPhone or iPad, regardless of whether the app is running on the simulator or a physical device.
Platform identification ----------------------- When executing on iOS, ``sys.platform`` will report as ``ios``. This value will be returned on an iPhone or iPad, regardless of whether the app is running on the simulator or a physical device.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f3ffeca-06b8-4b39-adbe-ccd684d0136c
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,326
supabase-export-v2
1cc400cdf49d8d52
Testing a Python package ------------------------ The CPython source tree contains :source:`a testbed project <Apple/iOS/testbed>` that is used to run the CPython test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS.
trusted_official_docs
CPython Docs
Testing a Python package ------------------------ The CPython source tree contains :source:`a testbed project <Apple/iOS/testbed>` that is used to run the CPython test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS.
Testing a Python package ------------------------ The CPython source tree contains :source:`a testbed project <Apple/iOS/testbed>` that is used to run the CPython test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8092841e-16b3-400f-880b-e19744e91d01
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,289
supabase-export-v2
49af5ab55e15bec0
Compiler stub binaries ---------------------- Xcode doesn't expose explicit compilers for iOS; instead, it uses an ``xcrun`` script that resolves to a full compiler path (e.g., ``xcrun --sdk iphoneos clang`` to get the ``clang`` for an iPhone device). However, using this script poses two problems:
trusted_official_docs
CPython Docs
Compiler stub binaries ---------------------- Xcode doesn't expose explicit compilers for iOS; instead, it uses an ``xcrun`` script that resolves to a full compiler path (e.g., ``xcrun --sdk iphoneos clang`` to get the ``clang`` for an iPhone device). However, using this script poses two problems:
Compiler stub binaries ---------------------- Xcode doesn't expose explicit compilers for iOS; instead, it uses an ``xcrun`` script that resolves to a full compiler path (e.g., ``xcrun --sdk iphoneos clang`` to get the ``clang`` for an iPhone device). However, using this script poses two problems:
python, official-docs, cpython, P0
Local_Trusted_Corpus
8598ddfc-5435-4fe3-84e7-e4a2d5c98704
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,286
supabase-export-v2
0352b8023d54b860
back to the original location, the framework must contain a ``.origin`` file that contains the location of the ``.fwork`` file, relative to the app bundle. For example, consider the case of an import ``from foo.bar import _whiz``, where ``_whiz`` is implemented with the binary module ``sources/foo/bar/_whiz.abi3.so``, ...
trusted_official_docs
CPython Docs
back to the original location, the framework must contain a ``.origin`` file that contains the location of the ``.fwork`` file, relative to the app bundle. For example, consider the case of an import ``from foo.bar import _whiz``, where ``_whiz`` is implemented with the binary module ``sources/foo/bar/_whiz.abi3.so``, ...
back to the original location, the framework must contain a ``.origin`` file that contains the location of the ``.fwork`` file, relative to the app bundle. For example, consider the case of an import ``from foo.bar import _whiz``, where ``_whiz`` is implemented with the binary module ``sources/foo/bar/_whiz.abi3.so``, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
892d4638-f0eb-446a-becd-321cecfb6463
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,287
supabase-export-v2
417d8b05bfb049c1
the original location with a ``sources/foo/bar/_whiz.abi3.fwork`` marker file, containing the path ``Frameworks/foo.bar._whiz/foo.bar._whiz``. The framework would also contain ``Frameworks/foo.bar._whiz.framework/foo.bar._whiz.origin``, containing the path to the ``.fwork`` file. When running on iOS, the Python interpr...
trusted_official_docs
CPython Docs
the original location with a ``sources/foo/bar/_whiz.abi3.fwork`` marker file, containing the path ``Frameworks/foo.bar._whiz/foo.bar._whiz``. The framework would also contain ``Frameworks/foo.bar._whiz.framework/foo.bar._whiz.origin``, containing the path to the ``.fwork`` file. When running on iOS, the Python interpr...
the original location with a ``sources/foo/bar/_whiz.abi3.fwork`` marker file, containing the path ``Frameworks/foo.bar._whiz/foo.bar._whiz``. The framework would also contain ``Frameworks/foo.bar._whiz.framework/foo.bar._whiz.origin``, containing the path to the ``.fwork`` file. When running on iOS, the Python interpr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8aa54826-d945-4640-b52a-68525a117b6f
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,345
supabase-export-v2
822c76734ee761ef
App Store Compliance ==================== The only mechanism for distributing apps to third-party iOS devices is to submit the app to the iOS App Store; apps submitted for distribution must pass Apple's app review process. This process includes a set of automated validation rules that inspect the submitted application ...
trusted_official_docs
CPython Docs
App Store Compliance ==================== The only mechanism for distributing apps to third-party iOS devices is to submit the app to the iOS App Store; apps submitted for distribution must pass Apple's app review process. This process includes a set of automated validation rules that inspect the submitted application ...
App Store Compliance ==================== The only mechanism for distributing apps to third-party iOS devices is to submit the app to the iOS App Store; apps submitted for distribution must pass Apple's app review process. This process includes a set of automated validation rules that inspect the submitted application ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8b89c8a1-46f0-4ac7-9961-ce67ab42ffb6
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,282
supabase-export-v2
46bede12fa32f6b3
Binary extension modules ------------------------ One notable difference about iOS as a platform is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed.
trusted_official_docs
CPython Docs
Binary extension modules ------------------------ One notable difference about iOS as a platform is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed.
Binary extension modules ------------------------ One notable difference about iOS as a platform is that App Store distribution imposes hard requirements on the packaging of an application. One of these requirements governs how binary extension modules are distributed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
92ffc0ce-13b7-40b4-a98d-598c143a4b42
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,284
supabase-export-v2
6fbd91ff92c3e59a
of the packaged app. There can be only a single binary per framework, and there can be no executable binary material outside the ``Frameworks`` folder. This conflicts with the usual Python approach for distributing binaries, which allows a binary extension module to be loaded from any location on ``sys.path``. To ensur...
trusted_official_docs
CPython Docs
of the packaged app. There can be only a single binary per framework, and there can be no executable binary material outside the ``Frameworks`` folder. This conflicts with the usual Python approach for distributing binaries, which allows a binary extension module to be loaded from any location on ``sys.path``. To ensur...
of the packaged app. There can be only a single binary per framework, and there can be no executable binary material outside the ``Frameworks`` folder. This conflicts with the usual Python approach for distributing binaries, which allows a binary extension module to be loaded from any location on ``sys.path``. To ensur...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9303c46a-1f33-4e7b-8f8c-8f86cf3667dd
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,300
supabase-export-v2
1b8043004ccfd22a
Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful. To add Python to an iOS Xcode project:
trusted_official_docs
CPython Docs
Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful. To add Python to an iOS Xcode project:
Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful. To add Python to an iOS Xcode project:
python, official-docs, cpython, P0
Local_Trusted_Corpus
948040a3-6d12-4bc5-a8ce-8cc5298de606
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,304
supabase-export-v2
f0d02d3a5d94308b
root of your project; you can use any other location by adjusting paths as needed. Ensure that this folder is associated with your app target. 4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears.
trusted_official_docs
CPython Docs
root of your project; you can use any other location by adjusting paths as needed. Ensure that this folder is associated with your app target. 4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears.
root of your project; you can use any other location by adjusting paths as needed. Ensure that this folder is associated with your app target. 4. Select the app target by selecting the root node of your Xcode project, then the target name in the sidebar that appears.
python, official-docs, cpython, P0
Local_Trusted_Corpus
950467d9-40e1-4591-9aa5-916d076851d2
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,268
supabase-export-v2
a411ec3c86b99378
:Authors: Russell Keith-Magee (2024-03) Python on iOS is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an inte...
trusted_official_docs
CPython Docs
:Authors: Russell Keith-Magee (2024-03) Python on iOS is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an inte...
:Authors: Russell Keith-Magee (2024-03) Python on iOS is unlike Python on desktop platforms. On a desktop platform, Python is generally installed as a system resource that can be used by any user of that computer. Users then interact with Python by running a :program:`python` executable and entering commands at an inte...
python, official-docs, cpython, P0
Local_Trusted_Corpus
958ddcb6-555a-475d-962c-388cd4915687
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,327
supabase-export-v2
221b39e39689a017
test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS. After building or obtaining an iOS XCFramework (see :source:`Apple/iOS/README.md` for details), create a clone of the Python iOS testbed project. If you used the ``Apple`` build scrip...
trusted_official_docs
CPython Docs
test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS. After building or obtaining an iOS XCFramework (see :source:`Apple/iOS/README.md` for details), create a clone of the Python iOS testbed project. If you used the ``Apple`` build scrip...
test suite on the iOS simulator. This testbed can also be used as a testbed project for running your Python library's test suite on iOS. After building or obtaining an iOS XCFramework (see :source:`Apple/iOS/README.md` for details), create a clone of the Python iOS testbed project. If you used the ``Apple`` build scrip...
python, official-docs, cpython, P0
Local_Trusted_Corpus
99c2f768-fd9e-4761-b2f7-44b430f49fa7
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,291
supabase-export-v2
252883630bbda5a3
* The output of ``xcrun`` includes paths that are machine specific, resulting in a sysconfig module that cannot be shared between users; and * It results in ``CC``/``CPP``/``LD``/``AR`` definitions that include spaces. There is a lot of C ecosystem tooling that assumes that you can split a command line at the first sp...
trusted_official_docs
CPython Docs
* The output of ``xcrun`` includes paths that are machine specific, resulting in a sysconfig module that cannot be shared between users; and * It results in ``CC``/``CPP``/``LD``/``AR`` definitions that include spaces. There is a lot of C ecosystem tooling that assumes that you can split a command line at the first sp...
* The output of ``xcrun`` includes paths that are machine specific, resulting in a sysconfig module that cannot be shared between users; and * It results in ``CC``/``CPP``/``LD``/``AR`` definitions that include spaces. There is a lot of C ecosystem tooling that assumes that you can split a command line at the first sp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a33d42a-45d3-4199-bae7-8e1339c67ea0
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,324
supabase-export-v2
99d0c3af6ef9f318
that folder is added to the end of the call to ``install_python`` in step 7, and as part of the :envvar:`PYTHONPATH` configuration in step 8. * If any of the folders that contain third-party packages will contain ``.pth`` files, you should add that folder as a *site directory* (using :meth:`site.addsitedir`), rather ...
trusted_official_docs
CPython Docs
that folder is added to the end of the call to ``install_python`` in step 7, and as part of the :envvar:`PYTHONPATH` configuration in step 8. * If any of the folders that contain third-party packages will contain ``.pth`` files, you should add that folder as a *site directory* (using :meth:`site.addsitedir`), rather ...
that folder is added to the end of the call to ``install_python`` in step 7, and as part of the :envvar:`PYTHONPATH` configuration in step 8. * If any of the folders that contain third-party packages will contain ``.pth`` files, you should add that folder as a *site directory* (using :meth:`site.addsitedir`), rather ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9d622ea8-04c5-40d7-90f1-d3d895b94652
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,301
supabase-export-v2
413c609192791392
To add Python to an iOS Xcode project: 1. Build or obtain a Python ``XCFramework``. See the instructions in :source:`Apple/iOS/README.md` (in the CPython source distribution) for details on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of eithe...
trusted_official_docs
CPython Docs
To add Python to an iOS Xcode project: 1. Build or obtain a Python ``XCFramework``. See the instructions in :source:`Apple/iOS/README.md` (in the CPython source distribution) for details on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of eithe...
To add Python to an iOS Xcode project: 1. Build or obtain a Python ``XCFramework``. See the instructions in :source:`Apple/iOS/README.md` (in the CPython source distribution) for details on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of eithe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b743842d-0f26-4ed8-b5b0-5f543bcbde72
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,320
supabase-export-v2
b541ac64e8f9f5f7
- the ``python/lib/python3.X`` subfolder of your app's bundle, - the ``python/lib/python3.X/lib-dynload`` subfolder of your app's bundle, and - the ``app`` subfolder of your app's bundle Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``.
trusted_official_docs
CPython Docs
- the ``python/lib/python3.X`` subfolder of your app's bundle, - the ``python/lib/python3.X/lib-dynload`` subfolder of your app's bundle, and - the ``app`` subfolder of your app's bundle Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``.
- the ``python/lib/python3.X`` subfolder of your app's bundle, - the ``python/lib/python3.X/lib-dynload`` subfolder of your app's bundle, and - the ``app`` subfolder of your app's bundle Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c2264ef7-5e3d-4d7d-a705-feb98aacc81d
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,299
supabase-export-v2
526b6cf9edb8346a
Adding Python to an iOS project ------------------------------- Python can be added to any iOS project, using either Swift or Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful.
trusted_official_docs
CPython Docs
Adding Python to an iOS project ------------------------------- Python can be added to any iOS project, using either Swift or Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful.
Adding Python to an iOS project ------------------------------- Python can be added to any iOS project, using either Swift or Objective C. The following examples will use Objective C; if you are using Swift, you may find a library like `PythonKit <https://github.com/pvieito/PythonKit>`__ to be helpful.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5a9fca7-cebf-4812-9861-85f4a185764c
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,295
supabase-export-v2
1acb8b86a7481990
Tools for building iOS apps --------------------------- Building for iOS requires the use of Apple's Xcode tooling. It is strongly recommended that you use the most recent stable release of Xcode. This will require the use of the most (or second-most) recently released macOS version, as Apple does not maintain Xcode fo...
trusted_official_docs
CPython Docs
Tools for building iOS apps --------------------------- Building for iOS requires the use of Apple's Xcode tooling. It is strongly recommended that you use the most recent stable release of Xcode. This will require the use of the most (or second-most) recently released macOS version, as Apple does not maintain Xcode fo...
Tools for building iOS apps --------------------------- Building for iOS requires the use of Apple's Xcode tooling. It is strongly recommended that you use the most recent stable release of Xcode. This will require the use of the most (or second-most) recently released macOS version, as Apple does not maintain Xcode fo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5c57bbb-27f3-49a9-8301-224c2cf79085
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,272
supabase-export-v2
ce11449826e63862
user experience. These projects manage the complexities associated with getting an iOS project running, so you only need to deal with the Python code itself. Python at runtime on iOS ========================
trusted_official_docs
CPython Docs
user experience. These projects manage the complexities associated with getting an iOS project running, so you only need to deal with the Python code itself. Python at runtime on iOS ========================
user experience. These projects manage the complexities associated with getting an iOS project running, so you only need to deal with the Python code itself. Python at runtime on iOS ========================
python, official-docs, cpython, P0
Local_Trusted_Corpus
c62f71a8-4a5f-4bcf-9489-b06570e4f6c0
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,334
supabase-export-v2
e70a5b4aa0cad41a
importable modules at runtime. If your project has additional dependencies, they can be installed into the ``app-testbed/Testbed/app_packages`` folder (using ``pip install --target app-testbed/Testbed/app_packages`` or similar). You can then use the ``app-testbed`` folder to run the test suite for your app, For example...
trusted_official_docs
CPython Docs
importable modules at runtime. If your project has additional dependencies, they can be installed into the ``app-testbed/Testbed/app_packages`` folder (using ``pip install --target app-testbed/Testbed/app_packages`` or similar). You can then use the ``app-testbed`` folder to run the test suite for your app, For example...
importable modules at runtime. If your project has additional dependencies, they can be installed into the ``app-testbed/Testbed/app_packages`` folder (using ``pip install --target app-testbed/Testbed/app_packages`` or similar). You can then use the ``app-testbed`` folder to run the test suite for your app, For example...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c7ee58b9-0a8d-43c5-b5ab-a6275de5fd36
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,302
supabase-export-v2
e3dffdaad0164c4a
on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of either ``arm64-apple-ios-simulator`` or ``x86_64-apple-ios-simulator``. 2. Drag the ``XCframework`` into your iOS project. In the following instructions, we'll assume you've dropped the ``XCfram...
trusted_official_docs
CPython Docs
on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of either ``arm64-apple-ios-simulator`` or ``x86_64-apple-ios-simulator``. 2. Drag the ``XCframework`` into your iOS project. In the following instructions, we'll assume you've dropped the ``XCfram...
on how to build a Python ``XCFramework``. At a minimum, you will need a build that supports ``arm64-apple-ios``, plus one of either ``arm64-apple-ios-simulator`` or ``x86_64-apple-ios-simulator``. 2. Drag the ``XCframework`` into your iOS project. In the following instructions, we'll assume you've dropped the ``XCfram...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ccd3696a-d995-450a-9549-606591554190
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,323
supabase-export-v2
2043c05891508b10
that are not appropriate for the platform a specific build is targeting (i.e., delete any device binaries if you're building an app targeting the simulator). * If you're using a separate folder for third-party packages, ensure that folder is added to the end of the call to ``install_python`` in step 7, and as part of...
trusted_official_docs
CPython Docs
that are not appropriate for the platform a specific build is targeting (i.e., delete any device binaries if you're building an app targeting the simulator). * If you're using a separate folder for third-party packages, ensure that folder is added to the end of the call to ``install_python`` in step 7, and as part of...
that are not appropriate for the platform a specific build is targeting (i.e., delete any device binaries if you're building an app targeting the simulator). * If you're using a separate folder for third-party packages, ensure that folder is added to the end of the call to ``install_python`` in step 7, and as part of...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf88b168-7dc9-48f4-829f-7118318dca98
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,342
supabase-export-v2
cbde15da710e8f0c
This will allow you to use the full Xcode suite of tools for debugging. The arguments used to run the test suite are defined as part of the test plan. To modify the test plan, select the test plan node of the project tree (it should be the first child of the root node), and select the "Configurations" tab. Modify the "...
trusted_official_docs
CPython Docs
This will allow you to use the full Xcode suite of tools for debugging. The arguments used to run the test suite are defined as part of the test plan. To modify the test plan, select the test plan node of the project tree (it should be the first child of the root node), and select the "Configurations" tab. Modify the "...
This will allow you to use the full Xcode suite of tools for debugging. The arguments used to run the test suite are defined as part of the test plan. To modify the test plan, select the test plan node of the project tree (it should be the first child of the root node), and select the "Configurations" tab. Modify the "...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dc1cda4e-8d3d-4bcd-90b7-d84a4e8ea8c2
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,333
supabase-export-v2
174c0c84fbeae0ad
$ python Apple/testbed clone --platform iOS --framework <path/to/Python.xcframework> --app <path/to/module1> --app <path/to/module2> app-testbed Any folders specified with the ``--app`` flag will be copied into the cloned testbed project. The resulting testbed will be created in the ``app-testbed`` folder. In this exam...
trusted_official_docs
CPython Docs
$ python Apple/testbed clone --platform iOS --framework <path/to/Python.xcframework> --app <path/to/module1> --app <path/to/module2> app-testbed Any folders specified with the ``--app`` flag will be copied into the cloned testbed project. The resulting testbed will be created in the ``app-testbed`` folder. In this exam...
$ python Apple/testbed clone --platform iOS --framework <path/to/Python.xcframework> --app <path/to/module1> --app <path/to/module2> app-testbed Any folders specified with the ``--app`` flag will be copied into the cloned testbed project. The resulting testbed will be created in the ``app-testbed`` folder. In this exam...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd4d004a-8b93-4919-885d-a356b3717593
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,292
supabase-export-v2
e924e54f7a0f0bb6
you can split a command line at the first space to get the path to the compiler executable; this isn't the case when using ``xcrun``. To avoid these problems, Python provided stubs for these tools. These stubs are shell script wrappers around the underingly ``xcrun`` tools, distributed in a ``bin`` folder distributed a...
trusted_official_docs
CPython Docs
you can split a command line at the first space to get the path to the compiler executable; this isn't the case when using ``xcrun``. To avoid these problems, Python provided stubs for these tools. These stubs are shell script wrappers around the underingly ``xcrun`` tools, distributed in a ``bin`` folder distributed a...
you can split a command line at the first space to get the path to the compiler executable; this isn't the case when using ``xcrun``. To avoid these problems, Python provided stubs for these tools. These stubs are shell script wrappers around the underingly ``xcrun`` tools, distributed in a ``bin`` folder distributed a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e4fdb9a9-9de4-40cd-aa73-5b7e8293e9e5
CPython Docs
file://datasets/cpython/Doc/using/ios.rst
unknown
43ac2797-18a3-4dd7-b613-308c1c3f8ca3
54,321
supabase-export-v2
4642d162ae5993cc
Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``. Steps 7 and 8 of these instructions assume that you have a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required:
trusted_official_docs
CPython Docs
Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``. Steps 7 and 8 of these instructions assume that you have a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required:
Your app's bundle location can be determined using ``[[NSBundle mainBundle] resourcePath]``. Steps 7 and 8 of these instructions assume that you have a single folder of pure Python application code, named ``app``. If you have third-party binary modules in your app, some additional steps will be required:
python, official-docs, cpython, P0
Local_Trusted_Corpus