Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfc2397

Browse files
committed
merge default
2 parents aa9a79d + 4ad4fb9 commit dfc2397

10 files changed

Lines changed: 83 additions & 18 deletions

File tree

Doc/library/concurrency.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Doc/library/concurrent.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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

Doc/library/html.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Doc/library/http.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

Doc/library/internet.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

Doc/library/markup.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,13 @@ data markup. This includes modules to work with the Standard Generalized Markup
99
Language (SGML) and the Hypertext Markup Language (HTML), and several interfaces
1010
for 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

Doc/library/urllib.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

Doc/library/xml.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

Doc/library/xmlrpc.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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`

Doc/reference/expressions.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)