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
33e4f974-d124-4bd7-b635-2e3523b7a16d
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,463
supabase-export-v2
e566217cb312419d
If you're only interested in where the sequences match, :meth:`~SequenceMatcher.get_matching_blocks` is handy: >>> for block in s.get_matching_blocks(): ... print("a[%d] and b[%d] match for %d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elem...
trusted_official_docs
CPython Docs
If you're only interested in where the sequences match, :meth:`~SequenceMatcher.get_matching_blocks` is handy: >>> for block in s.get_matching_blocks(): ... print("a[%d] and b[%d] match for %d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elem...
If you're only interested in where the sequences match, :meth:`~SequenceMatcher.get_matching_blocks` is handy: >>> for block in s.get_matching_blocks(): ... print("a[%d] and b[%d] match for %d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elem...
python, official-docs, cpython, P0
Local_Trusted_Corpus
3eb8fa9e-fc37-4ab6-b64c-a72c97f43b8e
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,327
supabase-export-v2
bee00723fff1f5c2
worst case and has expected-case behavior dependent in a complicated way on how many elements the sequences have in common; best case time is linear. **Automatic junk heuristic:** :class:`SequenceMatcher` supports a heuristic that automatically treats certain sequence items as junk. The heuristic counts how many time...
trusted_official_docs
CPython Docs
worst case and has expected-case behavior dependent in a complicated way on how many elements the sequences have in common; best case time is linear. **Automatic junk heuristic:** :class:`SequenceMatcher` supports a heuristic that automatically treats certain sequence items as junk. The heuristic counts how many time...
worst case and has expected-case behavior dependent in a complicated way on how many elements the sequences have in common; best case time is linear. **Automatic junk heuristic:** :class:`SequenceMatcher` supports a heuristic that automatically treats certain sequence items as junk. The heuristic counts how many time...
python, official-docs, cpython, P0
Local_Trusted_Corpus
40c676ad-aac6-4e6e-800c-2d4aac2b21a7
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,455
supabase-export-v2
72c64c2b9d83570a
to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :meth:`~SequenceMatcher.ratio`: >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.q...
trusted_official_docs
CPython Docs
to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :meth:`~SequenceMatcher.ratio`: >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.q...
to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :meth:`~SequenceMatcher.ratio`: >>> s = SequenceMatcher(None, "abcd", "bcde") >>> s.ratio() 0.75 >>> s.q...
python, official-docs, cpython, P0
Local_Trusted_Corpus
4bd509a7-c8ea-44c0-bfb9-cf26fb8e7b9a
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,374
supabase-export-v2
29c3c88849452151
Return one of the two sequences that generated a delta. Given a *sequence* produced by :meth:`Differ.compare` or :func:`ndiff`, extract lines originating from file 1 or 2 (parameter *which*), stripping off line prefixes.
trusted_official_docs
CPython Docs
Return one of the two sequences that generated a delta. Given a *sequence* produced by :meth:`Differ.compare` or :func:`ndiff`, extract lines originating from file 1 or 2 (parameter *which*), stripping off line prefixes.
Return one of the two sequences that generated a delta. Given a *sequence* produced by :meth:`Differ.compare` or :func:`ndiff`, extract lines originating from file 1 or 2 (parameter *which*), stripping off line prefixes.
python, official-docs, cpython, P0
Local_Trusted_Corpus
4ca5f73d-73b2-4167-9dc6-aecc86872b80
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,460
supabase-export-v2
1574fd77cb6880b1
>>> s = SequenceMatcher(lambda x: x == " ", ... "private Thread currentThread;", ... "private volatile Thread currentThread;") :meth:`~SequenceMatcher.ratio` returns a float in [0, 1], measuring the similarity of the sequences. As a rule of thumb, a :meth:`~SequenceMatcher.ratio` value over 0.6 means the sequences are ...
trusted_official_docs
CPython Docs
>>> s = SequenceMatcher(lambda x: x == " ", ... "private Thread currentThread;", ... "private volatile Thread currentThread;") :meth:`~SequenceMatcher.ratio` returns a float in [0, 1], measuring the similarity of the sequences. As a rule of thumb, a :meth:`~SequenceMatcher.ratio` value over 0.6 means the sequences are ...
>>> s = SequenceMatcher(lambda x: x == " ", ... "private Thread currentThread;", ... "private volatile Thread currentThread;") :meth:`~SequenceMatcher.ratio` returns a float in [0, 1], measuring the similarity of the sequences. As a rule of thumb, a :meth:`~SequenceMatcher.ratio` value over 0.6 means the sequences are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
5160b490-59eb-48f4-8786-a6db124488fb
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,370
supabase-export-v2
e27e594c96688cd5
:class:`SequenceMatcher` class does a dynamic analysis of which lines are so frequent as to constitute noise, and this usually works better than using this function. *charjunk*: A function that accepts a character (a string of length 1), and returns if the character is junk, or false if not. The default is module-leve...
trusted_official_docs
CPython Docs
:class:`SequenceMatcher` class does a dynamic analysis of which lines are so frequent as to constitute noise, and this usually works better than using this function. *charjunk*: A function that accepts a character (a string of length 1), and returns if the character is junk, or false if not. The default is module-leve...
:class:`SequenceMatcher` class does a dynamic analysis of which lines are so frequent as to constitute noise, and this usually works better than using this function. *charjunk*: A function that accepts a character (a string of length 1), and returns if the character is junk, or false if not. The default is module-leve...
python, official-docs, cpython, P0
Local_Trusted_Corpus
51688cce-dd11-49b5-b410-cc6caf61f720
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,434
supabase-export-v2
b29060c26d9b4988
== j1 == 0``, and remaining tuples have *i1* equal to the *i2* from the preceding tuple, and, likewise, *j1* equal to the previous *j2*. The *tag* values are strings, with these meanings:
trusted_official_docs
CPython Docs
== j1 == 0``, and remaining tuples have *i1* equal to the *i2* from the preceding tuple, and, likewise, *j1* equal to the previous *j2*. The *tag* values are strings, with these meanings:
== j1 == 0``, and remaining tuples have *i1* equal to the *i2* from the preceding tuple, and, likewise, *j1* equal to the previous *j2*. The *tag* values are strings, with these meanings:
python, official-docs, cpython, P0
Local_Trusted_Corpus
53aa9b83-1459-455b-b623-fe1aaedd3efb
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,388
supabase-export-v2
bf78506c7859647a
.. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_...
trusted_official_docs
CPython Docs
.. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_...
.. function:: diff_bytes(dfunc, a, b, fromfile=b'', tofile=b'', fromfiledate=b'', tofiledate=b'', n=3, lineterm=b'\n') Compare *a* and *b* (lists of bytes objects) using *dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_...
python, official-docs, cpython, P0
Local_Trusted_Corpus
546a8ca2-f166-40e1-8961-4d7da8438229
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,478
supabase-export-v2
2f53a9c1fe22f4ec
differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`~SequenceMatcher.find_longest_match` method's *isjunk* parameter for an explanation. :class:`Differ` objects are used (deltas generated) via a single method:
trusted_official_docs
CPython Docs
differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`~SequenceMatcher.find_longest_match` method's *isjunk* parameter for an explanation. :class:`Differ` objects are used (deltas generated) via a single method:
differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`~SequenceMatcher.find_longest_match` method's *isjunk* parameter for an explanation. :class:`Differ` objects are used (deltas generated) via a single method:
python, official-docs, cpython, P0
Local_Trusted_Corpus
56ad7653-551b-4731-afc5-4a3951734826
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,404
supabase-export-v2
04a2594cbccf33a0
if you're comparing lines as sequences of characters, and don't want to synch up on blanks or hard tabs. The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`.
trusted_official_docs
CPython Docs
if you're comparing lines as sequences of characters, and don't want to synch up on blanks or hard tabs. The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`.
if you're comparing lines as sequences of characters, and don't want to synch up on blanks or hard tabs. The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
60fcdcd1-4d38-4779-8b6a-fafe48e1fde5
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,350
supabase-export-v2
6f0bbc0574f9666b
.. method:: make_table(fromlines, tolines, fromdesc='', todesc='', context=False, numlines=5) Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted.
trusted_official_docs
CPython Docs
.. method:: make_table(fromlines, tolines, fromdesc='', todesc='', context=False, numlines=5) Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted.
.. method:: make_table(fromlines, tolines, fromdesc='', todesc='', context=False, numlines=5) Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted.
python, official-docs, cpython, P0
Local_Trusted_Corpus
62ff6aa8-268b-4aaf-927b-d9f22461b66f
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,446
supabase-export-v2
874ae378c10a3300
of matches, this is 2.0\*M / T. Note that this is ``1.0`` if the sequences are identical, and ``0.0`` if they have nothing in common. This is expensive to compute if :meth:`get_matching_blocks` or :meth:`get_opcodes` hasn't already been called, in which case you may want to try :meth:`quick_ratio` or :meth:`real_quic...
trusted_official_docs
CPython Docs
of matches, this is 2.0\*M / T. Note that this is ``1.0`` if the sequences are identical, and ``0.0`` if they have nothing in common. This is expensive to compute if :meth:`get_matching_blocks` or :meth:`get_opcodes` hasn't already been called, in which case you may want to try :meth:`quick_ratio` or :meth:`real_quic...
of matches, this is 2.0\*M / T. Note that this is ``1.0`` if the sequences are identical, and ``0.0`` if they have nothing in common. This is expensive to compute if :meth:`get_matching_blocks` or :meth:`get_opcodes` hasn't already been called, in which case you may want to try :meth:`quick_ratio` or :meth:`real_quic...
python, official-docs, cpython, P0
Local_Trusted_Corpus
65c7d500-2861-4947-99e2-8fa5e34140b7
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,325
supabase-export-v2
1dc14a6eccddebf5
.. class:: SequenceMatcher :noindex: This is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are :term:`hashable`. The basic algorithm predates, and is a little fancier than, an algorithm published in the late 1980's by Ratcliff and Obershelp under the hyperbolic name ...
trusted_official_docs
CPython Docs
.. class:: SequenceMatcher :noindex: This is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are :term:`hashable`. The basic algorithm predates, and is a little fancier than, an algorithm published in the late 1980's by Ratcliff and Obershelp under the hyperbolic name ...
.. class:: SequenceMatcher :noindex: This is a flexible class for comparing pairs of sequences of any type, so long as the sequence elements are :term:`hashable`. The basic algorithm predates, and is a little fancier than, an algorithm published in the late 1980's by Ratcliff and Obershelp under the hyperbolic name ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
68207f43-e02d-4166-846e-cb4c3c39ef53
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,486
supabase-export-v2
e298d6b498b91e02
than ugly. ... 3. Simple is better than complex. ... 4. Complicated is better than complex. ... 5. Flat is better than nested. ... '''.splitlines(keepends=True) Next we instantiate a Differ object:
trusted_official_docs
CPython Docs
than ugly. ... 3. Simple is better than complex. ... 4. Complicated is better than complex. ... 5. Flat is better than nested. ... '''.splitlines(keepends=True) Next we instantiate a Differ object:
than ugly. ... 3. Simple is better than complex. ... 4. Complicated is better than complex. ... 5. Flat is better than nested. ... '''.splitlines(keepends=True) Next we instantiate a Differ object:
python, official-docs, cpython, P0
Local_Trusted_Corpus
68715173-e4da-4c7f-a86b-bf0cd89c1557
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,376
supabase-export-v2
1f54a840ea1568ad
Example: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> diff = list(diff) # materialize the generated delta into a list >>> print(''.join(restore(diff, 1)), end="") one two three >>> print(''.join(restore(diff, 2)), end="") ore tree emu
trusted_official_docs
CPython Docs
Example: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> diff = list(diff) # materialize the generated delta into a list >>> print(''.join(restore(diff, 1)), end="") one two three >>> print(''.join(restore(diff, 2)), end="") ore tree emu
Example: >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> diff = list(diff) # materialize the generated delta into a list >>> print(''.join(restore(diff, 1)), end="") one two three >>> print(''.join(restore(diff, 2)), end="") ore tree emu
python, official-docs, cpython, P0
Local_Trusted_Corpus
6bba7997-513b-4332-9654-97884b8dfc6c
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,346
supabase-export-v2
726a8736af9e8a9d
*fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string). *context* and *numlines* are both optional keyword arguments. Set *context* to ``True`` when contextual differences are to be shown, else the default is ``False`` to show the full fi...
trusted_official_docs
CPython Docs
*fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string). *context* and *numlines* are both optional keyword arguments. Set *context* to ``True`` when contextual differences are to be shown, else the default is ``False`` to show the full fi...
*fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string). *context* and *numlines* are both optional keyword arguments. Set *context* to ``True`` when contextual differences are to be shown, else the default is ``False`` to show the full fi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
6f1e0050-8255-49ca-849b-da42ec3c5e3b
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,333
supabase-export-v2
72e0a0ee736db4af
+----------+-------------------------------------------+ | ``' '`` | line common to both sequences | +----------+-------------------------------------------+ | ``'? '`` | line not present in either input sequence | +----------+-------------------------------------------+ Lines beginning with '``?``' attempt to guide th...
trusted_official_docs
CPython Docs
+----------+-------------------------------------------+ | ``' '`` | line common to both sequences | +----------+-------------------------------------------+ | ``'? '`` | line not present in either input sequence | +----------+-------------------------------------------+ Lines beginning with '``?``' attempt to guide th...
+----------+-------------------------------------------+ | ``' '`` | line common to both sequences | +----------+-------------------------------------------+ | ``'? '`` | line not present in either input sequence | +----------+-------------------------------------------+ Lines beginning with '``?``' attempt to guide th...
python, official-docs, cpython, P0
Local_Trusted_Corpus
703df5ba-8692-4fcf-8a55-fcafe5c3f1f2
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,380
supabase-export-v2
7b41e6a0f1c9d208
changes are shown in an inline style (instead of separate before/after blocks). The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``---``, ``+++``, or ``@@``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBa...
trusted_official_docs
CPython Docs
changes are shown in an inline style (instead of separate before/after blocks). The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``---``, ``+++``, or ``@@``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBa...
changes are shown in an inline style (instead of separate before/after blocks). The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``---``, ``+++``, or ``@@``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBa...
python, official-docs, cpython, P0
Local_Trusted_Corpus
7385c806-a2e0-49e3-abd4-028dafd1c416
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,331
supabase-export-v2
f872758d58ace91f
and producing human-readable differences or deltas. Differ uses :class:`SequenceMatcher` both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. Each line of a :class:`Differ` delta begins with a two-letter code:
trusted_official_docs
CPython Docs
and producing human-readable differences or deltas. Differ uses :class:`SequenceMatcher` both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. Each line of a :class:`Differ` delta begins with a two-letter code:
and producing human-readable differences or deltas. Differ uses :class:`SequenceMatcher` both to compare sequences of lines, and to compare sequences of characters within similar (near-matching) lines. Each line of a :class:`Differ` delta begins with a two-letter code:
python, official-docs, cpython, P0
Local_Trusted_Corpus
78387076-b44f-4d31-bb66-20f3717e633b
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,469
supabase-export-v2
5669766528d1b6a7
* The :func:`get_close_matches` function in this module which shows how simple code building on :class:`SequenceMatcher` can be used to do useful work. * `Simple version control recipe <https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application built with :class:`SequenceMatcher`.
trusted_official_docs
CPython Docs
* The :func:`get_close_matches` function in this module which shows how simple code building on :class:`SequenceMatcher` can be used to do useful work. * `Simple version control recipe <https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application built with :class:`SequenceMatcher`.
* The :func:`get_close_matches` function in this module which shows how simple code building on :class:`SequenceMatcher` can be used to do useful work. * `Simple version control recipe <https://code.activestate.com/recipes/576729-simple-version-control/>`_ for a small application built with :class:`SequenceMatcher`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
792da564-426e-4659-9e2f-21a32f2de001
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,428
supabase-export-v2
095139f74d8f4179
.. method:: get_matching_blocks() Return list of triples describing non-overlapping matching subsequences. Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The triples are monotonically increasing in *i* and *j*.
trusted_official_docs
CPython Docs
.. method:: get_matching_blocks() Return list of triples describing non-overlapping matching subsequences. Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The triples are monotonically increasing in *i* and *j*.
.. method:: get_matching_blocks() Return list of triples describing non-overlapping matching subsequences. Each triple is of the form ``(i, j, n)``, and means that ``a[i:i+n] == b[j:j+n]``. The triples are monotonically increasing in *i* and *j*.
python, official-docs, cpython, P0
Local_Trusted_Corpus
86ad823b-b04c-433a-8c90-8584c9dc7619
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,419
supabase-export-v2
8aa3f2431ecc1e46
Find longest matching block in ``a[alo:ahi]`` and ``b[blo:bhi]``. If *isjunk* was omitted or ``None``, :meth:`find_longest_match` returns ``(i, j, k)`` such that ``a[i:i+k]`` is equal to ``b[j:j+k]``, where ``alo <= i <= i+k <= ahi`` and ``blo <= j <= j+k <= bhi``. For all ``(i', j', k')`` meeting those conditions, ...
trusted_official_docs
CPython Docs
Find longest matching block in ``a[alo:ahi]`` and ``b[blo:bhi]``. If *isjunk* was omitted or ``None``, :meth:`find_longest_match` returns ``(i, j, k)`` such that ``a[i:i+k]`` is equal to ``b[j:j+k]``, where ``alo <= i <= i+k <= ahi`` and ``blo <= j <= j+k <= bhi``. For all ``(i', j', k')`` meeting those conditions, ...
Find longest matching block in ``a[alo:ahi]`` and ``b[blo:bhi]``. If *isjunk* was omitted or ``None``, :meth:`find_longest_match` returns ``(i, j, k)`` such that ``a[i:i+k]`` is equal to ``b[j:j+k]``, where ``alo <= i <= i+k <= ahi`` and ``blo <= j <= j+k <= bhi``. For all ``(i', j', k')`` meeting those conditions, ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8d421d93-a4d5-40d6-9b85-d2e842e0930c
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,383
supabase-export-v2
703dbbcf6f7a9279
Set *color* to ``True`` to enable output in color, similar to :program:`git diff --color`. Even if enabled, it can be :ref:`controlled using environment variables <using-on-controlling-color>`. The unified diff format normally has a header for filenames and modification times. Any or all of these may be specified usin...
trusted_official_docs
CPython Docs
Set *color* to ``True`` to enable output in color, similar to :program:`git diff --color`. Even if enabled, it can be :ref:`controlled using environment variables <using-on-controlling-color>`. The unified diff format normally has a header for filenames and modification times. Any or all of these may be specified usin...
Set *color* to ``True`` to enable output in color, similar to :program:`git diff --color`. Even if enabled, it can be :ref:`controlled using environment variables <using-on-controlling-color>`. The unified diff format normally has a header for filenames and modification times. Any or all of these may be specified usin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8db196c5-c8de-42c9-8b05-9a34f8850959
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,365
supabase-export-v2
e9e942fe6bf3c70d
The best (no more than *n*) matches among the possibilities are returned in a list, sorted by similarity score, most similar first. >>> get_close_matches('appel', ['ape', 'apple', 'peach', 'puppy']) ['apple', 'ape'] >>> import keyword >>> get_close_matches('wheel', keyword.kwlist) ['while'] >>> get_close_matches('...
trusted_official_docs
CPython Docs
The best (no more than *n*) matches among the possibilities are returned in a list, sorted by similarity score, most similar first. >>> get_close_matches('appel', ['ape', 'apple', 'peach', 'puppy']) ['apple', 'ape'] >>> import keyword >>> get_close_matches('wheel', keyword.kwlist) ['while'] >>> get_close_matches('...
The best (no more than *n*) matches among the possibilities are returned in a list, sorted by similarity score, most similar first. >>> get_close_matches('appel', ['ape', 'apple', 'peach', 'puppy']) ['apple', 'ape'] >>> import keyword >>> get_close_matches('wheel', keyword.kwlist) ['while'] >>> get_close_matches('...
python, official-docs, cpython, P0
Local_Trusted_Corpus
8ef00819-8317-4b36-be8e-573b286e529a
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,342
supabase-export-v2
d3d69d5a5f725ef3
keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`ndiff` documentation for argument default values and descriptions. The following methods are public:
trusted_official_docs
CPython Docs
keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`ndiff` documentation for argument default values and descriptions. The following methods are public:
keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`ndiff` documentation for argument default values and descriptions. The following methods are public:
python, official-docs, cpython, P0
Local_Trusted_Corpus
93b2d88d-7b45-4992-9439-e669aa1e5251
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,323
supabase-export-v2
d7ac6b7cee14715d
-------------- This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs. For comparing directories and files, see also, the :mod:`filecmp` modul...
trusted_official_docs
CPython Docs
-------------- This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs. For comparing directories and files, see also, the :mod:`filecmp` modul...
-------------- This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences in various formats, including HTML and context and unified diffs. For comparing directories and files, see also, the :mod:`filecmp` modul...
python, official-docs, cpython, P0
Local_Trusted_Corpus
965cc9fb-11f8-40b1-8bbc-c7ca9425e318
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,464
supabase-export-v2
6cd1271ca6bbc4aa
%d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elements Note that the last tuple returned by :meth:`~SequenceMatcher.get_matching_blocks` is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (numb...
trusted_official_docs
CPython Docs
%d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elements Note that the last tuple returned by :meth:`~SequenceMatcher.get_matching_blocks` is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (numb...
%d elements" % block) a[0] and b[0] match for 8 elements a[8] and b[17] match for 21 elements a[29] and b[38] match for 0 elements Note that the last tuple returned by :meth:`~SequenceMatcher.get_matching_blocks` is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (numb...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9989630d-ffd2-4e27-b5c3-73b09c17f856
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,359
supabase-export-v2
b3fac678e3a55b9b
*** before.py --- after.py *************** *** 1,4 **** ! bacon ! eggs ! ham guido --- 1,4 ---- ! python ! eggy ! hamster guido See :ref:`difflib-interface` for a more detailed example.
trusted_official_docs
CPython Docs
*** before.py --- after.py *************** *** 1,4 **** ! bacon ! eggs ! ham guido --- 1,4 ---- ! python ! eggy ! hamster guido See :ref:`difflib-interface` for a more detailed example.
*** before.py --- after.py *************** *** 1,4 **** ! bacon ! eggs ! ham guido --- 1,4 ---- ! python ! eggy ! hamster guido See :ref:`difflib-interface` for a more detailed example.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9a2a02ac-5cdc-4d0d-99f6-0aa24284e769
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,340
supabase-export-v2
25916a958a46b58f
*tabsize* is an optional keyword argument to specify tab stop spacing and defaults to ``8``. *wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped.
trusted_official_docs
CPython Docs
*tabsize* is an optional keyword argument to specify tab stop spacing and defaults to ``8``. *wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped.
*tabsize* is an optional keyword argument to specify tab stop spacing and defaults to ``8``. *wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9c645443-9f6c-44a5-b384-a3c27027129a
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,484
supabase-export-v2
263e3b00f1e52334
Differ example -------------- This example compares two texts. First we set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects):
trusted_official_docs
CPython Docs
Differ example -------------- This example compares two texts. First we set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects):
Differ example -------------- This example compares two texts. First we set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects):
python, official-docs, cpython, P0
Local_Trusted_Corpus
9dbd5c1a-7010-47b8-b81e-e63f9895e81b
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,442
supabase-export-v2
2799e2195eec7161
Starting with the groups returned by :meth:`get_opcodes`, this method splits out smaller change clusters and eliminates intervening ranges which have no changes. The groups are returned in the same format as :meth:`get_opcodes`.
trusted_official_docs
CPython Docs
Starting with the groups returned by :meth:`get_opcodes`, this method splits out smaller change clusters and eliminates intervening ranges which have no changes. The groups are returned in the same format as :meth:`get_opcodes`.
Starting with the groups returned by :meth:`get_opcodes`, this method splits out smaller change clusters and eliminates intervening ranges which have no changes. The groups are returned in the same format as :meth:`get_opcodes`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e06448a-7d82-4a6f-a3cd-0b1a710c5bfb
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,389
supabase-export-v2
66908707ae70cd9d
*dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_diff` or :func:`context_diff`. Allows you to compare data with unknown or inconsistent encoding. All inputs except *n* must be bytes objects, not str. Works by losslessly...
trusted_official_docs
CPython Docs
*dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_diff` or :func:`context_diff`. Allows you to compare data with unknown or inconsistent encoding. All inputs except *n* must be bytes objects, not str. Works by losslessly...
*dfunc*; yield a sequence of delta lines (also bytes) in the format returned by *dfunc*. *dfunc* must be a callable, typically either :func:`unified_diff` or :func:`context_diff`. Allows you to compare data with unknown or inconsistent encoding. All inputs except *n* must be bytes objects, not str. Works by losslessly...
python, official-docs, cpython, P0
Local_Trusted_Corpus
9e6fe934-0510-4894-a259-f8dd59ff11d2
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,420
supabase-export-v2
fa83fbf7f6580aeb
that starts earliest in *a*, and of all those maximal matching blocks that start earliest in *a*, return the one that starts earliest in *b*. >>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5)
trusted_official_docs
CPython Docs
that starts earliest in *a*, and of all those maximal matching blocks that start earliest in *a*, return the one that starts earliest in *b*. >>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5)
that starts earliest in *a*, and of all those maximal matching blocks that start earliest in *a*, return the one that starts earliest in *b*. >>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5)
python, official-docs, cpython, P0
Local_Trusted_Corpus
a143abc4-06cc-41df-98b8-c4f7885b3ea1
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,341
supabase-export-v2
ca2aabc40c62d2c4
*wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped. *linejunk* and *charjunk* are optional keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`nd...
trusted_official_docs
CPython Docs
*wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped. *linejunk* and *charjunk* are optional keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`nd...
*wrapcolumn* is an optional keyword to specify column number where lines are broken and wrapped, defaults to ``None`` where lines are not wrapped. *linejunk* and *charjunk* are optional keyword arguments passed into :func:`ndiff` (used by :class:`HtmlDiff` to generate the side by side HTML differences). See :func:`nd...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a3d123d6-9386-4fc7-80ab-bf0e6307d259
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,336
supabase-export-v2
a63c82e5bfffa9a2
side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The constructor for this class is:
trusted_official_docs
CPython Docs
side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The constructor for this class is:
side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode. The constructor for this class is:
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5bcdda4-4487-4e58-a95b-96d49c792d8c
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,412
supabase-export-v2
5cd1934dd3f6462b
Set the two sequences to be compared. :class:`SequenceMatcher` computes and caches detailed information about the second sequence, so if you want to compare one sequence against many sequences, use :meth:`set_seq2` to set the commonly used sequence once and call :meth:`set_seq1` repeatedly, once for each of the othe...
trusted_official_docs
CPython Docs
Set the two sequences to be compared. :class:`SequenceMatcher` computes and caches detailed information about the second sequence, so if you want to compare one sequence against many sequences, use :meth:`set_seq2` to set the commonly used sequence once and call :meth:`set_seq1` repeatedly, once for each of the othe...
Set the two sequences to be compared. :class:`SequenceMatcher` computes and caches detailed information about the second sequence, so if you want to compare one sequence against many sequences, use :meth:`set_seq2` to set the commonly used sequence once and call :meth:`set_seq1` repeatedly, once for each of the othe...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a5f034e5-e2ba-4ed1-bb95-4308d09fccc9
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,481
supabase-export-v2
96f75b9f865e0f86
Compare two sequences of lines, and generate the delta (a sequence of lines). Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects. The delta generated also consists of newline-terminated strin...
trusted_official_docs
CPython Docs
Compare two sequences of lines, and generate the delta (a sequence of lines). Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects. The delta generated also consists of newline-terminated strin...
Compare two sequences of lines, and generate the delta (a sequence of lines). Each sequence must contain individual single-line strings ending with newlines. Such sequences can be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects. The delta generated also consists of newline-terminated strin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
a68e71c9-69ee-4ec2-8279-745b9ba73eea
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,378
supabase-export-v2
b8f78c862dab096b
.. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n', *, color=False) Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in unified diff format.
trusted_official_docs
CPython Docs
.. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n', *, color=False) Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in unified diff format.
.. function:: unified_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n', *, color=False) Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in unified diff format.
python, official-docs, cpython, P0
Local_Trusted_Corpus
a8c0f467-005f-4ca9-84ae-ac27fab6e50d
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,354
supabase-export-v2
c9a62b9a9e71da80
Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format. Context diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in a before/after style. The number of context lines is set by ...
trusted_official_docs
CPython Docs
Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format. Context diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in a before/after style. The number of context lines is set by ...
Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format. Context diffs are a compact way of showing just the lines that have changed plus a few lines of context. The changes are shown in a before/after style. The number of context lines is set by ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ac5175ef-b7ac-438a-a90c-21fbc6f17a0c
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,361
supabase-export-v2
1894e800a5c46dd2
.. function:: get_close_matches(word, possibilities, n=3, cutoff=0.6) Return a list of the best "good enough" matches. *word* is a sequence for which close matches are desired (typically a string), and *possibilities* is a list of sequences against which to match *word* (typically a list of strings).
trusted_official_docs
CPython Docs
.. function:: get_close_matches(word, possibilities, n=3, cutoff=0.6) Return a list of the best "good enough" matches. *word* is a sequence for which close matches are desired (typically a string), and *possibilities* is a list of sequences against which to match *word* (typically a list of strings).
.. function:: get_close_matches(word, possibilities, n=3, cutoff=0.6) Return a list of the best "good enough" matches. *word* is a sequence for which close matches are desired (typically a string), and *possibilities* is a list of sequences against which to match *word* (typically a list of strings).
python, official-docs, cpython, P0
Local_Trusted_Corpus
b068ce84-c842-42a1-b4be-97ae536611c7
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,348
supabase-export-v2
1db5ad4f3492eda5
.. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources. .. versionchanged:: 3.5 *charset* keyword-only argument was added. The default charset of HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.
trusted_official_docs
CPython Docs
.. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources. .. versionchanged:: 3.5 *charset* keyword-only argument was added. The default charset of HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.
.. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources. .. versionchanged:: 3.5 *charset* keyword-only argument was added. The default charset of HTML document changed from ``'ISO-8859-1'`` to ``'utf-8'``.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b18664a1-3f91-4b8e-ba97-1d36e8f5255c
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,328
supabase-export-v2
85c19a9d1d64f477
as junk for the purpose of sequence matching. This heuristic can be turned off by setting the ``autojunk`` argument to ``False`` when creating the :class:`SequenceMatcher`. .. versionchanged:: 3.2 Added the *autojunk* parameter.
trusted_official_docs
CPython Docs
as junk for the purpose of sequence matching. This heuristic can be turned off by setting the ``autojunk`` argument to ``False`` when creating the :class:`SequenceMatcher`. .. versionchanged:: 3.2 Added the *autojunk* parameter.
as junk for the purpose of sequence matching. This heuristic can be turned off by setting the ``autojunk`` argument to ``False`` when creating the :class:`SequenceMatcher`. .. versionchanged:: 3.2 Added the *autojunk* parameter.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b4d6a748-d411-4c9c-9fe9-b3b458ad2d4e
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,347
supabase-export-v2
e012feea746de5fd
hyperlinks (setting to zero would cause the "next" hyperlinks to place the next difference highlight at the top of the browser without any leading context). .. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources.
trusted_official_docs
CPython Docs
hyperlinks (setting to zero would cause the "next" hyperlinks to place the next difference highlight at the top of the browser without any leading context). .. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources.
hyperlinks (setting to zero would cause the "next" hyperlinks to place the next difference highlight at the top of the browser without any leading context). .. note:: *fromdesc* and *todesc* are interpreted as unescaped HTML and should be properly escaped while receiving input from untrusted sources.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b63328d6-a0b0-4dfa-a8b4-767322ce9030
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,353
supabase-export-v2
e1d92d6f64c62b56
.. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format.
trusted_official_docs
CPython Docs
.. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format.
.. function:: context_diff(a, b, fromfile='', tofile='', fromfiledate='', tofiledate='', n=3, lineterm='\n') Compare *a* and *b* (lists of strings); return a delta (a :term:`generator` generating the delta lines) in context diff format.
python, official-docs, cpython, P0
Local_Trusted_Corpus
b6d8ad09-1056-4234-bcea-0384afd049c4
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,465
supabase-export-v2
fe36fd571bdebc0d
is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (number of elements matched) is ``0``. If you want to know how to change the first sequence into the second, use :meth:`~SequenceMatcher.get_opcodes`:
trusted_official_docs
CPython Docs
is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (number of elements matched) is ``0``. If you want to know how to change the first sequence into the second, use :meth:`~SequenceMatcher.get_opcodes`:
is always a dummy, ``(len(a), len(b), 0)``, and this is the only case in which the last tuple element (number of elements matched) is ``0``. If you want to know how to change the first sequence into the second, use :meth:`~SequenceMatcher.get_opcodes`:
python, official-docs, cpython, P0
Local_Trusted_Corpus
b72d7a28-f4ac-473d-b94b-0d086b71ea08
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,407
supabase-export-v2
c54bd3bb66c5010a
.. versionchanged:: 3.2 Added the *autojunk* parameter. SequenceMatcher objects get three data attributes: *bjunk* is the set of elements of *b* for which *isjunk* is ``True``; *bpopular* is the set of non-junk elements considered popular by the heuristic (if it is not disabled); *b2j* is a dict mapping the remainin...
trusted_official_docs
CPython Docs
.. versionchanged:: 3.2 Added the *autojunk* parameter. SequenceMatcher objects get three data attributes: *bjunk* is the set of elements of *b* for which *isjunk* is ``True``; *bpopular* is the set of non-junk elements considered popular by the heuristic (if it is not disabled); *b2j* is a dict mapping the remainin...
.. versionchanged:: 3.2 Added the *autojunk* parameter. SequenceMatcher objects get three data attributes: *bjunk* is the set of elements of *b* for which *isjunk* is ``True``; *bpopular* is the set of non-junk elements considered popular by the heuristic (if it is not disabled); *b2j* is a dict mapping the remainin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
b8bfe401-f2d4-4ef9-8be1-c73eea4b6a0a
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,485
supabase-export-v2
8d471a1fbf8ad820
set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects): >>> text1 = ''' 1. Beautiful is better than ugly. ... 2. Explicit is better than implicit. ... 3. Simple is better than complex. ......
trusted_official_docs
CPython Docs
set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects): >>> text1 = ''' 1. Beautiful is better than ugly. ... 2. Explicit is better than implicit. ... 3. Simple is better than complex. ......
set up the texts, sequences of individual single-line strings ending with newlines (such sequences can also be obtained from the :meth:`~io.IOBase.readlines` method of file-like objects): >>> text1 = ''' 1. Beautiful is better than ugly. ... 2. Explicit is better than implicit. ... 3. Simple is better than complex. ......
python, official-docs, cpython, P0
Local_Trusted_Corpus
bb572e05-606c-4026-86cc-f882e4bba113
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,477
supabase-export-v2
fd471d1875295d3e
argument (a string of length 1), and returns true if the character is junk. The default is ``None``, meaning that no character is considered junk. These junk-filtering functions speed up matching to find differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`...
trusted_official_docs
CPython Docs
argument (a string of length 1), and returns true if the character is junk. The default is ``None``, meaning that no character is considered junk. These junk-filtering functions speed up matching to find differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`...
argument (a string of length 1), and returns true if the character is junk. The default is ``None``, meaning that no character is considered junk. These junk-filtering functions speed up matching to find differences and do not cause any differing lines or characters to be ignored. Read the description of the :meth:`...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bb8417bc-b59d-40a6-8e5d-c45f952e49ca
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,355
supabase-export-v2
f49e2499e2d98ef3
few lines of context. The changes are shown in a before/after style. The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``***`` or ``---``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBase.readlines` result...
trusted_official_docs
CPython Docs
few lines of context. The changes are shown in a before/after style. The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``***`` or ``---``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBase.readlines` result...
few lines of context. The changes are shown in a before/after style. The number of context lines is set by *n* which defaults to three. By default, the diff control lines (those with ``***`` or ``---``) are created with a trailing newline. This is helpful so that inputs created from :func:`io.IOBase.readlines` result...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bcb5157b-c248-49ee-aef6-6708dfd12615
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,363
supabase-export-v2
5439ff0e5f5fa690
Optional argument *n* (default ``3``) is the maximum number of close matches to return; *n* must be greater than ``0``. Optional argument *cutoff* (default ``0.6``) is a float in the range [0, 1]. Possibilities that don't score at least that similar to *word* are ignored.
trusted_official_docs
CPython Docs
Optional argument *n* (default ``3``) is the maximum number of close matches to return; *n* must be greater than ``0``. Optional argument *cutoff* (default ``0.6``) is a float in the range [0, 1]. Possibilities that don't score at least that similar to *word* are ignored.
Optional argument *n* (default ``3``) is the maximum number of close matches to return; *n* must be greater than ``0``. Optional argument *cutoff* (default ``0.6``) is a float in the range [0, 1]. Possibilities that don't score at least that similar to *word* are ignored.
python, official-docs, cpython, P0
Local_Trusted_Corpus
c28783ae-5fad-4ac2-a3d8-6cdcadcf24c7
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,492
supabase-export-v2
5374af1100132dd8
``result`` is a list of strings, so let's pretty-print it: >>> from pprint import pprint >>> pprint(result) [' 1. Beautiful is better than ugly.\n', '- 2. Explicit is better than implicit.\n', '- 3. Simple is better than complex.\n', '+ 3. Simple is better than complex.\n', '? ++\n', '- 4. Complex is better than...
trusted_official_docs
CPython Docs
``result`` is a list of strings, so let's pretty-print it: >>> from pprint import pprint >>> pprint(result) [' 1. Beautiful is better than ugly.\n', '- 2. Explicit is better than implicit.\n', '- 3. Simple is better than complex.\n', '+ 3. Simple is better than complex.\n', '? ++\n', '- 4. Complex is better than...
``result`` is a list of strings, so let's pretty-print it: >>> from pprint import pprint >>> pprint(result) [' 1. Beautiful is better than ugly.\n', '- 2. Explicit is better than implicit.\n', '- 3. Simple is better than complex.\n', '+ 3. Simple is better than complex.\n', '? ++\n', '- 4. Complex is better than...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c626a116-72ce-40bc-af08-d628657c1a34
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,332
supabase-export-v2
7a66e0303f6d479c
Each line of a :class:`Differ` delta begins with a two-letter code: +----------+-------------------------------------------+ | Code | Meaning | +==========+===========================================+ | ``'- '`` | line unique to sequence 1 | +----------+-------------------------------------------+ | ``'+ '`` | lin...
trusted_official_docs
CPython Docs
Each line of a :class:`Differ` delta begins with a two-letter code: +----------+-------------------------------------------+ | Code | Meaning | +==========+===========================================+ | ``'- '`` | line unique to sequence 1 | +----------+-------------------------------------------+ | ``'+ '`` | lin...
Each line of a :class:`Differ` delta begins with a two-letter code: +----------+-------------------------------------------+ | Code | Meaning | +==========+===========================================+ | ``'- '`` | line unique to sequence 1 | +----------+-------------------------------------------+ | ``'+ '`` | lin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c80902a5-158f-4436-9236-827ed7eafc4a
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,326
supabase-export-v2
8c5245f95fd01bfe
to the right of the matching subsequence. This does not yield minimal edit sequences, but does tend to yield matches that "look right" to people. **Timing:** The basic Ratcliff-Obershelp algorithm is cubic time in the worst case and quadratic time in the expected case. :class:`SequenceMatcher` is quadratic time for t...
trusted_official_docs
CPython Docs
to the right of the matching subsequence. This does not yield minimal edit sequences, but does tend to yield matches that "look right" to people. **Timing:** The basic Ratcliff-Obershelp algorithm is cubic time in the worst case and quadratic time in the expected case. :class:`SequenceMatcher` is quadratic time for t...
to the right of the matching subsequence. This does not yield minimal edit sequences, but does tend to yield matches that "look right" to people. **Timing:** The basic Ratcliff-Obershelp algorithm is cubic time in the worst case and quadratic time in the expected case. :class:`SequenceMatcher` is quadratic time for t...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c934a684-8acc-415a-adf2-a81e98b22856
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,344
supabase-export-v2
2d92c29cca066e18
.. method:: make_file(fromlines, tolines, fromdesc='', todesc='', context=False, \ numlines=5, *, charset='utf-8') Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlig...
trusted_official_docs
CPython Docs
.. method:: make_file(fromlines, tolines, fromdesc='', todesc='', context=False, \ numlines=5, *, charset='utf-8') Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlig...
.. method:: make_file(fromlines, tolines, fromdesc='', todesc='', context=False, \ numlines=5, *, charset='utf-8') Compares *fromlines* and *tolines* (lists of strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlig...
python, official-docs, cpython, P0
Local_Trusted_Corpus
c93989ac-fe46-4a93-952b-87f447f37331
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,423
supabase-export-v2
03600eef7771c8db
abcd'`` at the tail end of the second sequence directly. Instead only the ``'abcd'`` can match, and matches the leftmost ``'abcd'`` in the second sequence: >>> s = SequenceMatcher(lambda x: x==" ", " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=1, b=0, size=4)
trusted_official_docs
CPython Docs
abcd'`` at the tail end of the second sequence directly. Instead only the ``'abcd'`` can match, and matches the leftmost ``'abcd'`` in the second sequence: >>> s = SequenceMatcher(lambda x: x==" ", " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=1, b=0, size=4)
abcd'`` at the tail end of the second sequence directly. Instead only the ``'abcd'`` can match, and matches the leftmost ``'abcd'`` in the second sequence: >>> s = SequenceMatcher(lambda x: x==" ", " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=1, b=0, size=4)
python, official-docs, cpython, P0
Local_Trusted_Corpus
c97c3567-5bcc-4ef4-9a09-d1c940994ec2
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,436
supabase-export-v2
058f7ad56afca92b
| +---------------+---------------------------------------------+ | ``'insert'`` | ``b[j1:j2]`` should be inserted at | | | ``a[i1:i1]``. Note that ``i1 == i2`` in | | | this case. | +---------------+---------------------------------------------+ | ``'equal'`` | ``a[i1:i2] == b[j1:j2]`` (the sub-sequences | | | are ...
trusted_official_docs
CPython Docs
| +---------------+---------------------------------------------+ | ``'insert'`` | ``b[j1:j2]`` should be inserted at | | | ``a[i1:i1]``. Note that ``i1 == i2`` in | | | this case. | +---------------+---------------------------------------------+ | ``'equal'`` | ``a[i1:i2] == b[j1:j2]`` (the sub-sequences | | | are ...
| +---------------+---------------------------------------------+ | ``'insert'`` | ``b[j1:j2]`` should be inserted at | | | ``a[i1:i1]``. Note that ``i1 == i2`` in | | | this case. | +---------------+---------------------------------------------+ | ``'equal'`` | ``a[i1:i2] == b[j1:j2]`` (the sub-sequences | | | are ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
caddc2c1-c7ab-44fd-b0cd-26eed5142cbe
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,422
supabase-export-v2
044a0fed124c23b8
junk elements on both sides. So the resulting block never matches on junk except as identical junk happens to be adjacent to an interesting match. Here's the same example as before, but considering blanks to be junk. That prevents ``' abcd'`` from matching the ``' abcd'`` at the tail end of the second sequence direct...
trusted_official_docs
CPython Docs
junk elements on both sides. So the resulting block never matches on junk except as identical junk happens to be adjacent to an interesting match. Here's the same example as before, but considering blanks to be junk. That prevents ``' abcd'`` from matching the ``' abcd'`` at the tail end of the second sequence direct...
junk elements on both sides. So the resulting block never matches on junk except as identical junk happens to be adjacent to an interesting match. Here's the same example as before, but considering blanks to be junk. That prevents ``' abcd'`` from matching the ``' abcd'`` at the tail end of the second sequence direct...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cb1bd26c-615a-4bce-87ae-cc91b4242ae6
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,335
supabase-export-v2
b147718c5f161ac1
.. class:: HtmlDiff This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode.
trusted_official_docs
CPython Docs
.. class:: HtmlDiff This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode.
.. class:: HtmlDiff This class can be used to create an HTML table (or a complete HTML file containing the table) showing a side by side, line by line comparison of text with inter-line and intra-line change highlights. The table can be generated in either full or contextual difference mode.
python, official-docs, cpython, P0
Local_Trusted_Corpus
cc3ae5bc-505b-4720-baa6-f2ad532313b4
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,369
supabase-export-v2
640802a262d1bde4
Optional keyword parameters *linejunk* and *charjunk* are filtering functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk, or false if not. The default is ``None``. There is also a module-level function :func:`IS_LINE_JUNK`, which filters out lin...
trusted_official_docs
CPython Docs
Optional keyword parameters *linejunk* and *charjunk* are filtering functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk, or false if not. The default is ``None``. There is also a module-level function :func:`IS_LINE_JUNK`, which filters out lin...
Optional keyword parameters *linejunk* and *charjunk* are filtering functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk, or false if not. The default is ``None``. There is also a module-level function :func:`IS_LINE_JUNK`, which filters out lin...
python, official-docs, cpython, P0
Local_Trusted_Corpus
cf2f572a-352c-4c24-88ee-4a261ad42ca7
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,345
supabase-export-v2
ee69a11364435918
strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlighted. *fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string).
trusted_official_docs
CPython Docs
strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlighted. *fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string).
strings) and returns a string which is a complete HTML file containing a table showing line by line differences with inter-line and intra-line changes highlighted. *fromdesc* and *todesc* are optional keyword arguments to specify from/to file column header strings (both default to an empty string).
python, official-docs, cpython, P0
Local_Trusted_Corpus
d037c2a2-796c-4e09-a655-d10c62f9e633
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,358
supabase-export-v2
865195639f0a9b86
for *fromfile*, *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. >>> import sys >>> from difflib import * >>> s1 = ['bacon\n', 'eggs\n', 'ham\n', 'guido\n'] >>> s2 = ['python\n', 'eggy\n', 'hamster\n', '...
trusted_official_docs
CPython Docs
for *fromfile*, *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. >>> import sys >>> from difflib import * >>> s1 = ['bacon\n', 'eggs\n', 'ham\n', 'guido\n'] >>> s2 = ['python\n', 'eggy\n', 'hamster\n', '...
for *fromfile*, *tofile*, *fromfiledate*, and *tofiledate*. The modification times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. >>> import sys >>> from difflib import * >>> s1 = ['bacon\n', 'eggs\n', 'ham\n', 'guido\n'] >>> s2 = ['python\n', 'eggy\n', 'hamster\n', '...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d25794e5-7537-4ab1-be59-d86595d92fbb
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,357
supabase-export-v2
fcb2d3e95a685de3
For inputs that do not have trailing newlines, set the *lineterm* argument to ``""`` so that the output will be uniformly newline free. The context diff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for *fromfile*, *tofile*, *fromfiledate*, and *...
trusted_official_docs
CPython Docs
For inputs that do not have trailing newlines, set the *lineterm* argument to ``""`` so that the output will be uniformly newline free. The context diff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for *fromfile*, *tofile*, *fromfiledate*, and *...
For inputs that do not have trailing newlines, set the *lineterm* argument to ``""`` so that the output will be uniformly newline free. The context diff format normally has a header for filenames and modification times. Any or all of these may be specified using strings for *fromfile*, *tofile*, *fromfiledate*, and *...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d31513f7-569a-481c-a627-6092dcaeb155
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,494
supabase-export-v2
1a8e9506e89fd78c
As a single multi-line string it looks like this: >>> import sys >>> sys.stdout.writelines(result) 1. Beautiful is better than ugly. - 2. Explicit is better than implicit. - 3. Simple is better than complex. + 3. Simple is better than complex. ? ++ - 4. Complex is better than complicated. ? ^ ---- ^ + 4. Complicate...
trusted_official_docs
CPython Docs
As a single multi-line string it looks like this: >>> import sys >>> sys.stdout.writelines(result) 1. Beautiful is better than ugly. - 2. Explicit is better than implicit. - 3. Simple is better than complex. + 3. Simple is better than complex. ? ++ - 4. Complex is better than complicated. ? ^ ---- ^ + 4. Complicate...
As a single multi-line string it looks like this: >>> import sys >>> sys.stdout.writelines(result) 1. Beautiful is better than ugly. - 2. Explicit is better than implicit. - 3. Simple is better than complex. + 3. Simple is better than complex. ? ++ - 4. Complex is better than complicated. ? ^ ---- ^ + 4. Complicate...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d48deb5a-1462-4a04-bef7-c1bd64f1ca74
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,454
supabase-export-v2
37636c6059079879
Return an upper bound on :meth:`ratio` very quickly. The three methods that return the ratio of matching to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :m...
trusted_official_docs
CPython Docs
Return an upper bound on :meth:`ratio` very quickly. The three methods that return the ratio of matching to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :m...
Return an upper bound on :meth:`ratio` very quickly. The three methods that return the ratio of matching to total characters can give different results due to differing levels of approximation, although :meth:`~SequenceMatcher.quick_ratio` and :meth:`~SequenceMatcher.real_quick_ratio` are always at least as large as :m...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d4a27809-034d-4738-8003-e201ded59c56
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,392
supabase-export-v2
6006ed071a1153f0
.. function:: IS_LINE_JUNK(line) Return ``True`` for ignorable lines. The line *line* is ignorable if *line* is blank or contains a single ``'#'``, otherwise it is not ignorable. Used as a default for parameter *linejunk* in :func:`ndiff` in older versions.
trusted_official_docs
CPython Docs
.. function:: IS_LINE_JUNK(line) Return ``True`` for ignorable lines. The line *line* is ignorable if *line* is blank or contains a single ``'#'``, otherwise it is not ignorable. Used as a default for parameter *linejunk* in :func:`ndiff` in older versions.
.. function:: IS_LINE_JUNK(line) Return ``True`` for ignorable lines. The line *line* is ignorable if *line* is blank or contains a single ``'#'``, otherwise it is not ignorable. Used as a default for parameter *linejunk* in :func:`ndiff` in older versions.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d9643a1b-42d6-4584-a087-1ce5ab589214
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,405
supabase-export-v2
cfa7990427a18f4d
The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`. The optional argument *autojunk* can be used to disable the automatic junk heuristic.
trusted_official_docs
CPython Docs
The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`. The optional argument *autojunk* can be used to disable the automatic junk heuristic.
The optional arguments *a* and *b* are sequences to be compared; both default to empty strings. The elements of both sequences must be :term:`hashable`. The optional argument *autojunk* can be used to disable the automatic junk heuristic.
python, official-docs, cpython, P0
Local_Trusted_Corpus
dd88115a-fe0a-4e7d-bf14-7f6b111b4192
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,421
supabase-export-v2
d71b1e7fe17dae8d
>>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5) If *isjunk* was provided, first the longest matching block is determined as above, but with the additional restriction that no junk element appears in the block. Then that block is extended as far as possi...
trusted_official_docs
CPython Docs
>>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5) If *isjunk* was provided, first the longest matching block is determined as above, but with the additional restriction that no junk element appears in the block. Then that block is extended as far as possi...
>>> s = SequenceMatcher(None, " abcd", "abcd abcd") >>> s.find_longest_match(0, 5, 0, 9) Match(a=0, b=4, size=5) If *isjunk* was provided, first the longest matching block is determined as above, but with the additional restriction that no junk element appears in the block. Then that block is extended as far as possi...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ddd301cf-61db-4db8-b8a6-c6191becb0e4
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,475
supabase-export-v2
b5062f20224dd85a
Optional keyword parameters *linejunk* and *charjunk* are for filter functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk. The default is ``None``, meaning that no line is considered junk.
trusted_official_docs
CPython Docs
Optional keyword parameters *linejunk* and *charjunk* are for filter functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk. The default is ``None``, meaning that no line is considered junk.
Optional keyword parameters *linejunk* and *charjunk* are for filter functions (or ``None``): *linejunk*: A function that accepts a single string argument, and returns true if the string is junk. The default is ``None``, meaning that no line is considered junk.
python, official-docs, cpython, P0
Local_Trusted_Corpus
de2cee87-24e9-41b5-9911-24914da92c94
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,472
supabase-export-v2
a0c6ff8472ff5e7e
accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves some notion of locality, at the occasional cost of producing a longer diff. The :class:`Differ` class has this constructor:
trusted_official_docs
CPython Docs
accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves some notion of locality, at the occasional cost of producing a longer diff. The :class:`Differ` class has this constructor:
accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves some notion of locality, at the occasional cost of producing a longer diff. The :class:`Differ` class has this constructor:
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1c10967-5867-473c-928b-494e59a492f1
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,435
supabase-export-v2
91fa0a47f9b4f967
The *tag* values are strings, with these meanings: +---------------+---------------------------------------------+ | Value | Meaning | +===============+=============================================+ | ``'replace'`` | ``a[i1:i2]`` should be replaced by | | | ``b[j1:j2]``. | +---------------+------------------------...
trusted_official_docs
CPython Docs
The *tag* values are strings, with these meanings: +---------------+---------------------------------------------+ | Value | Meaning | +===============+=============================================+ | ``'replace'`` | ``a[i1:i2]`` should be replaced by | | | ``b[j1:j2]``. | +---------------+------------------------...
The *tag* values are strings, with these meanings: +---------------+---------------------------------------------+ | Value | Meaning | +===============+=============================================+ | ``'replace'`` | ``a[i1:i2]`` should be replaced by | | | ``b[j1:j2]``. | +---------------+------------------------...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e22d6f4c-fd27-4efb-8715-6a2569ab150e
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,471
supabase-export-v2
53e0290f6c834f28
Differ objects -------------- Note that :class:`Differ`\ -generated deltas make no claim to be **minimal** diffs. To the contrary, minimal diffs are often counter-intuitive, because they synch up anywhere possible, sometimes accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves so...
trusted_official_docs
CPython Docs
Differ objects -------------- Note that :class:`Differ`\ -generated deltas make no claim to be **minimal** diffs. To the contrary, minimal diffs are often counter-intuitive, because they synch up anywhere possible, sometimes accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves so...
Differ objects -------------- Note that :class:`Differ`\ -generated deltas make no claim to be **minimal** diffs. To the contrary, minimal diffs are often counter-intuitive, because they synch up anywhere possible, sometimes accidental matches 100 pages apart. Restricting synch points to contiguous matches preserves so...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e385bb15-b3c0-4ba4-9b11-ac50b8edef61
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,401
supabase-export-v2
31e0d54fb9c80b62
.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True) Optional argument *isjunk* must be ``None`` (the default) or a one-argument function that takes a sequence element and returns true if and only if the element is "junk" and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``l...
trusted_official_docs
CPython Docs
.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True) Optional argument *isjunk* must be ``None`` (the default) or a one-argument function that takes a sequence element and returns true if and only if the element is "junk" and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``l...
.. class:: SequenceMatcher(isjunk=None, a='', b='', autojunk=True) Optional argument *isjunk* must be ``None`` (the default) or a one-argument function that takes a sequence element and returns true if and only if the element is "junk" and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``l...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ebdfb76e-4f30-4f6d-bfa3-25824abfb667
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,402
supabase-export-v2
dbe86d114126fc1f
and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``lambda x: False``; in other words, no elements are ignored. For example, pass:: lambda x: x in " \t"
trusted_official_docs
CPython Docs
and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``lambda x: False``; in other words, no elements are ignored. For example, pass:: lambda x: x in " \t"
and should be ignored. Passing ``None`` for *isjunk* is equivalent to passing ``lambda x: False``; in other words, no elements are ignored. For example, pass:: lambda x: x in " \t"
python, official-docs, cpython, P0
Local_Trusted_Corpus
f0117934-1dac-4b01-8809-78b407444c86
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,493
supabase-export-v2
a9f8f3b1cfe6f026
better than complicated.\n', '? ^ ---- ^\n', '+ 4. Complicated is better than complex.\n', '? ++++ ^ ^\n', '+ 5. Flat is better than nested.\n'] As a single multi-line string it looks like this:
trusted_official_docs
CPython Docs
better than complicated.\n', '? ^ ---- ^\n', '+ 4. Complicated is better than complex.\n', '? ++++ ^ ^\n', '+ 5. Flat is better than nested.\n'] As a single multi-line string it looks like this:
better than complicated.\n', '? ^ ---- ^\n', '+ 4. Complicated is better than complex.\n', '? ++++ ^ ^\n', '+ 5. Flat is better than nested.\n'] As a single multi-line string it looks like this:
python, official-docs, cpython, P0
Local_Trusted_Corpus
f17048a9-1b2a-4dd2-8eec-fd45335064f0
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,438
supabase-export-v2
a73706aa7f1967c9
For example:: >>> a = "qabxcd" >>> b = "abycdf" >>> s = SequenceMatcher(None, a, b) >>> for tag, i1, i2, j1, j2 in s.get_opcodes(): ... print('{:7} a[{}:{}] --> b[{}:{}] {!r:>8} --> {!r}'.format( ... tag, i1, i2, j1, j2, a[i1:i2], b[j1:j2])) delete a[0:1] --> b[0:0] 'q' --> '' equal a[1:3] --> b[0:2] 'ab' --> 'a...
trusted_official_docs
CPython Docs
For example:: >>> a = "qabxcd" >>> b = "abycdf" >>> s = SequenceMatcher(None, a, b) >>> for tag, i1, i2, j1, j2 in s.get_opcodes(): ... print('{:7} a[{}:{}] --> b[{}:{}] {!r:>8} --> {!r}'.format( ... tag, i1, i2, j1, j2, a[i1:i2], b[j1:j2])) delete a[0:1] --> b[0:0] 'q' --> '' equal a[1:3] --> b[0:2] 'ab' --> 'a...
For example:: >>> a = "qabxcd" >>> b = "abycdf" >>> s = SequenceMatcher(None, a, b) >>> for tag, i1, i2, j1, j2 in s.get_opcodes(): ... print('{:7} a[{}:{}] --> b[{}:{}] {!r:>8} --> {!r}'.format( ... tag, i1, i2, j1, j2, a[i1:i2], b[j1:j2])) delete a[0:1] --> b[0:0] 'q' --> '' equal a[1:3] --> b[0:2] 'ab' --> 'a...
python, official-docs, cpython, P0
Local_Trusted_Corpus
f17fa6c8-6d02-4b69-a682-5c30dc68e5a2
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,351
supabase-export-v2
87b64bb84322cb5c
*tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted. The arguments for this method are the same as those for the :meth:`make_file` method.
trusted_official_docs
CPython Docs
*tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted. The arguments for this method are the same as those for the :meth:`make_file` method.
*tolines* (lists of strings) and returns a string which is a complete HTML table showing line by line differences with inter-line and intra-line changes highlighted. The arguments for this method are the same as those for the :meth:`make_file` method.
python, official-docs, cpython, P0
Local_Trusted_Corpus
f3f4f45e-cb61-486e-b998-42c73da96eaa
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,371
supabase-export-v2
26d1abc8fe62b84b
not. The default is module-level function :func:`IS_CHARACTER_JUNK`, which filters out whitespace characters (a blank or tab; it's a bad idea to include newline in this!). >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> print(''.join(diff), end="")...
trusted_official_docs
CPython Docs
not. The default is module-level function :func:`IS_CHARACTER_JUNK`, which filters out whitespace characters (a blank or tab; it's a bad idea to include newline in this!). >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> print(''.join(diff), end="")...
not. The default is module-level function :func:`IS_CHARACTER_JUNK`, which filters out whitespace characters (a blank or tab; it's a bad idea to include newline in this!). >>> diff = ndiff('one\ntwo\nthree\n'.splitlines(keepends=True), ... 'ore\ntree\nemu\n'.splitlines(keepends=True)) >>> print(''.join(diff), end="")...
python, official-docs, cpython, P0
Local_Trusted_Corpus
fbf4f53e-81c2-4d05-b18f-b45d54aa0c78
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,430
supabase-export-v2
a159cfe1e386bbf1
not the last triple in the list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent triples always describe non-adjacent equal blocks. .. XXX Explain why a dummy is used!
trusted_official_docs
CPython Docs
not the last triple in the list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent triples always describe non-adjacent equal blocks. .. XXX Explain why a dummy is used!
not the last triple in the list, then ``i+n < i'`` or ``j+n < j'``; in other words, adjacent triples always describe non-adjacent equal blocks. .. XXX Explain why a dummy is used!
python, official-docs, cpython, P0
Local_Trusted_Corpus
fd5d1c85-730f-4bed-98d1-b079b11622dc
CPython Docs
file://datasets/cpython/Doc/library/difflib.rst
unknown
bd4cae69-8b64-4139-9d02-8d1ee07f35cb
22,394
supabase-export-v2
975b4002f00addf6
.. function:: IS_CHARACTER_JUNK(ch) Return ``True`` for ignorable characters. The character *ch* is ignorable if *ch* is a space or tab, otherwise it is not ignorable. Used as a default for parameter *charjunk* in :func:`ndiff`.
trusted_official_docs
CPython Docs
.. function:: IS_CHARACTER_JUNK(ch) Return ``True`` for ignorable characters. The character *ch* is ignorable if *ch* is a space or tab, otherwise it is not ignorable. Used as a default for parameter *charjunk* in :func:`ndiff`.
.. function:: IS_CHARACTER_JUNK(ch) Return ``True`` for ignorable characters. The character *ch* is ignorable if *ch* is a space or tab, otherwise it is not ignorable. Used as a default for parameter *charjunk* in :func:`ndiff`.
python, official-docs, cpython, P0
Local_Trusted_Corpus
007e068f-a618-46f0-a1ae-3782918f045b
CPython Docs
file://datasets/cpython/Doc/library/text.rst
unknown
19c2cff8-f109-40a6-812d-223f64d7c0ff
22,504
supabase-export-v2
7cdf508e5914f741
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services. The :mod:`codecs` module described under :ref:`binaryservices` is also highly relevant to text processing. In addition, see the documentation for Python's built-in string type in :ref:`textse...
trusted_official_docs
CPython Docs
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services. The :mod:`codecs` module described under :ref:`binaryservices` is also highly relevant to text processing. In addition, see the documentation for Python's built-in string type in :ref:`textse...
The modules described in this chapter provide a wide range of string manipulation operations and other text processing services. The :mod:`codecs` module described under :ref:`binaryservices` is also highly relevant to text processing. In addition, see the documentation for Python's built-in string type in :ref:`textse...
python, official-docs, cpython, P0
Local_Trusted_Corpus
051e9c15-7629-4506-9ea2-526ce021edd4
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,531
supabase-export-v2
85a51af21c4f0825
The enum values have several properties to indicate the HTTP status category: ==================== ======================== ====================================== Property Indicates that Details ==================== ======================== ====================================== ``is_informational`` ``100 <= status <= ...
trusted_official_docs
CPython Docs
The enum values have several properties to indicate the HTTP status category: ==================== ======================== ====================================== Property Indicates that Details ==================== ======================== ====================================== ``is_informational`` ``100 <= status <= ...
The enum values have several properties to indicate the HTTP status category: ==================== ======================== ====================================== Property Indicates that Details ==================== ======================== ====================================== ``is_informational`` ``100 <= status <= ...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0b953e24-a3b7-4aa4-8fe2-d225d8705c31
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,514
supabase-export-v2
159bf89a4bc66b73
:mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cookies` has utilities for implementing state management with cookies * :mod:`http.cookiejar` provides persistence of cookies The :mod:`!http` module also defines the following enums that help you work with http related code...
trusted_official_docs
CPython Docs
:mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cookies` has utilities for implementing state management with cookies * :mod:`http.cookiejar` provides persistence of cookies The :mod:`!http` module also defines the following enums that help you work with http related code...
:mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cookies` has utilities for implementing state management with cookies * :mod:`http.cookiejar` provides persistence of cookies The :mod:`!http` module also defines the following enums that help you work with http related code...
python, official-docs, cpython, P0
Local_Trusted_Corpus
0f4c1334-930f-4b27-9151-7c4a58da9fe7
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,522
supabase-export-v2
ed83f9af859fea1d
Supported, `IANA-registered status codes <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml>`_ available in :class:`http.HTTPStatus` are: ======= =================================== ================================================================== Code Enum Name Details ======= ===============...
trusted_official_docs
CPython Docs
Supported, `IANA-registered status codes <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml>`_ available in :class:`http.HTTPStatus` are: ======= =================================== ================================================================== Code Enum Name Details ======= ===============...
Supported, `IANA-registered status codes <https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml>`_ available in :class:`http.HTTPStatus` are: ======= =================================== ================================================================== Code Enum Name Details ======= ===============...
python, official-docs, cpython, P0
Local_Trusted_Corpus
23eb7937-f283-4a24-b53a-05ee4e6f6806
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,518
supabase-export-v2
652c0b31a56398ed
Usage:: >>> from http import HTTPStatus >>> HTTPStatus.OK HTTPStatus.OK >>> HTTPStatus.OK == 200 True >>> HTTPStatus.OK.value 200 >>> HTTPStatus.OK.phrase 'OK' >>> HTTPStatus.OK.description 'Request fulfilled, document follows' >>> list(HTTPStatus) [HTTPStatus.CONTINUE, HTTPStatus.SWITCHING_PROTOCOLS, ...]
trusted_official_docs
CPython Docs
Usage:: >>> from http import HTTPStatus >>> HTTPStatus.OK HTTPStatus.OK >>> HTTPStatus.OK == 200 True >>> HTTPStatus.OK.value 200 >>> HTTPStatus.OK.phrase 'OK' >>> HTTPStatus.OK.description 'Request fulfilled, document follows' >>> list(HTTPStatus) [HTTPStatus.CONTINUE, HTTPStatus.SWITCHING_PROTOCOLS, ...]
Usage:: >>> from http import HTTPStatus >>> HTTPStatus.OK HTTPStatus.OK >>> HTTPStatus.OK == 200 True >>> HTTPStatus.OK.value 200 >>> HTTPStatus.OK.phrase 'OK' >>> HTTPStatus.OK.description 'Request fulfilled, document follows' >>> list(HTTPStatus) [HTTPStatus.CONTINUE, HTTPStatus.SWITCHING_PROTOCOLS, ...]
python, official-docs, cpython, P0
Local_Trusted_Corpus
7f21c85b-5d2d-4c9d-920a-58812be76dee
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,527
supabase-export-v2
46c1f01fc24fafd2
.. versionadded:: 3.9 Added ``103 EARLY_HINTS``, ``418 IM_A_TEAPOT`` and ``425 TOO_EARLY`` status codes. .. versionchanged:: 3.13 Implemented RFC9110 naming for status constants. Old constant names are preserved for backwards compatibility: ``413 REQUEST_ENTITY_TOO_LARGE``, ``414 REQUEST_URI_TOO_LONG``, ``416 REQUES...
trusted_official_docs
CPython Docs
.. versionadded:: 3.9 Added ``103 EARLY_HINTS``, ``418 IM_A_TEAPOT`` and ``425 TOO_EARLY`` status codes. .. versionchanged:: 3.13 Implemented RFC9110 naming for status constants. Old constant names are preserved for backwards compatibility: ``413 REQUEST_ENTITY_TOO_LARGE``, ``414 REQUEST_URI_TOO_LONG``, ``416 REQUES...
.. versionadded:: 3.9 Added ``103 EARLY_HINTS``, ``418 IM_A_TEAPOT`` and ``425 TOO_EARLY`` status codes. .. versionchanged:: 3.13 Implemented RFC9110 naming for status constants. Old constant names are preserved for backwards compatibility: ``413 REQUEST_ENTITY_TOO_LARGE``, ``414 REQUEST_URI_TOO_LONG``, ``416 REQUES...
python, official-docs, cpython, P0
Local_Trusted_Corpus
bbae7efb-fb30-42a2-816c-4192ece62b79
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,537
supabase-export-v2
9d195572eae59273
Usage:: >>> from http import HTTPMethod >>> >>> HTTPMethod.GET <HTTPMethod.GET> >>> HTTPMethod.GET == 'GET' True >>> HTTPMethod.GET.value 'GET' >>> HTTPMethod.GET.description 'Retrieve the target.' >>> list(HTTPMethod) [<HTTPMethod.CONNECT>, <HTTPMethod.DELETE>, <HTTPMethod.GET>, <HTTPMethod.HEAD>, <HTTP...
trusted_official_docs
CPython Docs
Usage:: >>> from http import HTTPMethod >>> >>> HTTPMethod.GET <HTTPMethod.GET> >>> HTTPMethod.GET == 'GET' True >>> HTTPMethod.GET.value 'GET' >>> HTTPMethod.GET.description 'Retrieve the target.' >>> list(HTTPMethod) [<HTTPMethod.CONNECT>, <HTTPMethod.DELETE>, <HTTPMethod.GET>, <HTTPMethod.HEAD>, <HTTP...
Usage:: >>> from http import HTTPMethod >>> >>> HTTPMethod.GET <HTTPMethod.GET> >>> HTTPMethod.GET == 'GET' True >>> HTTPMethod.GET.value 'GET' >>> HTTPMethod.GET.description 'Retrieve the target.' >>> list(HTTPMethod) [<HTTPMethod.CONNECT>, <HTTPMethod.DELETE>, <HTTPMethod.GET>, <HTTPMethod.HEAD>, <HTTP...
python, official-docs, cpython, P0
Local_Trusted_Corpus
d1b25580-d277-407b-b856-a7594f90220d
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,524
supabase-export-v2
c2a9778ec237e3e5
in the :mod:`http.client` module in the form of constants. The enum name is equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as ``http.client.OK``). .. versionchanged:: 3.7 Added ``421 MISDIRECTED_REQUEST`` status code.
trusted_official_docs
CPython Docs
in the :mod:`http.client` module in the form of constants. The enum name is equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as ``http.client.OK``). .. versionchanged:: 3.7 Added ``421 MISDIRECTED_REQUEST`` status code.
in the :mod:`http.client` module in the form of constants. The enum name is equal to the constant name (i.e. ``http.HTTPStatus.OK`` is also available as ``http.client.OK``). .. versionchanged:: 3.7 Added ``421 MISDIRECTED_REQUEST`` status code.
python, official-docs, cpython, P0
Local_Trusted_Corpus
d5163d79-b7f8-4fac-bda5-db83bc1b30b8
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,513
supabase-export-v2
b726c5370d92ac0a
:mod:`!http` is a package that collects several modules for working with the HyperText Transfer Protocol: * :mod:`http.client` is a low-level HTTP protocol client; for high-level URL opening use :mod:`urllib.request` * :mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cook...
trusted_official_docs
CPython Docs
:mod:`!http` is a package that collects several modules for working with the HyperText Transfer Protocol: * :mod:`http.client` is a low-level HTTP protocol client; for high-level URL opening use :mod:`urllib.request` * :mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cook...
:mod:`!http` is a package that collects several modules for working with the HyperText Transfer Protocol: * :mod:`http.client` is a low-level HTTP protocol client; for high-level URL opening use :mod:`urllib.request` * :mod:`http.server` contains basic HTTP server classes based on :mod:`socketserver` * :mod:`http.cook...
python, official-docs, cpython, P0
Local_Trusted_Corpus
e1b4eb48-86fb-4c30-a199-00e7c6742a9f
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,540
supabase-export-v2
4501171c39037238
Supported, `IANA-registered methods <https://www.iana.org/assignments/http-methods/http-methods.xhtml>`_ available in :class:`http.HTTPMethod` are: =========== =================================== ================================================================== Method Enum Name Details =========== ====================...
trusted_official_docs
CPython Docs
Supported, `IANA-registered methods <https://www.iana.org/assignments/http-methods/http-methods.xhtml>`_ available in :class:`http.HTTPMethod` are: =========== =================================== ================================================================== Method Enum Name Details =========== ====================...
Supported, `IANA-registered methods <https://www.iana.org/assignments/http-methods/http-methods.xhtml>`_ available in :class:`http.HTTPMethod` are: =========== =================================== ================================================================== Method Enum Name Details =========== ====================...
python, official-docs, cpython, P0
Local_Trusted_Corpus
ead0d0f6-69ef-4a89-9e98-6fabe33fa3b3
CPython Docs
file://datasets/cpython/Doc/library/http.rst
unknown
cc016e82-96c8-44e0-b1fb-3b66111d3897
22,523
supabase-export-v2
30108aa768b6992c
Section 7.2 (Experimental) ``510`` ``NOT_EXTENDED`` An HTTP Extension Framework :rfc:`2774`, Section 7 (Experimental) ``511`` ``NETWORK_AUTHENTICATION_REQUIRED`` Additional HTTP Status Codes :rfc:`6585`, Section 6 ======= =================================== ==============================================================...
trusted_official_docs
CPython Docs
Section 7.2 (Experimental) ``510`` ``NOT_EXTENDED`` An HTTP Extension Framework :rfc:`2774`, Section 7 (Experimental) ``511`` ``NETWORK_AUTHENTICATION_REQUIRED`` Additional HTTP Status Codes :rfc:`6585`, Section 6 ======= =================================== ==============================================================...
Section 7.2 (Experimental) ``510`` ``NOT_EXTENDED`` An HTTP Extension Framework :rfc:`2774`, Section 7 (Experimental) ``511`` ``NETWORK_AUTHENTICATION_REQUIRED`` Additional HTTP Status Codes :rfc:`6585`, Section 6 ======= =================================== ==============================================================...
python, official-docs, cpython, P0
Local_Trusted_Corpus
04e187d9-e04a-4b9b-bf9c-25f94a12b34f
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,547
supabase-export-v2
a2faaa3bcc97b0d8
for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files. The property list (``.plist``) file format is a simple serialization supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level obje...
trusted_official_docs
CPython Docs
for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files. The property list (``.plist``) file format is a simple serialization supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level obje...
for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files. The property list (``.plist``) file format is a simple serialization supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level obje...
python, official-docs, cpython, P0
Local_Trusted_Corpus
05bc2748-8f41-4a2a-81e0-5e2e4b32c80a
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,581
supabase-export-v2
34eb834a3f359ab3
*aware_datetime* is true and any field with type ``datetime.datetime`` is set as an :ref:`aware object <datetime-naive-aware>`, it will convert to UTC timezone before writing it. A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types.
trusted_official_docs
CPython Docs
*aware_datetime* is true and any field with type ``datetime.datetime`` is set as an :ref:`aware object <datetime-naive-aware>`, it will convert to UTC timezone before writing it. A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types.
*aware_datetime* is true and any field with type ``datetime.datetime`` is set as an :ref:`aware object <datetime-naive-aware>`, it will convert to UTC timezone before writing it. A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types.
python, official-docs, cpython, P0
Local_Trusted_Corpus
0c81c7f5-c9c2-4e61-9bc1-bbe93ada4b66
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,582
supabase-export-v2
59e1190a1e755972
A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types. An :exc:`OverflowError` will be raised for integer values that cannot be represented in (binary) plist files.
trusted_official_docs
CPython Docs
A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types. An :exc:`OverflowError` will be raised for integer values that cannot be represented in (binary) plist files.
A :exc:`TypeError` will be raised if the object is of an unsupported type or a container that contains objects of unsupported types. An :exc:`OverflowError` will be raised for integer values that cannot be represented in (binary) plist files.
python, official-docs, cpython, P0
Local_Trusted_Corpus
12fd7c15-6d03-4d2a-9e19-bc452a9e19c2
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,586
supabase-export-v2
7f7fe951975f419a
.. function:: dumps(value, *, fmt=FMT_XML, sort_keys=True, skipkeys=False, aware_datetime=False) Return *value* as a plist-formatted bytes object. See the documentation for :func:`dump` for an explanation of the keyword arguments of this function.
trusted_official_docs
CPython Docs
.. function:: dumps(value, *, fmt=FMT_XML, sort_keys=True, skipkeys=False, aware_datetime=False) Return *value* as a plist-formatted bytes object. See the documentation for :func:`dump` for an explanation of the keyword arguments of this function.
.. function:: dumps(value, *, fmt=FMT_XML, sort_keys=True, skipkeys=False, aware_datetime=False) Return *value* as a plist-formatted bytes object. See the documentation for :func:`dump` for an explanation of the keyword arguments of this function.
python, official-docs, cpython, P0
Local_Trusted_Corpus
2dd7cc89-2678-4de1-b6ad-e91021aabae5
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,575
supabase-export-v2
22b17ea32577f0fa
Write *value* to a plist file. *fp* should be a writable, binary file object. The *fmt* argument specifies the format of the plist file and can be one of the following values:
trusted_official_docs
CPython Docs
Write *value* to a plist file. *fp* should be a writable, binary file object. The *fmt* argument specifies the format of the plist file and can be one of the following values:
Write *value* to a plist file. *fp* should be a writable, binary file object. The *fmt* argument specifies the format of the plist file and can be one of the following values:
python, official-docs, cpython, P0
Local_Trusted_Corpus
463b3210-9d60-4318-9403-c2c4257beb56
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,579
supabase-export-v2
d2dbf8c97f9005c3
the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dictionary. When *skipkeys* is false (the default) the function raises :exc:`TypeError` when a key of a dictionary is not a string, otherwise such keys are skipped.
trusted_official_docs
CPython Docs
the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dictionary. When *skipkeys* is false (the default) the function raises :exc:`TypeError` when a key of a dictionary is not a string, otherwise such keys are skipped.
the keys for dictionaries will be written to the plist in sorted order, otherwise they will be written in the iteration order of the dictionary. When *skipkeys* is false (the default) the function raises :exc:`TypeError` when a key of a dictionary is not a string, otherwise such keys are skipped.
python, official-docs, cpython, P0
Local_Trusted_Corpus
6e47f992-79b1-46eb-ad90-477f4aed4255
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,566
supabase-export-v2
d2ff1a48a4c28b54
the Expat parser from :mod:`xml.parsers.expat` -- see its documentation for possible exceptions on ill-formed XML. Unknown elements will simply be ignored by the plist parser. The parser raises :exc:`InvalidFileException` when the file cannot be parsed.
trusted_official_docs
CPython Docs
the Expat parser from :mod:`xml.parsers.expat` -- see its documentation for possible exceptions on ill-formed XML. Unknown elements will simply be ignored by the plist parser. The parser raises :exc:`InvalidFileException` when the file cannot be parsed.
the Expat parser from :mod:`xml.parsers.expat` -- see its documentation for possible exceptions on ill-formed XML. Unknown elements will simply be ignored by the plist parser. The parser raises :exc:`InvalidFileException` when the file cannot be parsed.
python, official-docs, cpython, P0
Local_Trusted_Corpus
7c16b848-6e72-4555-90ea-fdb3d5634c38
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,558
supabase-export-v2
98635c2808109c26
.. function:: load(fp, *, fmt=None, dict_type=dict, aware_datetime=False) Read a plist file. *fp* should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary).
trusted_official_docs
CPython Docs
.. function:: load(fp, *, fmt=None, dict_type=dict, aware_datetime=False) Read a plist file. *fp* should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary).
.. function:: load(fp, *, fmt=None, dict_type=dict, aware_datetime=False) Read a plist file. *fp* should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary).
python, official-docs, cpython, P0
Local_Trusted_Corpus
85c5c69f-e519-401f-a339-9650392fc784
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,551
supabase-export-v2
3af6f9691b92b590
Values can be strings, integers, floats, booleans, tuples, lists, dictionaries (but only with string keys), :class:`bytes`, :class:`bytearray` or :class:`datetime.datetime` objects. .. versionchanged:: 3.4 New API, old API deprecated. Support for binary format plists added.
trusted_official_docs
CPython Docs
Values can be strings, integers, floats, booleans, tuples, lists, dictionaries (but only with string keys), :class:`bytes`, :class:`bytearray` or :class:`datetime.datetime` objects. .. versionchanged:: 3.4 New API, old API deprecated. Support for binary format plists added.
Values can be strings, integers, floats, booleans, tuples, lists, dictionaries (but only with string keys), :class:`bytes`, :class:`bytearray` or :class:`datetime.datetime` objects. .. versionchanged:: 3.4 New API, old API deprecated. Support for binary format plists added.
python, official-docs, cpython, P0
Local_Trusted_Corpus
8e194d14-07ae-4b49-adf3-5ec7834b6a6e
CPython Docs
file://datasets/cpython/Doc/library/plistlib.rst
unknown
003bae61-2da3-4160-8821-758134bee2f6
22,546
supabase-export-v2
95b380c564485016
-------------- This module provides an interface for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files.
trusted_official_docs
CPython Docs
-------------- This module provides an interface for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files.
-------------- This module provides an interface for reading and writing the "property list" files used by Apple, primarily on macOS and iOS. This module supports both binary and XML plist files.
python, official-docs, cpython, P0
Local_Trusted_Corpus