sample_id
stringlengths
26
53
family_id
stringlengths
16
42
text
stringlengths
141
7.78k
language
stringclasses
1 value
profile
stringclasses
1 value
version_context
stringclasses
7 values
source_refs
stringlengths
293
384
dp-pt-cpython-3.13-howto-sockets.rst-1
dp-Python-howto-sockets.rst
Creating a Socket ================= Roughly speaking, when you clicked on the link that brought you to this page, your browser did something like the following:: # create an INET, STREAMing socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # now connect to the web server on port 80 - the normal ht...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/howto/sockets.rst#codepoints:2185:5708", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:howto/sockets.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-howto-sockets.rst-2
dp-Python-howto-sockets.rst
Using a Socket ============== The first thing to note, is that the web browser's "client" socket and the web server's "client" socket are identical beasts. That is, this is a "peer to peer" conversation. Or to put it another way, *as the designer, you will have to decide what the rules of etiquette are for a conversat...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/howto/sockets.rst#codepoints:5708:11631", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:howto/sockets.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-howto-sockets.rst-3
dp-Python-howto-sockets.rst
Binary Data ----------- It is perfectly possible to send binary data over a socket. The major problem is that not all machines use the same formats for binary data. For example, `network byte order <https://en.wikipedia.org/wiki/Endianness#Networking>`_ is big-endian, with the most significant byte first, so a 16 bit ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/howto/sockets.rst#codepoints:11631:15096", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:howto/sockets.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-howto-sockets.rst-4
dp-Python-howto-sockets.rst
Non-blocking Sockets ==================== If you've understood the preceding, you already know most of what you need to know about the mechanics of using sockets. You'll still use the same calls, in much the same ways. It's just that, if you do it right, your app will be almost inside-out. In Python, you use ``socket...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/howto/sockets.rst#codepoints:15096:18795", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:howto/sockets.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-library-aifc.rst-0
dp-Python-library-aifc.rst
:mod:`aifc` --- Read and write AIFF and AIFC files ================================================== .. module:: aifc :synopsis: Read and write audio files in AIFF or AIFC format. :deprecated: **Source code:** :source:`Lib/aifc.py` .. index:: single: Audio Interchange File Format single: AIFF single:...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/aifc.rst#codepoints:0:7670", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/aifc.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-library-email.policy.rst-0
dp-Python-library-email.policy.rst
:mod:`!email.policy`: Policy Objects ------------------------------------ .. module:: email.policy :synopsis: Controlling the parsing and generating of messages .. moduleauthor:: R. David Murray <rdmurray@bitdance.com> .. sectionauthor:: R. David Murray <rdmurray@bitdance.com> .. versionadded:: 3.3 **Source code...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:0:3956", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-email.policy.rst-1
dp-Python-library-email.policy.rst
behavior and features, respectively. :class:`Policy` instances are immutable, but they can be cloned, accepting the same keyword arguments as the class constructor and returning a new :class:`Policy` instance that is a copy of the original but with the specified attributes values changed. As an example, the following...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:3664:7590", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-email.policy.rst-2
dp-Python-library-email.policy.rst
The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` or :const:`None` indicates that no line wrapping should be done at all. .. attribute:: linesep The string to be used to terminate li...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:7313:11180", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-email.policy.rst-3
dp-Python-library-email.policy.rst
A custom policy must implement all of these methods. .. method:: handle_defect(obj, defect) Handle a *defect* found on *obj*. When the email package calls this method, *defect* will always be a subclass of :class:`~email.errors.Defect`. The default implementation checks the :attr:`rai...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:10914:14730", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-library-email.policy.rst-4
dp-Python-library-email.policy.rst
email package policies, the *name* and *value* should be strings or string subclasses that do not change the content of the passed in arguments. There is no default implementation .. method:: header_fetch_parse(name, value) The email package calls this method with the *name* and *va...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:14475:18361", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-library-email.policy.rst-5
dp-Python-library-email.policy.rst
``max_line_length`` will be refolded ``all`` all values are refolded. ======== =============================================================== The default is ``long``. .. attribute:: header_factory A callable that takes two arguments, ``name`` and ``value``, where ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:18118:22101", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-library-email.policy.rst-6
dp-Python-library-email.policy.rst
``linesep`` from the policy and returned. The exception is lines containing non-ascii binary data. In that case the value is refolded regardless of the ``refold_source`` setting, which causes the binary data to be CTE encoded using the ``unknown-8bit`` charset. .. method:: fold_binary(nam...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/email.policy.rst#codepoints:21811:27621", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.12-library-email.policy.rst-2
dp-Python-library-email.policy.rst
The maximum length of any line in the serialized output, not counting the end of line character(s). Default is 78, per :rfc:`5322`. A value of ``0`` or :const:`None` indicates that no line wrapping should be done at all. .. attribute:: linesep The string to be used to terminate li...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/email.policy.rst#codepoints:7313:11182", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/email.policy.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-library-errno.rst-0
dp-Python-library-errno.rst
:mod:`!errno` --- Standard errno system symbols =============================================== .. module:: errno :synopsis: Standard errno system symbols. ---------------- This module makes available standard ``errno`` system symbols. The value of each symbol is the corresponding integer value. The names and des...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/errno.rst#codepoints:0:3977", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/errno.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-errno.rst-1
dp-Python-library-errno.rst
.. data:: EL3RST Level 3 reset .. data:: ELNRNG Link number out of range .. data:: EUNATCH Protocol driver not attached .. data:: ENOCSI No CSI structure available .. data:: EL2HLT Level 2 halted .. data:: EBADE Invalid exchange .. data:: EBADR Invalid request descriptor .. d...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/errno.rst#codepoints:3693:8552", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/errno.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-msvcrt.rst-0
dp-Python-library-msvcrt.rst
:mod:`!msvcrt` --- Useful routines from the MS VC++ runtime =========================================================== .. module:: msvcrt :platform: Windows :synopsis: Miscellaneous useful routines from the MS VC++ runtime. .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> -------------- These functions...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/msvcrt.rst#codepoints:0:3151", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/msvcrt.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-msvcrt.rst-1
dp-Python-library-msvcrt.rst
Console I/O ----------- .. function:: kbhit() Returns a nonzero value if a keypress is waiting to be read. Otherwise, return 0. .. function:: getch() Read a keypress and return the resulting character as a byte string. Nothing is echoed to the console. This call will block if a keypress is not alre...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/msvcrt.rst#codepoints:3151:4565", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/msvcrt.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-msvcrt.rst-2
dp-Python-library-msvcrt.rst
Other Functions --------------- .. function:: heapmin() Force the :c:func:`malloc` heap to clean itself up and return unused blocks to the operating system. On failure, this raises :exc:`OSError`. .. function:: set_error_mode(mode) Changes the location where the C runtime writes an error message for an e...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/msvcrt.rst#codepoints:4565:7539", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/msvcrt.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-library-msvcrt.rst-0
dp-Python-library-msvcrt.rst
:mod:`!msvcrt` --- Useful routines from the MS VC++ runtime =========================================================== .. module:: msvcrt :platform: Windows :synopsis: Miscellaneous useful routines from the MS VC++ runtime. .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> -------------- These functions...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/msvcrt.rst#codepoints:0:3018", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/msvcrt.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.12-library-msvcrt.rst-1
dp-Python-library-msvcrt.rst
Console I/O ----------- .. function:: kbhit() Return ``True`` if a keypress is waiting to be read. .. function:: getch() Read a keypress and return the resulting character as a byte string. Nothing is echoed to the console. This call will block if a keypress is not already available, but will not wai...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/msvcrt.rst#codepoints:3018:4953", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/msvcrt.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-library-numbers.rst-0
dp-Python-library-numbers.rst
:mod:`!numbers` --- Numeric abstract base classes ================================================= .. module:: numbers :synopsis: Numeric abstract base classes (Complex, Real, Integral, etc.). **Source code:** :source:`Lib/numbers.py` -------------- The :mod:`!numbers` module (:pep:`3141`) defines a hierarchy o...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/numbers.rst#codepoints:0:3760", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/numbers.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-numbers.rst-1
dp-Python-library-numbers.rst
Implementing the arithmetic operations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ We want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. For subt...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/numbers.rst#codepoints:3760:8263", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/numbers.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-readline.rst-0
dp-Python-library-readline.rst
:mod:`!readline` --- GNU readline interface =========================================== .. module:: readline :platform: Unix :synopsis: GNU readline support for Python. .. sectionauthor:: Skip Montanaro <skip.montanaro@gmail.com> -------------- The :mod:`readline` module defines a number of functions to facil...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/readline.rst#codepoints:0:3271", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/readline.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-readline.rst-1
dp-Python-library-readline.rst
History file ------------ The following functions operate on a history file: .. function:: read_history_file([filename]) Load a readline history file, and append it to the history list. The default filename is :file:`~/.history`. This calls :c:func:`read_history` in the underlying library. .. function::...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/readline.rst#codepoints:3271:6381", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/readline.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-readline.rst-2
dp-Python-library-readline.rst
Startup hooks ------------- .. function:: set_startup_hook([function]) Set or remove the function invoked by the :c:data:`rl_startup_hook` callback of the underlying library. If *function* is specified, it will be used as the new hook function; if omitted or ``None``, any function already installed is r...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/readline.rst#codepoints:6381:10278", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/readline.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-readline.rst-3
dp-Python-library-readline.rst
Example ------- The following example demonstrates how to use the :mod:`readline` module's history reading and writing functions to automatically load and save a history file named :file:`.python_history` from the user's home directory. The code below would normally be executed automatically during interactive sessio...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/readline.rst#codepoints:10278:12808", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/readline.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-library-readline.rst-0
dp-Python-library-readline.rst
:mod:`!readline` --- GNU readline interface =========================================== .. module:: readline :platform: Unix :synopsis: GNU readline support for Python. .. sectionauthor:: Skip Montanaro <skip.montanaro@gmail.com> -------------- The :mod:`readline` module defines a number of functions to facil...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/readline.rst#codepoints:0:3102", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/readline.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-library-tkinter.colorchooser.rst-0
dp-Python-library-tkinter.colorchooser.rst
:mod:`!tkinter.colorchooser` --- Color choosing dialog ====================================================== .. module:: tkinter.colorchooser :platform: Tk :synopsis: Color choosing dialog **Source code:** :source:`Lib/tkinter/colorchooser.py` -------------- The :mod:`tkinter.colorchooser` module provides th...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/tkinter.colorchooser.rst#codepoints:0:908", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/tkinter.colorchooser.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3....
dp-pt-cpython-3.13-library-tokenize.rst-0
dp-Python-library-tokenize.rst
:mod:`!tokenize` --- Tokenizer for Python source ================================================ .. module:: tokenize :synopsis: Lexical scanner for Python source code. .. moduleauthor:: Ka Ping Yee .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org> **Source code:** :source:`Lib/tokenize.py` -------------- ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/tokenize.rst#codepoints:0:1241", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/tokenize.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-tokenize.rst-1
dp-Python-library-tokenize.rst
Tokenizing Input ---------------- The primary entry point is a :term:`generator`: .. function:: tokenize(readline) The :func:`.tokenize` generator requires one argument, *readline*, which must be a callable object which provides the same interface as the :meth:`io.IOBase.readline` method of file objects. E...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/tokenize.rst#codepoints:1241:5640", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/tokenize.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-tokenize.rst-2
dp-Python-library-tokenize.rst
Command-Line Usage ------------------ .. versionadded:: 3.3 The :mod:`tokenize` module can be executed as a script from the command line. It is as simple as: .. code-block:: sh python -m tokenize [-e] [filename.py] The following options are accepted: .. program:: tokenize .. option:: -h, --help show this ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/tokenize.rst#codepoints:5640:6175", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/tokenize.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-tokenize.rst-3
dp-Python-library-tokenize.rst
Examples ------------------ Example of a script rewriter that transforms float literals into Decimal objects:: from tokenize import tokenize, untokenize, NUMBER, STRING, NAME, OP from io import BytesIO def decistmt(s): """Substitute Decimals for floats in a string of statements. >>> from...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/tokenize.rst#codepoints:6175:10624", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/tokenize.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-types.rst-0
dp-Python-library-types.rst
:mod:`!types` --- Dynamic type creation and names for built-in types ==================================================================== .. module:: types :synopsis: Names for built-in types. **Source code:** :source:`Lib/types.py` -------------- This module defines utility functions to assist in dynamic creati...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/types.rst#codepoints:0:630", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/types.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-types.rst-1
dp-Python-library-types.rst
Dynamic Type Creation --------------------- .. function:: new_class(name, bases=(), kwds=None, exec_body=None) Creates a class object dynamically using the appropriate metaclass. The first three arguments are the components that make up a class definition header: the class name, the base classes (in order),...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/types.rst#codepoints:630:4510", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/types.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-types.rst-2
dp-Python-library-types.rst
Standard Interpreter Types -------------------------- This module provides names for many of the types that are required to implement a Python interpreter. It deliberately avoids including some of the types that arise only incidentally during processing such as the ``listiterator`` type. Typical use of these names is...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/types.rst#codepoints:4510:8290", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/types.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-types.rst-3
dp-Python-library-types.rst
The :term:`docstring` of the module. Defaults to ``None``. .. attribute:: __loader__ The :term:`loader` which loaded the module. Defaults to ``None``. This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader` as stored in the :attr:`__spec__` object. .. note:: ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/types.rst#codepoints:7992:14505", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/types.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-library-types.rst-4
dp-Python-library-types.rst
Additional Utility Classes and Functions ---------------------------------------- .. class:: SimpleNamespace A simple :class:`object` subclass that provides attribute access to its namespace, as well as a meaningful repr. Unlike :class:`object`, with :class:`!SimpleNamespace` you can add and remove attri...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/types.rst#codepoints:14505:17983", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/types.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-library-types.rst-3
dp-Python-library-types.rst
The :term:`docstring` of the module. Defaults to ``None``. .. attribute:: __loader__ The :term:`loader` which loaded the module. Defaults to ``None``. This attribute is to match :attr:`importlib.machinery.ModuleSpec.loader` as stored in the :attr:`__spec__` object. .. note:: ...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/types.rst#codepoints:7992:14403", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/types.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.12-library-types.rst-4
dp-Python-library-types.rst
Additional Utility Classes and Functions ---------------------------------------- .. class:: SimpleNamespace A simple :class:`object` subclass that provides attribute access to its namespace, as well as a meaningful repr. Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove attributes....
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/library/types.rst#codepoints:14403:17210", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:library/types.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-library-urllib.rst-0
dp-Python-library-urllib.rst
:mod:`!urllib` --- URL handling modules ======================================= .. module:: urllib **Source code:** :source:`Lib/urllib/` -------------- ``urllib`` is a package that collects several modules for working with URLs: * :mod:`urllib.request` for opening and reading URLs * :mod:`urllib.error` containing...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/library/urllib.rst#codepoints:0:468", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:library/urllib.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-0
dp-Python-tutorial-inputoutput.rst
.. _tut-io: **************** Input and Output **************** There are several ways to present the output of a program; data can be printed in a human-readable form, or written to a file for future use. This chapter will discuss some of the possibilities. .. _tut-formatting:
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:0:283", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-1
dp-Python-tutorial-inputoutput.rst
Fancier Output Formatting ========================= So far we've encountered two ways of writing values: *expression statements* and the :func:`print` function. (A third way is using the :meth:`~io.TextIOBase.write` method of file objects; the standard output file can be referenced as ``sys.stdout``. See the Library ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:283:4024", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-2
dp-Python-tutorial-inputoutput.rst
Formatted String Literals ------------------------- :ref:`Formatted string literals <f-strings>` (also called f-strings for short) let you include the value of Python expressions inside a string by prefixing the string with ``f`` or ``F`` and writing expressions as ``{expression}``. An optional format specifier can f...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:4024:5957", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-3
dp-Python-tutorial-inputoutput.rst
The String format() Method -------------------------- Basic usage of the :meth:`str.format` method looks like this:: >>> print('We are the {} who say "{}!"'.format('knights', 'Ni')) We are the knights who say "Ni!" The brackets and characters within them (called format fields) are replaced with the objects pas...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:5957:8768", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-4
dp-Python-tutorial-inputoutput.rst
Manual String Formatting ------------------------ Here's the same table of squares and cubes, formatted manually:: >>> for x in range(1, 11): ... print(repr(x).rjust(2), repr(x*x).rjust(3), end=' ') ... # Note use of 'end' on previous line ... print(repr(x*x*x).rjust(4)) ... 1 1 1 ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:8768:10755", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-tutorial-inputoutput.rst-5
dp-Python-tutorial-inputoutput.rst
Reading and Writing Files ========================= .. index:: pair: built-in function; open pair: object; file :func:`open` returns a :term:`file object`, and is most commonly used with two positional arguments and one keyword argument: ``open(filename, mode, encoding=None)`` :: >>> f = open('workfile', '...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:10755:14134", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-tutorial-inputoutput.rst-6
dp-Python-tutorial-inputoutput.rst
Methods of File Objects ----------------------- The rest of the examples in this section will assume that a file object called ``f`` has already been created. To read a file's contents, call ``f.read(size)``, which reads some quantity of data and returns it as a string (in text mode) or bytes object (in binary mode)....
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:14134:17752", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-tutorial-inputoutput.rst-7
dp-Python-tutorial-inputoutput.rst
Saving structured data with :mod:`json` --------------------------------------- .. index:: pair: module; json Strings can easily be written to and read from a file. Numbers take a bit more effort, since the :meth:`~io.TextIOBase.read` method only returns strings, which will have to be passed to a function like :func...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/tutorial/inputoutput.rst#codepoints:17752:20596", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:tutorial/inputoutput.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}...
dp-pt-cpython-3.13-using-index.rst-0
dp-Python-using-index.rst
.. _using-index: ########################## Python Setup and Usage ########################## This part of the documentation is devoted to general information on the setup of the Python environment on different platforms, the invocation of the interpreter and things that make working with Python easier. .. toctr...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/using/index.rst#codepoints:0:467", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:using/index.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-using-index.rst-0
dp-Python-using-index.rst
.. _using-index: ########################## Python Setup and Usage ########################## This part of the documentation is devoted to general information on the setup of the Python environment on different platforms, the invocation of the interpreter and things that make working with Python easier. .. toctr...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/using/index.rst#codepoints:0:425", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:using/index.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-0
dp-Python-whatsnew-3.10.rst
**************************** What's New In Python 3.10 **************************** :Editor: Pablo Galindo Salgado .. Rules for maintenance: * Anyone can add text to this document. Do not spend very much time on the wording of your changes, because your text will probably get rewritten to some degree. ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:0:3089", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-1
dp-Python-whatsnew-3.10.rst
Parenthesized context managers ------------------------------ Using enclosing parentheses for continuation across multiple lines in context managers is now supported. This allows formatting a long collection of context managers in multiple lines in a similar way as it was previously possible with import statements. Fo...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:3089:4352", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-2
dp-Python-whatsnew-3.10.rst
SyntaxErrors ~~~~~~~~~~~~ When parsing code that contains unclosed parentheses or brackets the interpreter now includes the location of the unclosed bracket of parentheses instead of displaying *SyntaxError: unexpected EOF while parsing* or pointing to some incorrect location. For instance, consider the following code...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:4352:9656", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-3
dp-Python-whatsnew-3.10.rst
IndentationErrors ~~~~~~~~~~~~~~~~~ Many :exc:`IndentationError` exceptions now have more context regarding what kind of block was expecting an indentation, including the location of the statement: .. code-block:: python >>> def foo(): ... if lel: ... x = 2 File "<stdin>", line 3 x = ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:9656:12742", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-4
dp-Python-whatsnew-3.10.rst
Syntax and operations ~~~~~~~~~~~~~~~~~~~~~ The generic syntax of pattern matching is:: match subject: case <pattern_1>: <action_1> case <pattern_2>: <action_2> case <pattern_3>: <action_3> case _: <action_wildcard> ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:12742:16736", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-5
dp-Python-whatsnew-3.10.rst
Patterns with a literal and variable ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Patterns can look like unpacking assignments, and a pattern may be used to bind variables. In this example, a data point can be unpacked to its x-coordinate and y-coordinate:: # point is an (x, y) tuple match point: case (0, 0):...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:16736:20574", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-6
dp-Python-whatsnew-3.10.rst
Other Key Features ~~~~~~~~~~~~~~~~~~ Several other key features: - Like unpacking assignments, tuple and list patterns have exactly the same meaning and actually match arbitrary sequences. Technically, the subject must be a sequence. Therefore, an important exception is that patterns don't match iterators. A...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:20574:23634", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-7
dp-Python-whatsnew-3.10.rst
PEP 604: New Type Union Operator -------------------------------- A new type union operator was introduced which enables the syntax ``X | Y``. This provides a cleaner way of expressing 'either type X or type Y' instead of using :data:`typing.Union`, especially in type hints. In previous versions of Python, to apply a...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:23634:27047", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-8
dp-Python-whatsnew-3.10.rst
Other Language Changes ====================== * The :class:`int` type has a new method :meth:`int.bit_count`, returning the number of ones in the binary expansion of a given integer, also known as the population count. (Contributed by Niklas Fiekas in :issue:`29882`.) * The views returned by :meth:`dict.keys`, :m...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:27047:31338", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-9
dp-Python-whatsnew-3.10.rst
New Modules =========== * None. Improved Modules ================ asyncio ------- Add missing :meth:`~asyncio.events.AbstractEventLoop.connect_accepted_socket` method. (Contributed by Alex Grönholm in :issue:`41332`.) argparse -------- Misleading phrase "optional arguments" was replaced with "options" in argpars...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:31338:34900", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-10
dp-Python-whatsnew-3.10.rst
Keyword-only fields ~~~~~~~~~~~~~~~~~~~ dataclasses now supports fields that are keyword-only in the generated __init__ method. There are a number of ways of specifying keyword-only fields. You can say that every field is keyword-only: .. code-block:: python from dataclasses import dataclass @dataclass(kw...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:34900:38828", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-11
dp-Python-whatsnew-3.10.rst
hashlib ------- The hashlib module requires OpenSSL 1.1.1 or newer. (Contributed by Christian Heimes in :pep:`644` and :issue:`43669`.) The hashlib module has preliminary support for OpenSSL 3.0.0. (Contributed by Christian Heimes in :issue:`38820` and other issues.) The pure-Python fallback of :func:`~hashlib.pbkdf...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:38828:42161", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-12
dp-Python-whatsnew-3.10.rst
inspect ------- When a module does not define ``__loader__``, fall back to ``__spec__.loader``. (Contributed by Brett Cannon in :issue:`42133`.) Add :func:`inspect.get_annotations`, which safely computes the annotations defined on an object. It works around the quirks of accessing the annotations on various types of ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:42161:46136", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-13
dp-Python-whatsnew-3.10.rst
shelve ------ The :mod:`shelve` module now uses :const:`pickle.DEFAULT_PROTOCOL` by default instead of :mod:`pickle` protocol ``3`` when creating shelves. (Contributed by Zackery Spytz in :issue:`34204`.) statistics ---------- Add :func:`~statistics.covariance`, Pearson's :func:`~statistics.correlation`, and simple ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:46136:50099", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-14
dp-Python-whatsnew-3.10.rst
traceback --------- The :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, and :func:`~traceback.print_exception` functions can now take an exception object as a positional-only argument. (Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.) types ----- Reintroduce the...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:50099:53951", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-15
dp-Python-whatsnew-3.10.rst
xml --- Add a :class:`~xml.sax.handler.LexicalHandler` class to the :mod:`xml.sax.handler` module. (Contributed by Jonathan Gossage and Zackery Spytz in :issue:`35018`.) zipimport --------- Add methods related to :pep:`451`: :meth:`~zipimport.zipimporter.find_spec`, :meth:`zipimport.zipimporter.create_module`, and :m...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:53951:57805", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-16
dp-Python-whatsnew-3.10.rst
Deprecated ========== * Currently Python accepts numeric literals immediately followed by keywords, for example ``0in x``, ``1or x``, ``0if 1else 2``. It allows confusing and ambiguous expressions like ``[0x1for x in y]`` (which can be interpreted as ``[0x1 for x in y]`` or ``[0x1f or x in y]``). Starting in ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:57805:61245", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-17
dp-Python-whatsnew-3.10.rst
system now triggers an :exc:`ImportWarning` as :meth:`importlib.abc.PathEntryFinder.find_spec` is preferred. You can use :func:`importlib.util.spec_from_loader` to help in porting. (Contributed by Brett Cannon in :issue:`43672`.) * The various implementations of :meth:`!importlib.abc.MetaPathFinder.find_modu...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:61006:66727", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-18
dp-Python-whatsnew-3.10.rst
Removed ======= * Removed special methods ``__int__``, ``__float__``, ``__floordiv__``, ``__mod__``, ``__divmod__``, ``__rfloordiv__``, ``__rmod__`` and ``__rdivmod__`` of the :class:`complex` class. They always raised a :exc:`TypeError`. (Contributed by Serhiy Storchaka in :issue:`41974`.) * The ``ParserBas...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:66727:70392", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-19
dp-Python-whatsnew-3.10.rst
Changes in the Python API ------------------------- * The *etype* parameters of the :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, and :func:`~traceback.print_exception` functions in the :mod:`traceback` module have been renamed to *exc*. (Contributed by Zackery Spytz and Matthi...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:70392:73058", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-20
dp-Python-whatsnew-3.10.rst
Changes in the C API -------------------- * The C API functions ``PyParser_SimpleParseStringFlags``, ``PyParser_SimpleParseStringFlagsFilename``, ``PyParser_SimpleParseFileFlags``, ``PyNode_Compile`` and the type used by these functions, ``struct _node``, were removed due to the switch to the new PEG parser. ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:73058:75459", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-21
dp-Python-whatsnew-3.10.rst
Build Changes ============= * :pep:`644`: Python now requires OpenSSL 1.1.1 or newer. OpenSSL 1.0.2 is no longer supported. (Contributed by Christian Heimes in :issue:`43669`.) * The C99 functions :c:func:`snprintf` and :c:func:`vsnprintf` are now required to build Python. (Contributed by Victor Stinner in :i...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:75459:78168", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-22
dp-Python-whatsnew-3.10.rst
New Features ------------ * The result of :c:func:`PyNumber_Index` now always has exact type :class:`int`. Previously, the result could have been an instance of a subclass of ``int``. (Contributed by Serhiy Storchaka in :issue:`40792`.) * Add a new :c:member:`~PyConfig.orig_argv` member to the :c:type:`PyConfig` ...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:78168:82434", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-23
dp-Python-whatsnew-3.10.rst
Porting to Python 3.10 ---------------------- * The ``PY_SSIZE_T_CLEAN`` macro must now be defined to use :c:func:`PyArg_ParseTuple` and :c:func:`Py_BuildValue` formats which use ``#``: ``es#``, ``et#``, ``s#``, ``u#``, ``y#``, ``z#``, ``U#`` and ``Z#``. See :ref:`arg-parsing` and :pep:`353`. (Contributed by V...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:82434:85920", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-24
dp-Python-whatsnew-3.10.rst
Removed ------- * Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. (Contributed by Inada Naoki in :issue:`41123`.) * ``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or :c:macro:`PyUnicode_GET_LENGTH` * ``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or :...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:85920:90321", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.13-whatsnew-3.10.rst-25
dp-Python-whatsnew-3.10.rst
Notable security feature in 3.10.7 ================================== Converting between :class:`int` and :class:`str` in bases other than 2 (binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now raises a :exc:`ValueError` if the number of digits in string form is above a limit to avoid potentia...
en
software_docs
Python 3.13.0
[{"license": "PSF-2.0", "locator": "Python-3.13.0/Doc/whatsnew/3.10.rst#codepoints:90321:91938", "revision": "3.13.0+sha256:12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4", "source_id": "cpython-3.13:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz"}]
dp-pt-cpython-3.12-whatsnew-3.10.rst-14
dp-Python-whatsnew-3.10.rst
traceback --------- The :func:`~traceback.format_exception`, :func:`~traceback.format_exception_only`, and :func:`~traceback.print_exception` functions can now take an exception object as a positional-only argument. (Contributed by Zackery Spytz and Matthias Bussonnier in :issue:`26389`.) types ----- Reintroduce the...
en
software_docs
Python 3.12.7
[{"license": "PSF-2.0", "locator": "Python-3.12.7/Doc/whatsnew/3.10.rst#codepoints:50099:53949", "revision": "3.12.7+sha256:73ac8fe780227bf371add8373c3079f42a0dc62deff8d612cd15a618082ab623", "source_id": "cpython-3.12:whatsnew/3.10.rst", "uri": "https://www.python.org/ftp/python/3.12.7/Python-3.12.7.tgz"}]
dp-pt-werkzeug-3.1-datastructures.rst-0
dp-Werkzeug-datastructures.rst
=============== Data Structures =============== .. module:: werkzeug.datastructures Werkzeug provides some subclasses of common Python objects to extend them with additional features. Some of them are used to make them immutable, others are used to change some semantics to better work with HTTP. General Purpose ===...
en
software_docs
Werkzeug 3.1.9
[{"license": "BSD-3-Clause", "locator": "werkzeug-3.1.9/docs/datastructures.rst#codepoints:0:3304", "revision": "3.1.9+sha256:55ca7c70a75689be937aa27f8ff4b018f06ff4838fc73045560bf0f5a1291060", "source_id": "werkzeug-3.1:datastructures.rst", "uri": "https://files.pythonhosted.org/packages/a4/34/4dd12fc8bb7d61c91467ec3ef...
dp-pt-werkzeug-3.1-index.rst-0
dp-Werkzeug-index.rst
.. rst-class:: hide-header Werkzeug ======== .. image:: _static/werkzeug-name.svg :align: center :height: 200px *werkzeug* German noun: "tool". Etymology: *werk* ("work"), *zeug* ("stuff") Werkzeug is a comprehensive `WSGI`_ web application library. It began as a simple collection of various utilities for W...
en
software_docs
Werkzeug 3.1.9
[{"license": "BSD-3-Clause", "locator": "werkzeug-3.1.9/docs/index.rst#codepoints:0:1195", "revision": "3.1.9+sha256:55ca7c70a75689be937aa27f8ff4b018f06ff4838fc73045560bf0f5a1291060", "source_id": "werkzeug-3.1:index.rst", "uri": "https://files.pythonhosted.org/packages/a4/34/4dd12fc8bb7d61c91467ec3efe415ffa7d5456f7999...
dp-pt-werkzeug-3.1-installation.rst-0
dp-Werkzeug-installation.rst
Installation ============ Python Version -------------- We recommend using the latest version of Python. Werkzeug supports Python 3.9 and newer. Optional dependencies ~~~~~~~~~~~~~~~~~~~~~ These distributions will not be installed automatically. Werkzeug will detect and use them if you install them. * `Colorama`...
en
software_docs
Werkzeug 3.1.9
[{"license": "BSD-3-Clause", "locator": "werkzeug-3.1.9/docs/installation.rst#codepoints:0:2389", "revision": "3.1.9+sha256:55ca7c70a75689be937aa27f8ff4b018f06ff4838fc73045560bf0f5a1291060", "source_id": "werkzeug-3.1:installation.rst", "uri": "https://files.pythonhosted.org/packages/a4/34/4dd12fc8bb7d61c91467ec3efe415...
dp-pt-attrs-26.1-api.rst-0
dp-attrs-api.rst
API Reference ============= .. module:: attrs *attrs* works by decorating a class using `attrs.define` or `attr.s` and then defining attributes on the class using `attrs.field`, `attr.ib`, or type annotations. What follows is the dry API explanation for people who understand how *attrs* works. If you'd like a hands-...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:0:3754", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d2698...
dp-pt-attrs-26.1-api.rst-1
dp-attrs-api.rst
Helpers ------- *attrs* comes with a bunch of helper methods that make working with it easier: .. currentmodule:: attrs .. autofunction:: attrs.cmp_using .. autofunction:: attrs.fields For example: .. doctest:: >>> @define ... class C: ... x = field() ... y = field() >...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:3754:9570", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d2...
dp-pt-attrs-26.1-api.rst-2
dp-attrs-api.rst
Validators ---------- .. module:: attrs.validators *attrs* comes with some common validators in the ``attrs.validators`` module. All objects from ``attrs.validators`` are also available from ``attr.validators`` (it's the same module in a different namespace). .. autofunction:: attrs.validators.lt For example: ...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:9570:12690", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d...
dp-pt-attrs-26.1-api.rst-3
dp-attrs-api.rst
.. autofunction:: attrs.validators.in_ For example: .. doctest:: >>> import enum >>> class State(enum.Enum): ... ON = "on" ... OFF = "off" >>> @define ... class C: ... state = field(validator=attrs.validators.in_(State)) ... val = field(validator...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:12632:16161", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1...
dp-pt-attrs-26.1-api.rst-4
dp-attrs-api.rst
>>> Measurement(tags={"source_": "universe"}) Measurement(tags={'source_': 'universe'}) .. autofunction:: attrs.validators.optional For example: .. doctest:: >>> @define ... class C: ... x = field( ... validator=attrs.validators.optional( ... ...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:15997:21786", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1...
dp-pt-attrs-26.1-api.rst-5
dp-attrs-api.rst
Converters ---------- .. autoclass:: attrs.Converter For example: .. doctest:: >>> def complicated(value, self_, field): ... return int(value) * self_.factor + field.metadata["offset"] >>> @define ... class C: ... factor = 5 # not an *attrs* field ... x = field...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/api.rst#codepoints:21786:24870", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:api.rst", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1...
dp-pt-attrs-26.1-index.md-0
dp-attrs-index.md
# *attrs*: Classes Without Boilerplate Release **{sub-ref}`release`** ([What's new?](changelog.md)) ```{include} ../README.md :start-after: 'teaser-begin -->' :end-before: '<!-- sponsor-break-begin' ``` <!-- [[[cog # This is mainly called from RTD's pre_build job! import pathlib, tomllib for sponsor in tomllib.lo...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/index.md#codepoints:0:3997", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:index.md", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26...
dp-pt-attrs-26.1-index.md-1
dp-attrs-index.md
## Full Table of Contents ```{toctree} :maxdepth: 2 :caption: Getting Started overview why examples ``` ```{toctree} :maxdepth: 2 :caption: Explanations types init comparison hashing ``` ```{toctree} :maxdepth: 2 :caption: Reference api api-attr glossary ``` ```{toctree} :maxdepth: 2 :caption: Advanced extending...
en
software_docs
attrs 26.1.0
[{"license": "MIT", "locator": "attrs-26.1.0/docs/index.md#codepoints:3997:4734", "revision": "26.1.0+sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", "source_id": "attrs-26.1:index.md", "uri": "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1...