Skip to content

Commit 1f49f83

Browse files
committed
Merge from 3.5
2 parents f3ed926 + 20f628e commit 1f49f83

File tree

2 files changed

+32
-15
lines changed

2 files changed

+32
-15
lines changed

Doc/tutorial/stdlib.rst

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ The :mod:`random` module provides tools for making random selections::
140140
>>> random.randrange(6) # random integer chosen from range(6)
141141
4
142142

143+
The :mod:`statistics` module calculates basic statistical properties
144+
(the mean, median, variance, etc.) of numeric data::
145+
146+
>>> import statistics
147+
>>> data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5]
148+
>>> statistics.mean(data)
149+
1.6071428571428572
150+
>>> statistics.median(data)
151+
1.25
152+
>>> statistics.variance(data)
153+
1.3720238095238095
154+
143155
The SciPy project <http://scipy.org> has many other modules for numerical
144156
computations.
145157

@@ -311,13 +323,18 @@ sophisticated and robust capabilities of its larger packages. For example:
311323
(including attachments) and for implementing internet encoding and header
312324
protocols.
313325

314-
* The :mod:`xml.dom` and :mod:`xml.sax` packages provide robust support for
315-
parsing this popular data interchange format. Likewise, the :mod:`csv` module
316-
supports direct reads and writes in a common database format. Together, these
317-
modules and packages greatly simplify data interchange between Python
318-
applications and other tools.
326+
* The :mod:`json` package provides robust support for parsing this
327+
popular data interchange format. The :mod:`csv` module supports
328+
direct reading and writing of files in Comma-Separated Value format,
329+
commonly supported by databases and spreadsheets. XML processing is
330+
supported by the :mod:`xml.etree.ElementTree`, :mod:`xml.dom` and
331+
:mod:`xml.sax` packages. Together, these modules and packages
332+
greatly simplify data interchange between Python applications and
333+
other tools.
334+
335+
* The :mod:`sqlite3` module is a wrapper for the SQLite database
336+
library, providing a persistent database that can be updated and
337+
accessed using slightly nonstandard SQL syntax.
319338

320339
* Internationalization is supported by a number of modules including
321340
:mod:`gettext`, :mod:`locale`, and the :mod:`codecs` package.
322-
323-

Doc/tutorial/whatnow.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ More Python resources:
4848
Particularly notable contributions are collected in a book also titled Python
4949
Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.)
5050

51+
* http://www.pyvideo.org collects links to Python-related videos from
52+
conferences and user-group meetings.
53+
5154
* http://scipy.org: The Scientific Python project includes modules for fast
5255
array computations and manipulations plus a host of packages for such
5356
things as linear algebra, Fourier transforms, non-linear solvers,
@@ -57,14 +60,11 @@ For Python-related questions and problem reports, you can post to the newsgroup
5760
:newsgroup:`comp.lang.python`, or send them to the mailing list at
5861
python-list@python.org. The newsgroup and mailing list are gatewayed, so
5962
messages posted to one will automatically be forwarded to the other. There are
60-
around 120 postings a day (with peaks up to several hundred), asking (and
63+
hundreds of postings a day, asking (and
6164
answering) questions, suggesting new features, and announcing new modules.
62-
Before posting, be sure to check the list of :ref:`Frequently Asked Questions
63-
<faq-index>` (also called the FAQ).
6465
Mailing list archives are available at https://mail.python.org/pipermail/.
65-
The FAQ answers many of the questions that come up again and again,
66-
and may already contain the solution for your problem.
6766

68-
.. Postings figure based on average of last six months activity as
69-
reported by www.egroups.com; Jan. 2000 - June 2000: 21272 msgs / 182
70-
days = 116.9 msgs / day and steadily increasing. (XXX up to date figures?)
67+
Before posting, be sure to check the list of
68+
:ref:`Frequently Asked Questions <faq-index>` (also called the FAQ). The
69+
FAQ answers many of the questions that come up again and again, and may
70+
already contain the solution for your problem.

0 commit comments

Comments
 (0)