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
6779d4ba-42c1-4035-b005-b79415186281
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,760
supabase-export-v2
565d1c4f4f355c90
of a document that you need structured access to. It also has features that allow you to find your way around the DOM. See http://www.prescod.net/python/pulldom DOM applications typically start by parsing some XML into a DOM. How this is accomplished is not covered at all by DOM Level 1, and Level 2 provides only limit...
trusted_official_docs
CPython Docs
of a document that you need structured access to. It also has features that allow you to find your way around the DOM. See http://www.prescod.net/python/pulldom DOM applications typically start by parsing some XML into a DOM. How this is accomplished is not covered at all by DOM Level 1, and Level 2 provides only limit...
of a document that you need structured access to. It also has features that allow you to find your way around the DOM. See http://www.prescod.net/python/pulldom DOM applications typically start by parsing some XML into a DOM. How this is accomplished is not covered at all by DOM Level 1, and Level 2 provides only limit...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6822d659-8488-4153-9b58-cdbdd7c5cb30
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,998
supabase-export-v2
8761e39a3a85c143
.. exception:: NotFoundErr Exception when a node does not exist in the referenced context. For example, :meth:`NamedNodeMap.removeNamedItem` will raise this if the node passed in does not exist in the map.
trusted_official_docs
CPython Docs
.. exception:: NotFoundErr Exception when a node does not exist in the referenced context. For example, :meth:`NamedNodeMap.removeNamedItem` will raise this if the node passed in does not exist in the map.
.. exception:: NotFoundErr Exception when a node does not exist in the referenced context. For example, :meth:`NamedNodeMap.removeNamedItem` will raise this if the node passed in does not exist in the map.
python, official-docs, cpython, P0
Local_Trusted_Corpus
686716d4-e232-457d-97f5-4788ba34f5e4
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,934
supabase-export-v2
cc600ff579c11e10
and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttributeErr` will be raised. .. method:: Element.setAttributeNS(namespaceURI, qname, value)
trusted_official_docs
CPython Docs
and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttributeErr` will be raised. .. method:: Element.setAttributeNS(namespaceURI, qname, value)
and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttributeErr` will be raised. .. method:: Element.setAttributeNS(namespaceURI, qname, value)
python, official-docs, cpython, P0
Local_Trusted_Corpus
7099da01-4f1d-4f81-ae14-add2bbcfd90e
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,976
supabase-export-v2
bca517e7dc15c770
that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception. The Python DOM interface provides the constants, but also expands the set of exceptions so that a specific exception exists for e...
trusted_official_docs
CPython Docs
that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception. The Python DOM interface provides the constants, but also expands the set of exceptions so that a specific exception exists for e...
that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception. The Python DOM interface provides the constants, but also expands the set of exceptions so that a specific exception exists for e...
python, official-docs, cpython, P0
Local_Trusted_Corpus
791bca0b-58f4-43d5-a633-66137151087b
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,860
supabase-export-v2
354bf702e996872b
The number of nodes in the sequence. In addition, the Python DOM interface requires that some additional support is provided to allow :class:`NodeList` objects to be used as Python sequences. All :class:`NodeList` implementations must include support for :meth:`~object.__len__` and :meth:`~object.__getitem__`; this all...
trusted_official_docs
CPython Docs
The number of nodes in the sequence. In addition, the Python DOM interface requires that some additional support is provided to allow :class:`NodeList` objects to be used as Python sequences. All :class:`NodeList` implementations must include support for :meth:`~object.__len__` and :meth:`~object.__getitem__`; this all...
The number of nodes in the sequence. In addition, the Python DOM interface requires that some additional support is provided to allow :class:`NodeList` objects to be used as Python sequences. All :class:`NodeList` implementations must include support for :meth:`~object.__len__` and :meth:`~object.__getitem__`; this all...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c52bc49-ccc4-46fb-a74c-cfbba6593f6c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,839
supabase-export-v2
22761104905585a2
.. note:: This is based on a proposed DOM Level 3 API which is still in the "working draft" stage, but this particular interface appears uncontroversial. Changes from the W3C will not necessarily affect this method in the Python DOM interface (though any new W3C API for this would also be supported).
trusted_official_docs
CPython Docs
.. note:: This is based on a proposed DOM Level 3 API which is still in the "working draft" stage, but this particular interface appears uncontroversial. Changes from the W3C will not necessarily affect this method in the Python DOM interface (though any new W3C API for this would also be supported).
.. note:: This is based on a proposed DOM Level 3 API which is still in the "working draft" stage, but this particular interface appears uncontroversial. Changes from the W3C will not necessarily affect this method in the Python DOM interface (though any new W3C API for this would also be supported).
python, official-docs, cpython, P0
Local_Trusted_Corpus
8510211e-7081-4f95-b378-c849895438a2
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,788
supabase-export-v2
fba9694bb8a82aaf
The definitive documentation for the DOM is the DOM specification from the W3C. Note that DOM attributes may also be manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented.
trusted_official_docs
CPython Docs
The definitive documentation for the DOM is the DOM specification from the W3C. Note that DOM attributes may also be manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented.
The definitive documentation for the DOM is the DOM specification from the W3C. Note that DOM attributes may also be manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented.
python, official-docs, cpython, P0
Local_Trusted_Corpus
85e558be-ea35-49e9-9af3-67533dc6af7c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
46,012
supabase-export-v2
dc871cfa5e847d8f
The exception codes defined in the DOM recommendation map to the exceptions described above according to this table: +--------------------------------------+---------------------------------+ | Constant | Exception | +======================================+=================================+ | :const:`DOMSTRING_SIZE_ERR...
trusted_official_docs
CPython Docs
The exception codes defined in the DOM recommendation map to the exceptions described above according to this table: +--------------------------------------+---------------------------------+ | Constant | Exception | +======================================+=================================+ | :const:`DOMSTRING_SIZE_ERR...
The exception codes defined in the DOM recommendation map to the exceptions described above according to this table: +--------------------------------------+---------------------------------+ | Constant | Exception | +======================================+=================================+ | :const:`DOMSTRING_SIZE_ERR...
python, official-docs, cpython, P0
Local_Trusted_Corpus
89f5f75c-aec0-4e51-8353-7b74c934f8e3
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,755
supabase-export-v2
c2c219dc28ca6065
-------------- The Document Object Model, or "DOM," is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents. A DOM implementation presents an XML document as a tree structure, or allows client code to build such a structure from scratch. It then gives access to the str...
trusted_official_docs
CPython Docs
-------------- The Document Object Model, or "DOM," is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents. A DOM implementation presents an XML document as a tree structure, or allows client code to build such a structure from scratch. It then gives access to the str...
-------------- The Document Object Model, or "DOM," is a cross-language API from the World Wide Web Consortium (W3C) for accessing and modifying XML documents. A DOM implementation presents an XML document as a tree structure, or allows client code to build such a structure from scratch. It then gives access to the str...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8c0275e3-5192-4e56-890e-e305a4f5f40d
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,980
supabase-export-v2
f76c9c322cf58e33
.. exception:: DomstringSizeErr Raised when a specified range of text does not fit into a string. This is not known to be used in the Python DOM implementations, but may be received from DOM implementations not written in Python.
trusted_official_docs
CPython Docs
.. exception:: DomstringSizeErr Raised when a specified range of text does not fit into a string. This is not known to be used in the Python DOM implementations, but may be received from DOM implementations not written in Python.
.. exception:: DomstringSizeErr Raised when a specified range of text does not fit into a string. This is not known to be used in the Python DOM implementations, but may be received from DOM implementations not written in Python.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e086fd5-fb5b-42e0-b67d-0e4445b310be
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,790
supabase-export-v2
d2408d9125a40947
underlying | | | | implementation. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Node` | :ref:`dom-node-objects` | Base interface for most objects | | | | in a document. | +--------------------------------+-----------------------------------+-------...
trusted_official_docs
CPython Docs
underlying | | | | implementation. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Node` | :ref:`dom-node-objects` | Base interface for most objects | | | | in a document. | +--------------------------------+-----------------------------------+-------...
underlying | | | | implementation. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Node` | :ref:`dom-node-objects` | Base interface for most objects | | | | in a document. | +--------------------------------+-----------------------------------+-------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e1e2240-b224-4bd5-9820-02c3bcb9313f
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,843
supabase-export-v2
cda46b075d8d1dfb
.. method:: Node.insertBefore(newChild, refChild) Insert a new child node before an existing child. It must be the case that *refChild* is a child of this node; if not, :exc:`ValueError` is raised. *newChild* is returned. If *refChild* is ``None``, it inserts *newChild* at the end of the children's list.
trusted_official_docs
CPython Docs
.. method:: Node.insertBefore(newChild, refChild) Insert a new child node before an existing child. It must be the case that *refChild* is a child of this node; if not, :exc:`ValueError` is raised. *newChild* is returned. If *refChild* is ``None``, it inserts *newChild* at the end of the children's list.
.. method:: Node.insertBefore(newChild, refChild) Insert a new child node before an existing child. It must be the case that *refChild* is a child of this node; if not, :exc:`ValueError` is raised. *newChild* is returned. If *refChild* is ``None``, it inserts *newChild* at the end of the children's list.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9c91f44c-f677-47dc-a099-07e33ccec7d4
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,966
supabase-export-v2
88a540a144c6618a
.. note:: The use of a :class:`CDATASection` node does not indicate that the node represents a complete CDATA marked section, only that the content of the node was part of a CDATA section. A single CDATA section may be represented by more than one node in the document tree. There is no way to determine whether two ...
trusted_official_docs
CPython Docs
.. note:: The use of a :class:`CDATASection` node does not indicate that the node represents a complete CDATA marked section, only that the content of the node was part of a CDATA section. A single CDATA section may be represented by more than one node in the document tree. There is no way to determine whether two ...
.. note:: The use of a :class:`CDATASection` node does not indicate that the node represents a complete CDATA marked section, only that the content of the node was part of a CDATA section. A single CDATA section may be represented by more than one node in the document tree. There is no way to determine whether two ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a1b9c559-fc3f-42df-a86d-29ee0fdef89f
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,865
supabase-export-v2
a8cb71a28783bea4
if there is no ``DOCTYPE`` declaration for the document, the document's :attr:`doctype` attribute will be set to ``None`` instead of an instance of this interface. :class:`DocumentType` is a specialization of :class:`Node`, and adds the following attributes:
trusted_official_docs
CPython Docs
if there is no ``DOCTYPE`` declaration for the document, the document's :attr:`doctype` attribute will be set to ``None`` instead of an instance of this interface. :class:`DocumentType` is a specialization of :class:`Node`, and adds the following attributes:
if there is no ``DOCTYPE`` declaration for the document, the document's :attr:`doctype` attribute will be set to ``None`` instead of an instance of this interface. :class:`DocumentType` is a specialization of :class:`Node`, and adds the following attributes:
python, official-docs, cpython, P0
Local_Trusted_Corpus
a27becb1-ca68-4f5a-b157-5265c5251c35
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,900
supabase-export-v2
0b134d4dfe7ac235
.. method:: Document.getElementsByTagNameNS(namespaceURI, localName) Search for all descendants (direct children, children's children, etc.) with a particular namespace URI and localname. The localname is the part of the namespace after the prefix.
trusted_official_docs
CPython Docs
.. method:: Document.getElementsByTagNameNS(namespaceURI, localName) Search for all descendants (direct children, children's children, etc.) with a particular namespace URI and localname. The localname is the part of the namespace after the prefix.
.. method:: Document.getElementsByTagNameNS(namespaceURI, localName) Search for all descendants (direct children, children's children, etc.) with a particular namespace URI and localname. The localname is the part of the namespace after the prefix.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a2dd058e-e765-45cb-baa8-09317d729b28
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,849
supabase-export-v2
34bba60278d02528
.. method:: Node.normalize() Join adjacent text nodes so that all stretches of text are stored as single :class:`Text` instances. This simplifies processing text from a DOM tree for many applications.
trusted_official_docs
CPython Docs
.. method:: Node.normalize() Join adjacent text nodes so that all stretches of text are stored as single :class:`Text` instances. This simplifies processing text from a DOM tree for many applications.
.. method:: Node.normalize() Join adjacent text nodes so that all stretches of text are stored as single :class:`Text` instances. This simplifies processing text from a DOM tree for many applications.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a7991b7d-e559-423c-a0a0-d09b0006a698
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,770
supabase-export-v2
9cbcfc05111248ea
.. function:: registerDOMImplementation(name, factory) Register the *factory* function with the name *name*. The factory function should return an object which implements the :class:`DOMImplementation` interface. The factory function can return the same object every time, or a new one for each call, as appropriate f...
trusted_official_docs
CPython Docs
.. function:: registerDOMImplementation(name, factory) Register the *factory* function with the name *name*. The factory function should return an object which implements the :class:`DOMImplementation` interface. The factory function can return the same object every time, or a new one for each call, as appropriate f...
.. function:: registerDOMImplementation(name, factory) Register the *factory* function with the name *name*. The factory function should return an object which implements the :class:`DOMImplementation` interface. The factory function can return the same object every time, or a new one for each call, as appropriate f...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a97e5555-1131-4845-a1fd-bffeba8bf1f5
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,772
supabase-export-v2
89f07271c2e44347
.. function:: getDOMImplementation(name=None, features=()) Return a suitable DOM implementation. The *name* is either well-known, the module name of a DOM implementation, or ``None``. If it is not ``None``, imports the corresponding module and returns a :class:`DOMImplementation` object if the import succeeds. If no...
trusted_official_docs
CPython Docs
.. function:: getDOMImplementation(name=None, features=()) Return a suitable DOM implementation. The *name* is either well-known, the module name of a DOM implementation, or ``None``. If it is not ``None``, imports the corresponding module and returns a :class:`DOMImplementation` object if the import succeeds. If no...
.. function:: getDOMImplementation(name=None, features=()) Return a suitable DOM implementation. The *name* is either well-known, the module name of a DOM implementation, or ``None``. If it is not ``None``, imports the corresponding module and returns a :class:`DOMImplementation` object if the import succeeds. If no...
python, official-docs, cpython, P0
Local_Trusted_Corpus
aa5cdd8c-52f3-4460-9507-0f5ea3a2aba3
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,933
supabase-export-v2
ca130bae4f9b20ba
.. method:: Element.setAttributeNodeNS(newAttr) Add a new attribute node to the element, replacing an existing attribute if necessary if the :attr:`namespaceURI` and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttribu...
trusted_official_docs
CPython Docs
.. method:: Element.setAttributeNodeNS(newAttr) Add a new attribute node to the element, replacing an existing attribute if necessary if the :attr:`namespaceURI` and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttribu...
.. method:: Element.setAttributeNodeNS(newAttr) Add a new attribute node to the element, replacing an existing attribute if necessary if the :attr:`namespaceURI` and :attr:`localName` attributes match. If a replacement occurs, the old attribute node will be returned. If *newAttr* is already in use, :exc:`InuseAttribu...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ab3b42d1-04e3-40b1-ae5b-663e308eb2c9
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,757
supabase-export-v2
eb434d42046f450b
code. SAX does not do it for you. Also, if you need to look ahead in the XML document, you are just out of luck. Some applications are simply impossible in an event driven model with no access to a tree. Of course you could build some sort of tree yourself in SAX events, but the DOM allows you to avoid writing that cod...
trusted_official_docs
CPython Docs
code. SAX does not do it for you. Also, if you need to look ahead in the XML document, you are just out of luck. Some applications are simply impossible in an event driven model with no access to a tree. Of course you could build some sort of tree yourself in SAX events, but the DOM allows you to avoid writing that cod...
code. SAX does not do it for you. Also, if you need to look ahead in the XML document, you are just out of luck. Some applications are simply impossible in an event driven model with no access to a tree. Of course you could build some sort of tree yourself in SAX events, but the DOM allows you to avoid writing that cod...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b70fc3b8-15f4-4c2f-83f8-0babe65f998b
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,793
supabase-export-v2
6f0022a64e008fb0
| | | | the source document. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Text` | :ref:`dom-text-objects` | Nodes containing textual | | | | content from the document. | +--------------------------------+-----------------------------------+--------...
trusted_official_docs
CPython Docs
| | | | the source document. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Text` | :ref:`dom-text-objects` | Nodes containing textual | | | | content from the document. | +--------------------------------+-----------------------------------+--------...
| | | | the source document. | +--------------------------------+-----------------------------------+---------------------------------+ | :class:`Text` | :ref:`dom-text-objects` | Nodes containing textual | | | | content from the document. | +--------------------------------+-----------------------------------+--------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b76e4404-85a9-4ef1-aa30-f834e896d021
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,935
supabase-export-v2
600c6b627ed40133
.. method:: Element.setAttributeNS(namespaceURI, qname, value) Set an attribute value from a string, given a *namespaceURI* and a *qname*. Note that a qname is the whole attribute name. This is different than above.
trusted_official_docs
CPython Docs
.. method:: Element.setAttributeNS(namespaceURI, qname, value) Set an attribute value from a string, given a *namespaceURI* and a *qname*. Note that a qname is the whole attribute name. This is different than above.
.. method:: Element.setAttributeNS(namespaceURI, qname, value) Set an attribute value from a string, given a *namespaceURI* and a *qname*. Note that a qname is the whole attribute name. This is different than above.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b946ca9e-a164-49af-80f2-bebc75ae5246
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,919
supabase-export-v2
481f7e1091606757
.. method:: Element.getAttributeNS(namespaceURI, localName) Return the value of the attribute named by *namespaceURI* and *localName* as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value.
trusted_official_docs
CPython Docs
.. method:: Element.getAttributeNS(namespaceURI, localName) Return the value of the attribute named by *namespaceURI* and *localName* as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value.
.. method:: Element.getAttributeNS(namespaceURI, localName) Return the value of the attribute named by *namespaceURI* and *localName* as a string. If no such attribute exists, an empty string is returned, as if the attribute had no value.
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc345913-0743-45d8-adb7-97ce5d75ac22
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,961
supabase-export-v2
82c19cac18e39cfb
Text and CDATASection Objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The :class:`Text` interface represents text in the XML document. If the parser and DOM implementation support the DOM's XML extension, portions of the text enclosed in CDATA marked sections are stored in :class:`CDATASection` objects. These two interfaces are ...
trusted_official_docs
CPython Docs
Text and CDATASection Objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The :class:`Text` interface represents text in the XML document. If the parser and DOM implementation support the DOM's XML extension, portions of the text enclosed in CDATA marked sections are stored in :class:`CDATASection` objects. These two interfaces are ...
Text and CDATASection Objects ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The :class:`Text` interface represents text in the XML document. If the parser and DOM implementation support the DOM's XML extension, portions of the text enclosed in CDATA marked sections are stored in :class:`CDATASection` objects. These two interfaces are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c49346b4-5e73-43c9-84e9-3a03deebd01c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,784
supabase-export-v2
20d93ca352c4c2c6
the :attr:`nodeType` attribute on concrete :class:`Node` objects; they are located within the class rather than at the module level to conform with the DOM specifications. .. Should the Node documentation go here?
trusted_official_docs
CPython Docs
the :attr:`nodeType` attribute on concrete :class:`Node` objects; they are located within the class rather than at the module level to conform with the DOM specifications. .. Should the Node documentation go here?
the :attr:`nodeType` attribute on concrete :class:`Node` objects; they are located within the class rather than at the module level to conform with the DOM specifications. .. Should the Node documentation go here?
python, official-docs, cpython, P0
Local_Trusted_Corpus
c5a687e9-7666-495d-8769-670bd8a7cf54
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,884
supabase-export-v2
875915f5ed9b5a0d
.. method:: Document.createElement(tagName) Create and return a new element node. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as :meth:`insertBefore` or :meth:`appendChild`.
trusted_official_docs
CPython Docs
.. method:: Document.createElement(tagName) Create and return a new element node. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as :meth:`insertBefore` or :meth:`appendChild`.
.. method:: Document.createElement(tagName) Create and return a new element node. The element is not inserted into the document when it is created. You need to explicitly insert it with one of the other methods such as :meth:`insertBefore` or :meth:`appendChild`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca1a4baf-8f17-4994-9c89-9c2f538e2407
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,809
supabase-export-v2
4c948135e6376bc8
.. attribute:: Node.parentNode The parent of the current node, or ``None`` for the document node. The value is always a :class:`Node` object or ``None``. For :class:`Element` nodes, this will be the parent element, except for the root element, in which case it will be the :class:`Document` object. For :class:`Attr` ...
trusted_official_docs
CPython Docs
.. attribute:: Node.parentNode The parent of the current node, or ``None`` for the document node. The value is always a :class:`Node` object or ``None``. For :class:`Element` nodes, this will be the parent element, except for the root element, in which case it will be the :class:`Document` object. For :class:`Attr` ...
.. attribute:: Node.parentNode The parent of the current node, or ``None`` for the document node. The value is always a :class:`Node` object or ``None``. For :class:`Element` nodes, this will be the parent element, except for the root element, in which case it will be the :class:`Document` object. For :class:`Attr` ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cabbe0fe-896f-4786-8784-8dfa9f7dcee9
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,864
supabase-export-v2
e92605b4f503b371
DocumentType Objects ^^^^^^^^^^^^^^^^^^^^ Information about the notations and entities declared by a document (including the external subset if the parser uses it and can provide the information) is available from a :class:`DocumentType` object. The :class:`DocumentType` for a document is available from the :class:`Doc...
trusted_official_docs
CPython Docs
DocumentType Objects ^^^^^^^^^^^^^^^^^^^^ Information about the notations and entities declared by a document (including the external subset if the parser uses it and can provide the information) is available from a :class:`DocumentType` object. The :class:`DocumentType` for a document is available from the :class:`Doc...
DocumentType Objects ^^^^^^^^^^^^^^^^^^^^ Information about the notations and entities declared by a document (including the external subset if the parser uses it and can provide the information) is available from a :class:`DocumentType` object. The :class:`DocumentType` for a document is available from the :class:`Doc...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cd1becec-4106-49a4-9f28-7012a093eede
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,996
supabase-export-v2
beb8217e5ce37c64
.. exception:: NamespaceErr If an attempt is made to change any object in a way that is not permitted with regard to the `Namespaces in XML <https://www.w3.org/TR/REC-xml-names/>`_ recommendation, this exception is raised.
trusted_official_docs
CPython Docs
.. exception:: NamespaceErr If an attempt is made to change any object in a way that is not permitted with regard to the `Namespaces in XML <https://www.w3.org/TR/REC-xml-names/>`_ recommendation, this exception is raised.
.. exception:: NamespaceErr If an attempt is made to change any object in a way that is not permitted with regard to the `Namespaces in XML <https://www.w3.org/TR/REC-xml-names/>`_ recommendation, this exception is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf6722da-e674-4cec-81a1-3f367c3008d5
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,855
supabase-export-v2
f4db30b7c84c82d2
provides one as its list of child nodes, and the :meth:`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of :class:`Node` return objects with this interface to represent query results. The DOM Level 2 recommendation defines one method and one attribute for these objects:
trusted_official_docs
CPython Docs
provides one as its list of child nodes, and the :meth:`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of :class:`Node` return objects with this interface to represent query results. The DOM Level 2 recommendation defines one method and one attribute for these objects:
provides one as its list of child nodes, and the :meth:`getElementsByTagName` and :meth:`getElementsByTagNameNS` methods of :class:`Node` return objects with this interface to represent query results. The DOM Level 2 recommendation defines one method and one attribute for these objects:
python, official-docs, cpython, P0
Local_Trusted_Corpus
d026d425-577b-4b09-b58b-d02f6c699de7
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,762
supabase-export-v2
1503c7fd54d9a00d
properties and methods. These properties are defined in the DOM specification; this portion of the reference manual describes the interpretation of the specification in Python. The specification provided by the W3C defines the DOM API for Java, ECMAScript, and OMG IDL. The Python mapping defined here is based in large ...
trusted_official_docs
CPython Docs
properties and methods. These properties are defined in the DOM specification; this portion of the reference manual describes the interpretation of the specification in Python. The specification provided by the W3C defines the DOM API for Java, ECMAScript, and OMG IDL. The Python mapping defined here is based in large ...
properties and methods. These properties are defined in the DOM specification; this portion of the reference manual describes the interpretation of the specification in Python. The specification provided by the W3C defines the DOM API for Java, ECMAScript, and OMG IDL. The Python mapping defined here is based in large ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d756a65d-c960-4f45-b03c-ed7742e7eedb
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,975
supabase-export-v2
f4a523a229203490
Exceptions ^^^^^^^^^^ The DOM Level 2 recommendation defines a single exception, :exc:`DOMException`, and a number of constants that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception.
trusted_official_docs
CPython Docs
Exceptions ^^^^^^^^^^ The DOM Level 2 recommendation defines a single exception, :exc:`DOMException`, and a number of constants that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception.
Exceptions ^^^^^^^^^^ The DOM Level 2 recommendation defines a single exception, :exc:`DOMException`, and a number of constants that allow applications to determine what sort of error occurred. :exc:`DOMException` instances carry a :attr:`code` attribute that provides the appropriate value for the specific exception.
python, official-docs, cpython, P0
Local_Trusted_Corpus
da43c9a9-c5fc-4eb6-9c0f-f4bb1e8e0985
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,847
supabase-export-v2
f0c4d67742425a46
.. method:: Node.replaceChild(newChild, oldChild) Replace an existing node with a new node. It must be the case that *oldChild* is a child of this node; if not, :exc:`ValueError` is raised.
trusted_official_docs
CPython Docs
.. method:: Node.replaceChild(newChild, oldChild) Replace an existing node with a new node. It must be the case that *oldChild* is a child of this node; if not, :exc:`ValueError` is raised.
.. method:: Node.replaceChild(newChild, oldChild) Replace an existing node with a new node. It must be the case that *oldChild* is a child of this node; if not, :exc:`ValueError` is raised.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dac80d7a-cd55-43f7-a9be-2a240cf04a52
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,896
supabase-export-v2
eec1b549e75f4ba5
.. method:: Document.createAttributeNS(namespaceURI, qualifiedName) Create and return an attribute node with a namespace. The *tagName* may have a prefix. This method does not associate the attribute node with any particular element. You must use :meth:`setAttributeNode` on the appropriate :class:`Element` object to...
trusted_official_docs
CPython Docs
.. method:: Document.createAttributeNS(namespaceURI, qualifiedName) Create and return an attribute node with a namespace. The *tagName* may have a prefix. This method does not associate the attribute node with any particular element. You must use :meth:`setAttributeNode` on the appropriate :class:`Element` object to...
.. method:: Document.createAttributeNS(namespaceURI, qualifiedName) Create and return an attribute node with a namespace. The *tagName* may have a prefix. This method does not associate the attribute node with any particular element. You must use :meth:`setAttributeNode` on the appropriate :class:`Element` object to...
python, official-docs, cpython, P0
Local_Trusted_Corpus
dc24435f-7b32-434b-9670-30d137b37948
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
46,023
supabase-export-v2
2e190a75d9c8a5af
particular, does not require that the IDL attributes are accessible as normal Python attributes: ``object.someValue`` is *not* required to work, and may raise an :exc:`AttributeError`. The Python DOM API, however, *does* require that normal attribute access work. This means that the typical surrogates generated by Pyth...
trusted_official_docs
CPython Docs
particular, does not require that the IDL attributes are accessible as normal Python attributes: ``object.someValue`` is *not* required to work, and may raise an :exc:`AttributeError`. The Python DOM API, however, *does* require that normal attribute access work. This means that the typical surrogates generated by Pyth...
particular, does not require that the IDL attributes are accessible as normal Python attributes: ``object.someValue`` is *not* required to work, and may raise an :exc:`AttributeError`. The Python DOM API, however, *does* require that normal attribute access work. This means that the typical surrogates generated by Pyth...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e94654e2-6bf3-41b8-99fa-1307584ef932
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,756
supabase-export-v2
1ee3eea99420cacb
client code to build such a structure from scratch. It then gives access to the structure through a set of objects which provided well-known interfaces. The DOM is extremely useful for random-access applications. SAX only allows you a view of one bit of the document at a time. If you are looking at one SAX element, you...
trusted_official_docs
CPython Docs
client code to build such a structure from scratch. It then gives access to the structure through a set of objects which provided well-known interfaces. The DOM is extremely useful for random-access applications. SAX only allows you a view of one bit of the document at a time. If you are looking at one SAX element, you...
client code to build such a structure from scratch. It then gives access to the structure through a set of objects which provided well-known interfaces. The DOM is extremely useful for random-access applications. SAX only allows you a view of one bit of the document at a time. If you are looking at one SAX element, you...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e9a2693d-7f44-4d8d-8cf9-32eb3b314351
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,789
supabase-export-v2
ee4eaca7d708b74a
manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented. +--------------------------------+-----------------------------------+---------------------------------+ | Interface | Section | Purpose | +================================+=========...
trusted_official_docs
CPython Docs
manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented. +--------------------------------+-----------------------------------+---------------------------------+ | Interface | Section | Purpose | +================================+=========...
manipulated as nodes instead of as simple strings. It is fairly rare that you must do this, however, so this usage is not yet documented. +--------------------------------+-----------------------------------+---------------------------------+ | Interface | Section | Purpose | +================================+=========...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebb5a1a9-6dbe-4da6-b6b8-3ac6652b8d96
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,890
supabase-export-v2
51cd5b25cbabdca4
.. method:: Document.createComment(data) Create and return a comment node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.
trusted_official_docs
CPython Docs
.. method:: Document.createComment(data) Create and return a comment node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.
.. method:: Document.createComment(data) Create and return a comment node containing the data passed as a parameter. As with the other creation methods, this one does not insert the node into the tree.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebe36405-22c1-4541-b55d-be8fd7b78122
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,871
supabase-export-v2
3a0dc1c9453c2587
.. attribute:: DocumentType.internalSubset A string giving the complete internal subset from the document. This does not include the brackets which enclose the subset. If the document has no internal subset, this should be ``None``.
trusted_official_docs
CPython Docs
.. attribute:: DocumentType.internalSubset A string giving the complete internal subset from the document. This does not include the brackets which enclose the subset. If the document has no internal subset, this should be ``None``.
.. attribute:: DocumentType.internalSubset A string giving the complete internal subset from the document. This does not include the brackets which enclose the subset. If the document has no internal subset, this should be ``None``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ede798d6-3dae-4a95-9b80-0a933361e25d
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,857
supabase-export-v2
326e451ede55ab9a
.. method:: NodeList.item(i) Return the *i*'th item from the sequence, if there is one, or ``None``. The index *i* is not allowed to be less than zero or greater than or equal to the length of the sequence.
trusted_official_docs
CPython Docs
.. method:: NodeList.item(i) Return the *i*'th item from the sequence, if there is one, or ``None``. The index *i* is not allowed to be less than zero or greater than or equal to the length of the sequence.
.. method:: NodeList.item(i) Return the *i*'th item from the sequence, if there is one, or ``None``. The index *i* is not allowed to be less than zero or greater than or equal to the length of the sequence.
python, official-docs, cpython, P0
Local_Trusted_Corpus
eebf12bf-7353-4b7f-9232-0bb126e334de
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,875
supabase-export-v2
3b759966b62b57e6
.. attribute:: DocumentType.entities This is a :class:`NamedNodeMap` giving the definitions of external entities. For entity names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be ``None`` if the information is not provided by the pa...
trusted_official_docs
CPython Docs
.. attribute:: DocumentType.entities This is a :class:`NamedNodeMap` giving the definitions of external entities. For entity names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be ``None`` if the information is not provided by the pa...
.. attribute:: DocumentType.entities This is a :class:`NamedNodeMap` giving the definitions of external entities. For entity names defined more than once, only the first definition is provided (others are ignored as required by the XML recommendation). This may be ``None`` if the information is not provided by the pa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f1948688-859d-4fdd-bef5-d27a5f52cf8c
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
46,021
supabase-export-v2
e3c8ae72a415b8a8
from OMG IDL to Python defines accessor functions for IDL ``attribute`` declarations in much the way the Java mapping does. Mapping the IDL declarations :: readonly attribute string someValue; attribute string anotherValue;
trusted_official_docs
CPython Docs
from OMG IDL to Python defines accessor functions for IDL ``attribute`` declarations in much the way the Java mapping does. Mapping the IDL declarations :: readonly attribute string someValue; attribute string anotherValue;
from OMG IDL to Python defines accessor functions for IDL ``attribute`` declarations in much the way the Java mapping does. Mapping the IDL declarations :: readonly attribute string someValue; attribute string anotherValue;
python, official-docs, cpython, P0
Local_Trusted_Corpus
f7425eca-1118-42dd-8c29-c9123e96c6f5
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,773
supabase-export-v2
38c79a0b0dd610e9
if the import succeeds. If no name is given, and if the environment variable :envvar:`PYTHON_DOM` is set, this variable is used to find the implementation. If name is not given, this examines the available implementations to find one with the required feature set. If no implementation can be found, raise an :exc:`Imp...
trusted_official_docs
CPython Docs
if the import succeeds. If no name is given, and if the environment variable :envvar:`PYTHON_DOM` is set, this variable is used to find the implementation. If name is not given, this examines the available implementations to find one with the required feature set. If no implementation can be found, raise an :exc:`Imp...
if the import succeeds. If no name is given, and if the environment variable :envvar:`PYTHON_DOM` is set, this variable is used to find the implementation. If name is not given, this examines the available implementations to find one with the required feature set. If no implementation can be found, raise an :exc:`Imp...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f9db7fed-b1b3-41c4-88bc-3d7f23d3534d
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,774
supabase-export-v2
a15b8a80b12256b5
raise an :exc:`ImportError`. The features list must be a sequence of ``(feature, version)`` pairs which are passed to the :meth:`hasFeature` method on available :class:`DOMImplementation` objects. Some convenience constants are also provided:
trusted_official_docs
CPython Docs
raise an :exc:`ImportError`. The features list must be a sequence of ``(feature, version)`` pairs which are passed to the :meth:`hasFeature` method on available :class:`DOMImplementation` objects. Some convenience constants are also provided:
raise an :exc:`ImportError`. The features list must be a sequence of ``(feature, version)`` pairs which are passed to the :meth:`hasFeature` method on available :class:`DOMImplementation` objects. Some convenience constants are also provided:
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd365951-541d-475c-a7b1-63e1a4a8b182
CPython Docs
file://datasets/cpython/Doc/library/xml.dom.rst
unknown
b2833e10-6879-4e3d-adad-cb3cf5247c20
45,845
supabase-export-v2
83446b4879ed738d
.. method:: Node.removeChild(oldChild) Remove a child node. *oldChild* must be a child of this node; if not, :exc:`ValueError` is raised. *oldChild* is returned on success. If *oldChild* will not be used further, its :meth:`unlink` method should be called.
trusted_official_docs
CPython Docs
.. method:: Node.removeChild(oldChild) Remove a child node. *oldChild* must be a child of this node; if not, :exc:`ValueError` is raised. *oldChild* is returned on success. If *oldChild* will not be used further, its :meth:`unlink` method should be called.
.. method:: Node.removeChild(oldChild) Remove a child node. *oldChild* must be a child of this node; if not, :exc:`ValueError` is raised. *oldChild* is returned on success. If *oldChild* will not be used further, its :meth:`unlink` method should be called.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a82df8f-f1f9-462f-a042-ba807c36ca31
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,111
supabase-export-v2
041c28dfc2d80434
.. attribute:: shlex.punctuation_chars A read-only property. Characters that will be considered punctuation. Runs of punctuation characters will be returned as a single token. However, note that no semantic validity checking will be performed: for example, '>>>' could be returned as a token, even though it may not b...
trusted_official_docs
CPython Docs
.. attribute:: shlex.punctuation_chars A read-only property. Characters that will be considered punctuation. Runs of punctuation characters will be returned as a single token. However, note that no semantic validity checking will be performed: for example, '>>>' could be returned as a token, even though it may not b...
.. attribute:: shlex.punctuation_chars A read-only property. Characters that will be considered punctuation. Runs of punctuation characters will be returned as a single token. However, note that no semantic validity checking will be performed: for example, '>>>' could be returned as a token, even though it may not b...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b4a5d54-d4d9-4e55-829c-ef8ffe3f8399
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,082
supabase-export-v2
3ae52bc5f843a83f
.. attribute:: shlex.commenters The string of characters that are recognized as comment beginners. All characters from the comment beginner to end of line are ignored. Includes just ``'#'`` by default.
trusted_official_docs
CPython Docs
.. attribute:: shlex.commenters The string of characters that are recognized as comment beginners. All characters from the comment beginner to end of line are ignored. Includes just ``'#'`` by default.
.. attribute:: shlex.commenters The string of characters that are recognized as comment beginners. All characters from the comment beginner to end of line are ignored. Includes just ``'#'`` by default.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f45aeea-23ee-4607-a2c3-b4cc6041d289
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,048
supabase-export-v2
8daa57621f06fdd0
:func:`quote` lets you plug the security hole: >>> from shlex import quote >>> command = 'ls -l {}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"''
trusted_official_docs
CPython Docs
:func:`quote` lets you plug the security hole: >>> from shlex import quote >>> command = 'ls -l {}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"''
:func:`quote` lets you plug the security hole: >>> from shlex import quote >>> command = 'ls -l {}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"''
python, official-docs, cpython, P0
Local_Trusted_Corpus
102cca14-eb6a-400d-b79d-3f0e1a363a27
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,066
supabase-export-v2
5066591fa7a53149
.. method:: shlex.read_token() Read a raw token. Ignore the pushback stack, and do not interpret source requests. (This is not ordinarily a useful entry point, and is documented here only for the sake of completeness.)
trusted_official_docs
CPython Docs
.. method:: shlex.read_token() Read a raw token. Ignore the pushback stack, and do not interpret source requests. (This is not ordinarily a useful entry point, and is documented here only for the sake of completeness.)
.. method:: shlex.read_token() Read a raw token. Ignore the pushback stack, and do not interpret source requests. (This is not ordinarily a useful entry point, and is documented here only for the sake of completeness.)
python, official-docs, cpython, P0
Local_Trusted_Corpus
190e6bbe-2aab-481b-9594-02ae5cce0883
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,127
supabase-export-v2
71531c8018c9ae02
special meaning only when followed by the quote in use, or the escape character itself. Otherwise the escape character will be considered a normal character. * EOF is signaled with a :const:`None` value;
trusted_official_docs
CPython Docs
special meaning only when followed by the quote in use, or the escape character itself. Otherwise the escape character will be considered a normal character. * EOF is signaled with a :const:`None` value;
special meaning only when followed by the quote in use, or the escape character itself. Otherwise the escape character will be considered a normal character. * EOF is signaled with a :const:`None` value;
python, official-docs, cpython, P0
Local_Trusted_Corpus
232c5ae4-fe76-4e30-bd8e-1e71533f7933
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,049
supabase-export-v2
7670385538c2c700
{}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"'' The quoting is compatible with UNIX shells and with :func:`split`:
trusted_official_docs
CPython Docs
{}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"'' The quoting is compatible with UNIX shells and with :func:`split`:
{}'.format(quote(filename)) >>> print(command) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {}'.format(quote(command)) >>> print(remote_command) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"'' The quoting is compatible with UNIX shells and with :func:`split`:
python, official-docs, cpython, P0
Local_Trusted_Corpus
239ae19f-bc7c-477a-b35a-0b4c14056394
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,101
supabase-export-v2
4eddef3010564efc
.. attribute:: shlex.source This attribute is ``None`` by default. If you assign a string to it, that string will be recognized as a lexical-level inclusion request similar to the ``source`` keyword in various shells. That is, the immediately following token will be opened as a filename and input will be taken from ...
trusted_official_docs
CPython Docs
.. attribute:: shlex.source This attribute is ``None`` by default. If you assign a string to it, that string will be recognized as a lexical-level inclusion request similar to the ``source`` keyword in various shells. That is, the immediately following token will be opened as a filename and input will be taken from ...
.. attribute:: shlex.source This attribute is ``None`` by default. If you assign a string to it, that string will be recognized as a lexical-level inclusion request similar to the ``source`` keyword in various shells. That is, the immediately following token will be opened as a filename and input will be taken from ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
2dcf69e6-16cd-4b04-ac20-d27c4b3dc82c
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,074
supabase-export-v2
32feb1e76bad9c2d
.. method:: shlex.push_source(newstream, newfile=None) Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the :meth:`sourcehook` method.
trusted_official_docs
CPython Docs
.. method:: shlex.push_source(newstream, newfile=None) Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the :meth:`sourcehook` method.
.. method:: shlex.push_source(newstream, newfile=None) Push an input source stream onto the input stack. If the filename argument is specified it will later be available for use in error messages. This is the same method used internally by the :meth:`sourcehook` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
312665f8-b3d4-466b-ba2b-ec575501eee9
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,103
supabase-export-v2
4e550475b6a09ec2
.. attribute:: shlex.debug If this attribute is numeric and ``1`` or more, a :class:`~shlex.shlex` instance will print verbose progress output on its behavior. If you need to use this, you can read the module source code to learn the details.
trusted_official_docs
CPython Docs
.. attribute:: shlex.debug If this attribute is numeric and ``1`` or more, a :class:`~shlex.shlex` instance will print verbose progress output on its behavior. If you need to use this, you can read the module source code to learn the details.
.. attribute:: shlex.debug If this attribute is numeric and ``1`` or more, a :class:`~shlex.shlex` instance will print verbose progress output on its behavior. If you need to use this, you can read the module source code to learn the details.
python, official-docs, cpython, P0
Local_Trusted_Corpus
33a7a543-4f35-4e01-88c1-b1f17ac881b0
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,132
supabase-export-v2
86151b567085d062
.. versionadded:: 3.6 The :class:`shlex` class provides compatibility with the parsing performed by common Unix shells like ``bash``, ``dash``, and ``sh``. To take advantage of this compatibility, specify the ``punctuation_chars`` argument in the constructor. This defaults to ``False``, which preserves pre-3.6 behaviou...
trusted_official_docs
CPython Docs
.. versionadded:: 3.6 The :class:`shlex` class provides compatibility with the parsing performed by common Unix shells like ``bash``, ``dash``, and ``sh``. To take advantage of this compatibility, specify the ``punctuation_chars`` argument in the constructor. This defaults to ``False``, which preserves pre-3.6 behaviou...
.. versionadded:: 3.6 The :class:`shlex` class provides compatibility with the parsing performed by common Unix shells like ``bash``, ``dash``, and ``sh``. To take advantage of this compatibility, specify the ``punctuation_chars`` argument in the constructor. This defaults to ``False``, which preserves pre-3.6 behaviou...
python, official-docs, cpython, P0
Local_Trusted_Corpus
347bee88-6ea9-46f0-8715-e28c1c712f15
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,062
supabase-export-v2
745527c4d6cb3259
.. method:: shlex.get_token() Return a token. If tokens have been stacked using :meth:`push_token`, pop a token off the stack. Otherwise, read one from the input stream. If reading encounters an immediate end-of-file, :attr:`eof` is returned (the empty string (``''``) in non-POSIX mode, and ``None`` in POSIX mode).
trusted_official_docs
CPython Docs
.. method:: shlex.get_token() Return a token. If tokens have been stacked using :meth:`push_token`, pop a token off the stack. Otherwise, read one from the input stream. If reading encounters an immediate end-of-file, :attr:`eof` is returned (the empty string (``''``) in non-POSIX mode, and ``None`` in POSIX mode).
.. method:: shlex.get_token() Return a token. If tokens have been stacked using :meth:`push_token`, pop a token off the stack. Otherwise, read one from the input stream. If reading encounters an immediate end-of-file, :attr:`eof` is returned (the empty string (``''``) in non-POSIX mode, and ``None`` in POSIX mode).
python, official-docs, cpython, P0
Local_Trusted_Corpus
34d41275-90d6-4f89-be55-f06f1ba6dd46
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,138
supabase-export-v2
b4c525f601706341
>>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c'] .. note:: When ``punctuation_chars`` is specified, the :attr:`~shlex.wordchars` attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (incl...
trusted_official_docs
CPython Docs
>>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c'] .. note:: When ``punctuation_chars`` is specified, the :attr:`~shlex.wordchars` attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (incl...
>>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c'] .. note:: When ``punctuation_chars`` is specified, the :attr:`~shlex.wordchars` attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (incl...
python, official-docs, cpython, P0
Local_Trusted_Corpus
388a698e-89fc-47e9-bb3c-4a8b3e8aef11
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,140
supabase-export-v2
e415db71d2761d28
>>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?'] However, to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr...
trusted_official_docs
CPython Docs
>>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?'] However, to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr...
>>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a', '&&', 'b-c', '--color=auto', '||', 'd', '*.py?'] However, to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr...
python, official-docs, cpython, P0
Local_Trusted_Corpus
39d10ad0-17db-4637-8ae3-5221e1e46727
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,137
supabase-export-v2
3f3594a18c55d80f
value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters constitute punctuation. For example:: >>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c']
trusted_official_docs
CPython Docs
value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters constitute punctuation. For example:: >>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c']
value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters constitute punctuation. For example:: >>> import shlex >>> s = shlex.shlex("a && b || c", punctuation_chars="|") >>> list(s) ['a', '&', '&', 'b', '||', 'c']
python, official-docs, cpython, P0
Local_Trusted_Corpus
428c2378-ca0f-4b4c-b01b-519019ee5c70
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,033
supabase-export-v2
b5307a58d9ca6b73
.. function:: split(s, comments=False, posix=True) Split the string *s* using shell-like syntax. If *comments* is :const:`False` (the default), the parsing of comments in the given string will be disabled (setting the :attr:`~shlex.commenters` attribute of the :class:`~shlex.shlex` instance to the empty string). Thi...
trusted_official_docs
CPython Docs
.. function:: split(s, comments=False, posix=True) Split the string *s* using shell-like syntax. If *comments* is :const:`False` (the default), the parsing of comments in the given string will be disabled (setting the :attr:`~shlex.commenters` attribute of the :class:`~shlex.shlex` instance to the empty string). Thi...
.. function:: split(s, comments=False, posix=True) Split the string *s* using shell-like syntax. If *comments* is :const:`False` (the default), the parsing of comments in the given string will be disabled (setting the :attr:`~shlex.commenters` attribute of the :class:`~shlex.shlex` instance to the empty string). Thi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
543d0db5-4a51-415b-b426-64e60336c3d5
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,079
supabase-export-v2
c3826f80cd95d338
the name of the current source file and the ``%d`` with the current input line number (the optional arguments can be used to override these). This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools.
trusted_official_docs
CPython Docs
the name of the current source file and the ``%d`` with the current input line number (the optional arguments can be used to override these). This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools.
the name of the current source file and the ``%d`` with the current input line number (the optional arguments can be used to override these). This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools.
python, official-docs, cpython, P0
Local_Trusted_Corpus
54a8d847-810a-41b9-936e-75a297a25a36
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,055
supabase-export-v2
015a15ec6e56af04
will operate in compatibility mode. When operating in POSIX mode, :class:`~shlex.shlex` will try to be as close as possible to the POSIX shell parsing rules. The *punctuation_chars* argument provides a way to make the behaviour even closer to how real shells parse. This can take a number of values: the default value,...
trusted_official_docs
CPython Docs
will operate in compatibility mode. When operating in POSIX mode, :class:`~shlex.shlex` will try to be as close as possible to the POSIX shell parsing rules. The *punctuation_chars* argument provides a way to make the behaviour even closer to how real shells parse. This can take a number of values: the default value,...
will operate in compatibility mode. When operating in POSIX mode, :class:`~shlex.shlex` will try to be as close as possible to the POSIX shell parsing rules. The *punctuation_chars* argument provides a way to make the behaviour even closer to how real shells parse. This can take a number of values: the default value,...
python, official-docs, cpython, P0
Local_Trusted_Corpus
54b4ce6a-3a06-47b0-b801-6c8fc6c03d0c
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,046
supabase-export-v2
1faf3d0ce54bed61
This idiom would be unsafe: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~
trusted_official_docs
CPython Docs
This idiom would be unsafe: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~
This idiom would be unsafe: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~
python, official-docs, cpython, P0
Local_Trusted_Corpus
5a0321d6-4f59-48e2-bdea-ff59f4297709
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,054
supabase-export-v2
ce34ec8f22e3509f
.. class:: shlex(instream=None, infile=None, posix=False, punctuation_chars=False) A :class:`~shlex.shlex` instance or subclass instance is a lexical analyzer object. The initialization argument, if present, specifies where to read characters from. It must be a file-/stream-like object with :meth:`~io.TextIOBase.rea...
trusted_official_docs
CPython Docs
.. class:: shlex(instream=None, infile=None, posix=False, punctuation_chars=False) A :class:`~shlex.shlex` instance or subclass instance is a lexical analyzer object. The initialization argument, if present, specifies where to read characters from. It must be a file-/stream-like object with :meth:`~io.TextIOBase.rea...
.. class:: shlex(instream=None, infile=None, posix=False, punctuation_chars=False) A :class:`~shlex.shlex` instance or subclass instance is a lexical analyzer object. The initialization argument, if present, specifies where to read characters from. It must be a file-/stream-like object with :meth:`~io.TextIOBase.rea...
python, official-docs, cpython, P0
Local_Trusted_Corpus
601f5d5f-325e-4726-af3a-1cfadc5065da
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,123
supabase-export-v2
f0ec63edf7b0b78c
When operating in POSIX mode, :class:`~shlex.shlex` will try to obey the following parsing rules. * Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``);
trusted_official_docs
CPython Docs
When operating in POSIX mode, :class:`~shlex.shlex` will try to obey the following parsing rules. * Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``);
When operating in POSIX mode, :class:`~shlex.shlex` will try to obey the following parsing rules. * Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``);
python, official-docs, cpython, P0
Local_Trusted_Corpus
63b047bb-a067-44e2-9db7-0daea17b0a71
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,044
supabase-export-v2
228897c8d663cc05
other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnerability. Consider using functions that pass command arguments with lists such as :func:`subprocess.run` with ``shell=False``.
trusted_official_docs
CPython Docs
other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnerability. Consider using functions that pass command arguments with lists such as :func:`subprocess.run` with ``shell=False``.
other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnerability. Consider using functions that pass command arguments with lists such as :func:`subprocess.run` with ``shell=False``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6b312312-65de-473e-a92b-c83d28661f9a
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,037
supabase-export-v2
ca7fcb5e75885745
Concatenate the tokens of the list *split_command* and return a string. This function is the inverse of :func:`split`. >>> from shlex import join >>> print(join(['echo', '-n', 'Multiple words'])) echo -n 'Multiple words'
trusted_official_docs
CPython Docs
Concatenate the tokens of the list *split_command* and return a string. This function is the inverse of :func:`split`. >>> from shlex import join >>> print(join(['echo', '-n', 'Multiple words'])) echo -n 'Multiple words'
Concatenate the tokens of the list *split_command* and return a string. This function is the inverse of :func:`split`. >>> from shlex import join >>> print(join(['echo', '-n', 'Multiple words'])) echo -n 'Multiple words'
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e882be4-033c-415c-a540-a31747e4b234
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,084
supabase-export-v2
9345d38bad0c271b
.. attribute:: shlex.wordchars The string of characters that will accumulate into multi-character tokens. By default, includes all ASCII alphanumerics and underscore. In POSIX mode, the accented characters in the Latin-1 set are also included. If :attr:`punctuation_chars` is not empty, the characters ``~-./*?=``, wh...
trusted_official_docs
CPython Docs
.. attribute:: shlex.wordchars The string of characters that will accumulate into multi-character tokens. By default, includes all ASCII alphanumerics and underscore. In POSIX mode, the accented characters in the Latin-1 set are also included. If :attr:`punctuation_chars` is not empty, the characters ``~-./*?=``, wh...
.. attribute:: shlex.wordchars The string of characters that will accumulate into multi-character tokens. By default, includes all ASCII alphanumerics and underscore. In POSIX mode, the accented characters in the Latin-1 set are also included. If :attr:`punctuation_chars` is not empty, the characters ``~-./*?=``, wh...
python, official-docs, cpython, P0
Local_Trusted_Corpus
73f7be93-7ad4-473d-8b99-f414569c9326
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,047
supabase-export-v2
f48360cd43998e6e
= 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~ :func:`quote` lets you plug the security hole:
trusted_official_docs
CPython Docs
= 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~ :func:`quote` lets you plug the security hole:
= 'somefile; rm -rf ~' >>> command = 'ls -l {}'.format(filename) >>> print(command) # executed by a shell: boom! ls -l somefile; rm -rf ~ :func:`quote` lets you plug the security hole:
python, official-docs, cpython, P0
Local_Trusted_Corpus
76640023-8ccc-44a4-95c3-f86408673234
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,126
supabase-export-v2
2c3fdb6c3e9d19ef
* Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes; * Enclosing characters in quotes which are part of :attr:`~shlex.escapedquotes` (e.g. ``'"'``) preserves the literal value of all characters within the quo...
trusted_official_docs
CPython Docs
* Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes; * Enclosing characters in quotes which are part of :attr:`~shlex.escapedquotes` (e.g. ``'"'``) preserves the literal value of all characters within the quo...
* Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes; * Enclosing characters in quotes which are part of :attr:`~shlex.escapedquotes` (e.g. ``'"'``) preserves the literal value of all characters within the quo...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7cc72908-1d99-4314-a3da-dd755f2af669
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,136
supabase-export-v2
3850349169c007a0
Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens. Instead of passing ``True`` as the value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters con...
trusted_official_docs
CPython Docs
Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens. Instead of passing ``True`` as the value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters con...
Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens. Instead of passing ``True`` as the value for the punctuation_chars parameter, you can pass a string with specific characters, which will be used to determine which characters con...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7fe9f2c4-2d2e-474c-876f-0b310c270814
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,078
supabase-export-v2
5a8f5548e2475fe2
.. method:: shlex.error_leader(infile=None, lineno=None) This method generates an error message leader in the format of a Unix C compiler error label; the format is ``'"%s", line %d: '``, where the ``%s`` is replaced with the name of the current source file and the ``%d`` with the current input line number (the opti...
trusted_official_docs
CPython Docs
.. method:: shlex.error_leader(infile=None, lineno=None) This method generates an error message leader in the format of a Unix C compiler error label; the format is ``'"%s", line %d: '``, where the ``%s`` is replaced with the name of the current source file and the ``%d`` with the current input line number (the opti...
.. method:: shlex.error_leader(infile=None, lineno=None) This method generates an error message leader in the format of a Unix C compiler error label; the format is ``'"%s", line %d: '``, where the ``%s`` is replaced with the name of the current source file and the ``%d`` with the current input line number (the opti...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8106a8a4-1e31-4ed3-af16-b0e12c04c0d0
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,095
supabase-export-v2
0358370c1e80d79b
tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespace in addition to those characters. .. versionchanged:: 3.8 The :attr:`punctuation_chars` attribute was made compatible with the :attr:`whitespace_split` attribute.
trusted_official_docs
CPython Docs
tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespace in addition to those characters. .. versionchanged:: 3.8 The :attr:`punctuation_chars` attribute was made compatible with the :attr:`whitespace_split` attribute.
tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespace in addition to those characters. .. versionchanged:: 3.8 The :attr:`punctuation_chars` attribute was made compatible with the :attr:`whitespace_split` attribute.
python, official-docs, cpython, P0
Local_Trusted_Corpus
918f8d4f-7268-4f53-81ea-5543414b8592
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,050
supabase-export-v2
65ad34887e9f3437
The quoting is compatible with UNIX shells and with :func:`split`: >>> from shlex import split >>> remote_command = split(remote_command) >>> remote_command ['ssh', 'home', "ls -l 'somefile; rm -rf ~'"] >>> command = split(remote_command[-1]) >>> command ['ls', '-l', 'somefile; rm -rf ~']
trusted_official_docs
CPython Docs
The quoting is compatible with UNIX shells and with :func:`split`: >>> from shlex import split >>> remote_command = split(remote_command) >>> remote_command ['ssh', 'home', "ls -l 'somefile; rm -rf ~'"] >>> command = split(remote_command[-1]) >>> command ['ls', '-l', 'somefile; rm -rf ~']
The quoting is compatible with UNIX shells and with :func:`split`: >>> from shlex import split >>> remote_command = split(remote_command) >>> remote_command ['ssh', 'home', "ls -l 'somefile; rm -rf ~'"] >>> command = split(remote_command[-1]) >>> command ['ls', '-l', 'somefile; rm -rf ~']
python, official-docs, cpython, P0
Local_Trusted_Corpus
925396d6-21c8-497d-91c8-913ee2ac32ac
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,030
supabase-export-v2
f016b22ff98dff32
-------------- The :class:`~shlex.shlex` class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings.
trusted_official_docs
CPython Docs
-------------- The :class:`~shlex.shlex` class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings.
-------------- The :class:`~shlex.shlex` class makes it easy to write lexical analyzers for simple syntaxes resembling that of the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings.
python, official-docs, cpython, P0
Local_Trusted_Corpus
932856c4-9ade-47fa-99dd-48b3b80a0434
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,069
supabase-export-v2
5e9d90572039d1d9
below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object. Normally, this method first strips any quotes off the argument. If the result is an absolute pathname, or there was no previous source request in effect, or the previous s...
trusted_official_docs
CPython Docs
below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object. Normally, this method first strips any quotes off the argument. If the result is an absolute pathname, or there was no previous source request in effect, or the previous s...
below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object. Normally, this method first strips any quotes off the argument. If the result is an absolute pathname, or there was no previous source request in effect, or the previous s...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9476d8c5-942d-4133-8e30-3da339efcf75
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,134
supabase-export-v2
1119b8aa30d63918
.. doctest:: :options: +NORMALIZE_WHITESPACE >>> import shlex >>> text = "a && b; c && d || e; f >'abc'; (def \"ghi\")" >>> s = shlex.shlex(text, posix=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', 'ghi)'] >>> s = shlex.shlex(text, posix=True, ...
trusted_official_docs
CPython Docs
.. doctest:: :options: +NORMALIZE_WHITESPACE >>> import shlex >>> text = "a && b; c && d || e; f >'abc'; (def \"ghi\")" >>> s = shlex.shlex(text, posix=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', 'ghi)'] >>> s = shlex.shlex(text, posix=True, ...
.. doctest:: :options: +NORMALIZE_WHITESPACE >>> import shlex >>> text = "a && b; c && d || e; f >'abc'; (def \"ghi\")" >>> s = shlex.shlex(text, posix=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b;', 'c', '&&', 'd', '||', 'e;', 'f', '>abc;', '(def', 'ghi)'] >>> s = shlex.shlex(text, posix=True, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9eee2ffa-6130-4587-9262-f0e4d8f7c15b
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,141
supabase-export-v2
24d638e14e7aa77c
to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr:`~shlex.punctuation_chars`, which will negate :attr:`~shlex.wordchars` entirely. For best effect, ``punctuation_chars`` should be set in conjunction with ``posix=True``. (Note that `...
trusted_official_docs
CPython Docs
to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr:`~shlex.punctuation_chars`, which will negate :attr:`~shlex.wordchars` entirely. For best effect, ``punctuation_chars`` should be set in conjunction with ``posix=True``. (Note that `...
to match the shell as closely as possible, it is recommended to always use ``posix`` and :attr:`~shlex.whitespace_split` when using :attr:`~shlex.punctuation_chars`, which will negate :attr:`~shlex.wordchars` entirely. For best effect, ``punctuation_chars`` should be set in conjunction with ``posix=True``. (Note that `...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5106ee9-5aa5-4870-9a07-01f72f2c5d76
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,043
supabase-export-v2
0682a2c60b6783b7
The ``shlex`` module is **only designed for Unix shells**. The :func:`quote` function is not guaranteed to be correct on non-POSIX compliant shells or shells from other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnera...
trusted_official_docs
CPython Docs
The ``shlex`` module is **only designed for Unix shells**. The :func:`quote` function is not guaranteed to be correct on non-POSIX compliant shells or shells from other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnera...
The ``shlex`` module is **only designed for Unix shells**. The :func:`quote` function is not guaranteed to be correct on non-POSIX compliant shells or shells from other operating systems such as Windows. Executing commands quoted by this module on such shells can open up the possibility of a command injection vulnera...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b93ff8ba-4751-4d6d-81d8-dc6b6ded22ec
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,034
supabase-export-v2
c129c3e513c67877
the :class:`~shlex.shlex` instance to the empty string). This function operates in POSIX mode by default, but uses non-POSIX mode if the *posix* argument is false. .. versionchanged:: 3.12 Passing ``None`` for *s* argument now raises an exception, rather than reading :data:`sys.stdin`.
trusted_official_docs
CPython Docs
the :class:`~shlex.shlex` instance to the empty string). This function operates in POSIX mode by default, but uses non-POSIX mode if the *posix* argument is false. .. versionchanged:: 3.12 Passing ``None`` for *s* argument now raises an exception, rather than reading :data:`sys.stdin`.
the :class:`~shlex.shlex` instance to the empty string). This function operates in POSIX mode by default, but uses non-POSIX mode if the *posix* argument is false. .. versionchanged:: 3.12 Passing ``None`` for *s* argument now raises an exception, rather than reading :data:`sys.stdin`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b9b60b4f-d00b-41b2-b63c-1abce153c165
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,094
supabase-export-v2
1b88137a3b010782
.. attribute:: shlex.whitespace_split If ``True``, tokens will only be split in whitespaces. This is useful, for example, for parsing command lines with :class:`~shlex.shlex`, getting tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespa...
trusted_official_docs
CPython Docs
.. attribute:: shlex.whitespace_split If ``True``, tokens will only be split in whitespaces. This is useful, for example, for parsing command lines with :class:`~shlex.shlex`, getting tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespa...
.. attribute:: shlex.whitespace_split If ``True``, tokens will only be split in whitespaces. This is useful, for example, for parsing command lines with :class:`~shlex.shlex`, getting tokens in a similar way to shell arguments. When used in combination with :attr:`punctuation_chars`, tokens will be split on whitespa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bc59ceff-b0e2-4af8-980e-361f08bfcf94
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,120
supabase-export-v2
ab8f4b53a87ce711
a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only split words in whitespaces; * EOF is signaled with an empty string (``''``);
trusted_official_docs
CPython Docs
a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only split words in whitespaces; * EOF is signaled with an empty string (``''``);
a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only split words in whitespaces; * EOF is signaled with an empty string (``''``);
python, official-docs, cpython, P0
Local_Trusted_Corpus
bdd60fd0-ca07-4a08-b3b0-968b45c522ad
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,139
supabase-export-v2
41ee93c299abad2d
attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (including wildcards) and command-line arguments (e.g. ``--color=auto``). Hence:: >>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a...
trusted_official_docs
CPython Docs
attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (including wildcards) and command-line arguments (e.g. ``--color=auto``). Hence:: >>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a...
attribute is augmented with the characters ``~-./*?=``. That is because these characters can appear in file names (including wildcards) and command-line arguments (e.g. ``--color=auto``). Hence:: >>> import shlex >>> s = shlex.shlex('~/a && b-c --color=auto || d *.py?', ... punctuation_chars=True) >>> list(s) ['~/a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c449cafe-f2a2-4532-b0bd-06af1a72c2fc
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,040
supabase-export-v2
4e4289a98857b12b
.. function:: quote(s) Return a shell-escaped version of the string *s*. The returned value is a string that can safely be used as one token in a shell command line, for cases where you cannot use a list.
trusted_official_docs
CPython Docs
.. function:: quote(s) Return a shell-escaped version of the string *s*. The returned value is a string that can safely be used as one token in a shell command line, for cases where you cannot use a list.
.. function:: quote(s) Return a shell-escaped version of the string *s*. The returned value is a string that can safely be used as one token in a shell command line, for cases where you cannot use a list.
python, official-docs, cpython, P0
Local_Trusted_Corpus
ca6f204a-bf64-4d55-92e8-c0818e0a9786
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,125
supabase-export-v2
a404ea32ae93e452
* Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows; * Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes;
trusted_official_docs
CPython Docs
* Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows; * Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes;
* Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows; * Enclosing characters in quotes which are not part of :attr:`~shlex.escapedquotes` (e.g. ``"'"``) preserve the literal value of all characters within the quotes;
python, official-docs, cpython, P0
Local_Trusted_Corpus
cbd9d931-534b-4d47-8a79-dc4c4e97a867
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,068
supabase-export-v2
7e7b4c384077e223
.. method:: shlex.sourcehook(filename) When :class:`~shlex.shlex` detects a source request (see :attr:`source` below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object.
trusted_official_docs
CPython Docs
.. method:: shlex.sourcehook(filename) When :class:`~shlex.shlex` detects a source request (see :attr:`source` below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object.
.. method:: shlex.sourcehook(filename) When :class:`~shlex.shlex` detects a source request (see :attr:`source` below) this method is given the following token as argument, and expected to return a tuple consisting of a filename and an open file-like object.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cee78c9b-a37a-48a3-b872-e67ed7e99ca9
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,124
supabase-export-v2
ef54932863221e06
* Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``); * Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows;
trusted_official_docs
CPython Docs
* Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``); * Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows;
* Quotes are stripped out, and do not separate words (``"Do"Not"Separate"`` is parsed as the single word ``DoNotSeparate``); * Non-quoted escape characters (e.g. ``'\'``) preserve the literal value of the next character that follows;
python, official-docs, cpython, P0
Local_Trusted_Corpus
d43162e2-e722-45ec-a106-6772b6914a66
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,119
supabase-export-v2
770955bb529991ad
* Closing quotes separate words (``"Do"Separate`` is parsed as ``"Do"`` and ``Separate``); * If :attr:`~shlex.whitespace_split` is ``False``, any character not declared to be a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only spli...
trusted_official_docs
CPython Docs
* Closing quotes separate words (``"Do"Separate`` is parsed as ``"Do"`` and ``Separate``); * If :attr:`~shlex.whitespace_split` is ``False``, any character not declared to be a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only spli...
* Closing quotes separate words (``"Do"Separate`` is parsed as ``"Do"`` and ``Separate``); * If :attr:`~shlex.whitespace_split` is ``False``, any character not declared to be a word character, whitespace, or a quote will be returned as a single-character token. If it is ``True``, :class:`~shlex.shlex` will only spli...
python, official-docs, cpython, P0
Local_Trusted_Corpus
de928db3-da92-4be8-a204-c9cc4fd455b2
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,135
supabase-export-v2
f061ac63a0fbb3da
punctuation_chars=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', ';', '(', 'def', 'ghi', ')'] Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens.
trusted_official_docs
CPython Docs
punctuation_chars=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', ';', '(', 'def', 'ghi', ')'] Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens.
punctuation_chars=True) >>> s.whitespace_split = True >>> list(s) ['a', '&&', 'b', ';', 'c', '&&', 'd', '||', 'e', ';', 'f', '>', 'abc', ';', '(', 'def', 'ghi', ')'] Of course, tokens will be returned which are not valid for shells, and you'll need to implement your own error checks on the returned tokens.
python, official-docs, cpython, P0
Local_Trusted_Corpus
e34d208e-57f3-443d-8b5d-cac29277273b
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,080
supabase-export-v2
776109a94f2921b4
This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools. Instances of :class:`~shlex.shlex` subclasses have some public instance variables which either control lexical analysis or can be used for debugging:
trusted_official_docs
CPython Docs
This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools. Instances of :class:`~shlex.shlex` subclasses have some public instance variables which either control lexical analysis or can be used for debugging:
This convenience is provided to encourage :mod:`!shlex` users to generate error messages in the standard, parseable format understood by Emacs and other Unix tools. Instances of :class:`~shlex.shlex` subclasses have some public instance variables which either control lexical analysis or can be used for debugging:
python, official-docs, cpython, P0
Local_Trusted_Corpus
ecaec044-68f5-4c45-b976-e3a1b703d45a
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,031
supabase-export-v2
88a8a20182fbe997
the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. The :mod:`!shlex` module defines the following functions:
trusted_official_docs
CPython Docs
the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. The :mod:`!shlex` module defines the following functions:
the Unix shell. This will often be useful for writing minilanguages, (for example, in run control files for Python applications) or for parsing quoted strings. The :mod:`!shlex` module defines the following functions:
python, official-docs, cpython, P0
Local_Trusted_Corpus
ed257bfc-0f08-42fc-8c7d-44da129fc916
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,056
supabase-export-v2
f0269dc3a81da796
*punctuation_chars* will be removed from :attr:`wordchars`. See :ref:`improved-shell-compatibility` for more information. *punctuation_chars* can be set only upon :class:`~shlex.shlex` instance creation and can't be modified later. .. versionchanged:: 3.6 The *punctuation_chars* parameter was added.
trusted_official_docs
CPython Docs
*punctuation_chars* will be removed from :attr:`wordchars`. See :ref:`improved-shell-compatibility` for more information. *punctuation_chars* can be set only upon :class:`~shlex.shlex` instance creation and can't be modified later. .. versionchanged:: 3.6 The *punctuation_chars* parameter was added.
*punctuation_chars* will be removed from :attr:`wordchars`. See :ref:`improved-shell-compatibility` for more information. *punctuation_chars* can be set only upon :class:`~shlex.shlex` instance creation and can't be modified later. .. versionchanged:: 3.6 The *punctuation_chars* parameter was added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
efa26ef7-4a50-4f8e-8827-f1aeedd05adc
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,071
supabase-export-v2
7c9a5999c31194d0
the tuple, with :func:`open` called on it to yield the second component. (Note: this is the reverse of the order of arguments in instance initialization!) This hook is exposed so that you can use it to implement directory search paths, addition of file extensions, and other namespace hacks. There is no corresponding ...
trusted_official_docs
CPython Docs
the tuple, with :func:`open` called on it to yield the second component. (Note: this is the reverse of the order of arguments in instance initialization!) This hook is exposed so that you can use it to implement directory search paths, addition of file extensions, and other namespace hacks. There is no corresponding ...
the tuple, with :func:`open` called on it to yield the second component. (Note: this is the reverse of the order of arguments in instance initialization!) This hook is exposed so that you can use it to implement directory search paths, addition of file extensions, and other namespace hacks. There is no corresponding ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f34d5f65-2e43-483f-857d-5bfd1cc5cf57
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,072
supabase-export-v2
76517050f21784ad
hacks. There is no corresponding 'close' hook, but a shlex instance will call the :meth:`~io.IOBase.close` method of the sourced input stream when it returns EOF. For more explicit control of source stacking, use the :meth:`push_source` and :meth:`pop_source` methods.
trusted_official_docs
CPython Docs
hacks. There is no corresponding 'close' hook, but a shlex instance will call the :meth:`~io.IOBase.close` method of the sourced input stream when it returns EOF. For more explicit control of source stacking, use the :meth:`push_source` and :meth:`pop_source` methods.
hacks. There is no corresponding 'close' hook, but a shlex instance will call the :meth:`~io.IOBase.close` method of the sourced input stream when it returns EOF. For more explicit control of source stacking, use the :meth:`push_source` and :meth:`pop_source` methods.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f36d2083-3faf-43b7-8e1e-3d68fedb23c2
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,090
supabase-export-v2
b83de4d3b3eb7b99
.. attribute:: shlex.quotes Characters that will be considered string quotes. The token accumulates until the same quote is encountered again (thus, different quote types protect each other as in the shell.) By default, includes ASCII single and double quotes.
trusted_official_docs
CPython Docs
.. attribute:: shlex.quotes Characters that will be considered string quotes. The token accumulates until the same quote is encountered again (thus, different quote types protect each other as in the shell.) By default, includes ASCII single and double quotes.
.. attribute:: shlex.quotes Characters that will be considered string quotes. The token accumulates until the same quote is encountered again (thus, different quote types protect each other as in the shell.) By default, includes ASCII single and double quotes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f3bff9c5-a319-43e2-bb49-5a9fa1ab9a41
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,070
supabase-export-v2
4b1f219d3af3fb9c
of the file immediately before it on the source inclusion stack is prepended (this behavior is like the way the C preprocessor handles ``#include "file.h"``). The result of the manipulations is treated as a filename, and returned as the first component of the tuple, with :func:`open` called on it to yield the second ...
trusted_official_docs
CPython Docs
of the file immediately before it on the source inclusion stack is prepended (this behavior is like the way the C preprocessor handles ``#include "file.h"``). The result of the manipulations is treated as a filename, and returned as the first component of the tuple, with :func:`open` called on it to yield the second ...
of the file immediately before it on the source inclusion stack is prepended (this behavior is like the way the C preprocessor handles ``#include "file.h"``). The result of the manipulations is treated as a filename, and returned as the first component of the tuple, with :func:`open` called on it to yield the second ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fed6280b-816e-46e5-a22d-c3ca156e87f4
CPython Docs
file://datasets/cpython/Doc/library/shlex.rst
unknown
d0085807-d281-4e69-84f4-fd1baf8b2a8a
46,097
supabase-export-v2
48887a137ebfdd09
.. attribute:: shlex.infile The name of the current input file, as initially set at class instantiation time or stacked by later source requests. It may be useful to examine this when constructing error messages.
trusted_official_docs
CPython Docs
.. attribute:: shlex.infile The name of the current input file, as initially set at class instantiation time or stacked by later source requests. It may be useful to examine this when constructing error messages.
.. attribute:: shlex.infile The name of the current input file, as initially set at class instantiation time or stacked by later source requests. It may be useful to examine this when constructing error messages.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0449e3a0-e65d-4c68-a91f-e1326f088c54
CPython Docs
file://datasets/cpython/Doc/library/warnings.rst
unknown
e7dbb631-5f7e-431c-902d-15239d39eaf9
46,180
supabase-export-v2
0ac29b35d55020c9
is a literal string that the fully qualified module name must be equal to (case-sensitively), ignoring any whitespace at the start or end of *module*. * *lineno* is an integer that the line number where the warning occurred must match, or ``0`` to match all line numbers.
trusted_official_docs
CPython Docs
is a literal string that the fully qualified module name must be equal to (case-sensitively), ignoring any whitespace at the start or end of *module*. * *lineno* is an integer that the line number where the warning occurred must match, or ``0`` to match all line numbers.
is a literal string that the fully qualified module name must be equal to (case-sensitively), ignoring any whitespace at the start or end of *module*. * *lineno* is an integer that the line number where the warning occurred must match, or ``0`` to match all line numbers.
python, official-docs, cpython, P0
Local_Trusted_Corpus
06f549b6-4053-4240-b7d6-463db9ba02da
CPython Docs
file://datasets/cpython/Doc/library/warnings.rst
unknown
e7dbb631-5f7e-431c-902d-15239d39eaf9
46,206
supabase-export-v2
58fcfbd2e81a3661
Overriding the default filter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Developers of applications written in Python may wish to hide *all* Python level warnings from their users by default, and only display them when running tests or otherwise working on the application. The :data:`sys.warnoptions` attribute used to pass filter c...
trusted_official_docs
CPython Docs
Overriding the default filter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Developers of applications written in Python may wish to hide *all* Python level warnings from their users by default, and only display them when running tests or otherwise working on the application. The :data:`sys.warnoptions` attribute used to pass filter c...
Overriding the default filter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Developers of applications written in Python may wish to hide *all* Python level warnings from their users by default, and only display them when running tests or otherwise working on the application. The :data:`sys.warnoptions` attribute used to pass filter c...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0a8c2dae-ef4f-49b3-9a82-e3f252be047a
CPython Docs
file://datasets/cpython/Doc/library/warnings.rst
unknown
e7dbb631-5f7e-431c-902d-15239d39eaf9
46,229
supabase-export-v2
7affa70b74e8118b
to always be triggered. warnings.simplefilter("always") # Trigger a warning. fxn() # Verify some things assert len(w) == 1 assert issubclass(w[-1].category, DeprecationWarning) assert "deprecated" in str(w[-1].message) One can also cause all warnings to be exceptions by using ``error`` instead of ``always``. One thing ...
trusted_official_docs
CPython Docs
to always be triggered. warnings.simplefilter("always") # Trigger a warning. fxn() # Verify some things assert len(w) == 1 assert issubclass(w[-1].category, DeprecationWarning) assert "deprecated" in str(w[-1].message) One can also cause all warnings to be exceptions by using ``error`` instead of ``always``. One thing ...
to always be triggered. warnings.simplefilter("always") # Trigger a warning. fxn() # Verify some things assert len(w) == 1 assert issubclass(w[-1].category, DeprecationWarning) assert "deprecated" in str(w[-1].message) One can also cause all warnings to be exceptions by using ``error`` instead of ``always``. One thing ...
python, official-docs, cpython, P0
Local_Trusted_Corpus