File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ multitasking) Here's an overview:
1515
1616 threading.rst
1717 multiprocessing.rst
18+ concurrent.rst
1819 concurrent.futures.rst
1920 subprocess.rst
2021 sched.rst
Original file line number Diff line number Diff line change 1+ The :mod: `concurrent ` package
2+ =============================
3+
4+ Currently, there is only one module in this package:
5+
6+ * :mod: `concurrent.futures ` -- Launching parallel tasks
Original file line number Diff line number Diff line change @@ -19,3 +19,10 @@ This module defines utilities to manipulate HTML.
1919 attribute value delimited by quotes, as in ``<a href="..."> ``.
2020
2121 .. versionadded :: 3.2
22+
23+ --------------
24+
25+ Submodules in the ``html `` package are:
26+
27+ * :mod: `html.parser ` -- HTML/XHTML parser with lenient parsing mode
28+ * :mod: `html.entities ` -- HTML entity definitions
Original file line number Diff line number Diff line change 1+ :mod: `http ` --- HTTP modules
2+ ============================
3+
4+ ``http `` is a package that collects several modules for working with the
5+ HyperText Transfer Protocol:
6+
7+ * :mod: `http.client ` is a low-level HTTP protocol client; for high-level URL
8+ opening use :mod: `urllib.request `
9+ * :mod: `http.server ` contains basic HTTP server classes based on :mod: `socketserver `
10+ * :mod: `http.cookies ` has utilities for implementing state management with cookies
11+ * :mod: `http.cookiejar ` provides persistence of cookies
Original file line number Diff line number Diff line change @@ -23,10 +23,12 @@ is currently supported on most popular platforms. Here is an overview:
2323 cgi.rst
2424 cgitb.rst
2525 wsgiref.rst
26+ urllib.rst
2627 urllib.request.rst
2728 urllib.parse.rst
2829 urllib.error.rst
2930 urllib.robotparser.rst
31+ http.rst
3032 http.client.rst
3133 ftplib.rst
3234 poplib.rst
@@ -40,6 +42,7 @@ is currently supported on most popular platforms. Here is an overview:
4042 http.server.rst
4143 http.cookies.rst
4244 http.cookiejar.rst
45+ xmlrpc.rst
4346 xmlrpc.client.rst
4447 xmlrpc.server.rst
4548 ipaddress.rst
Original file line number Diff line number Diff line change @@ -9,20 +9,13 @@ data markup. This includes modules to work with the Standard Generalized Markup
99Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces
1010for working with the Extensible Markup Language (XML).
1111
12- It is important to note that modules in the :mod: `xml ` package require that
13- there be at least one SAX-compliant XML parser available. The Expat parser is
14- included with Python, so the :mod: `xml.parsers.expat ` module will always be
15- available.
16-
17- The documentation for the :mod: `xml.dom ` and :mod: `xml.sax ` packages are the
18- definition of the Python bindings for the DOM and SAX interfaces.
19-
2012
2113.. toctree ::
2214
2315 html.rst
2416 html.parser.rst
2517 html.entities.rst
18+ xml.rst
2619 xml.etree.elementtree.rst
2720 xml.dom.rst
2821 xml.dom.minidom.rst
Original file line number Diff line number Diff line change 1+ :mod: `urllib ` --- URL handling modules
2+ ======================================
3+
4+ ``urllib `` is a package that collects several modules for working with URLs:
5+
6+ * :mod: `urllib.request ` for opening and reading URLs
7+ * :mod: `urllib.error ` containing the exceptions raised by :mod: `urllib.request `
8+ * :mod: `urllib.parse ` for parsing URLs
9+ * :mod: `urllib.robotparser ` for parsing ``robots.txt `` files
Original file line number Diff line number Diff line change 1+ .. _xml :
2+
3+ XML Processing Modules
4+ ======================
5+
6+ Python's interfaces for processing XML are grouped in the ``xml `` package.
7+
8+ It is important to note that modules in the :mod: `xml ` package require that
9+ there be at least one SAX-compliant XML parser available. The Expat parser is
10+ included with Python, so the :mod: `xml.parsers.expat ` module will always be
11+ available.
12+
13+ The documentation for the :mod: `xml.dom ` and :mod: `xml.sax ` packages are the
14+ definition of the Python bindings for the DOM and SAX interfaces.
15+
16+ The XML handling submodules are:
17+
18+ * :mod: `xml.etree.ElementTree `: the ElementTree API, a simple and lightweight
19+
20+ ..
21+
22+ * :mod: `xml.dom `: the DOM API definition
23+ * :mod: `xml.dom.minidom `: a lightweight DOM implementation
24+ * :mod: `xml.dom.pulldom `: support for building partial DOM trees
25+
26+ ..
27+
28+ * :mod: `xml.sax `: SAX2 base classes and convenience functions
29+ * :mod: `xml.parsers.expat `: the Expat parser binding
Original file line number Diff line number Diff line change 1+ :mod: `xmlrpc ` --- XMLRPC server and client modules
2+ ==================================================
3+
4+ XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a
5+ transport. With it, a client can call methods with parameters on a remote
6+ server (the server is named by a URI) and get back structured data.
7+
8+ ``xmlrpc `` is a package that collects server and client modules implementing
9+ XML-RPC. The modules are:
10+
11+ * :mod: `xmlrpc.client `
12+ * :mod: `xmlrpc.server `
Original file line number Diff line number Diff line change @@ -1094,16 +1094,10 @@ Comparison of objects of the same type depends on the type:
10941094 another one is made arbitrarily but consistently within one execution of a
10951095 program.
10961096
1097- Comparison of objects of the differing types depends on whether either
1098- of the types provide explicit support for the comparison. Most numeric types
1099- can be compared with one another, but comparisons of :class: `float ` and
1100- :class: `Decimal ` are not supported to avoid the inevitable confusion arising
1101- from representation issues such as ``float('1.1') `` being inexactly represented
1102- and therefore not exactly equal to ``Decimal('1.1') `` which is. When
1103- cross-type comparison is not supported, the comparison method returns
1104- ``NotImplemented ``. This can create the illusion of non-transitivity between
1105- supported cross-type comparisons and unsupported comparisons. For example,
1106- ``Decimal(2) == 2 `` and ``2 == float(2) `` but ``Decimal(2) != float(2) ``.
1097+ Comparison of objects of the differing types depends on whether either of the
1098+ types provide explicit support for the comparison. Most numeric types can be
1099+ compared with one another. When cross-type comparison is not supported, the
1100+ comparison method returns ``NotImplemented ``.
11071101
11081102.. _membership-test-details :
11091103
You can’t perform that action at this time.
0 commit comments