From d71b170a4df7d2d3a93f55d3400b40000fda465c Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Thu, 9 Apr 2015 22:20:01 -0400 Subject: [PATCH 1/3] #23891: describe a few more modules in the tutorial --- Doc/tutorial/stdlib.rst | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst index d71598efdc3..72d51de1c06 100644 --- a/Doc/tutorial/stdlib.rst +++ b/Doc/tutorial/stdlib.rst @@ -140,6 +140,18 @@ The :mod:`random` module provides tools for making random selections:: >>> random.randrange(6) # random integer chosen from range(6) 4 +The :mod:`statistics` module calculates basic statistical properties +(the mean, median, variance, etc.) of numeric data:: + + >>> import statistics + >>> data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5] + >>> statistics.mean(data) + 1.6071428571428572 + >>> statistics.median(data) + 1.25 + >>> statistics.variance(data) + 1.3720238095238095 + The SciPy project has many other modules for numerical computations. @@ -311,13 +323,18 @@ sophisticated and robust capabilities of its larger packages. For example: (including attachments) and for implementing internet encoding and header protocols. -* The :mod:`xml.dom` and :mod:`xml.sax` packages provide robust support for - parsing this popular data interchange format. Likewise, the :mod:`csv` module - supports direct reads and writes in a common database format. Together, these - modules and packages greatly simplify data interchange between Python - applications and other tools. +* The :mod:`json` package provides robust support for parsing this + popular data interchange format. The :mod:`csv` module supports + direct reading and writing of files in Comma-Separated Value format, + commonly supported by databases and spreadsheets. XML processing is + supported by the :mod:`xml.etree.ElementTree`, :mod:`xml.dom` and + :mod:`xml.sax` packages. Together, these modules and packages + greatly simplify data interchange between Python applications and + other tools. + +* The :mod:`sqlite3` module is a wrapper for the SQLite database + library, providing a persistent database that can be updated and + accessed using slightly nonstandard SQL syntax. * Internationalization is supported by a number of modules including :mod:`gettext`, :mod:`locale`, and the :mod:`codecs` package. - - From ecacfd80e3e35da13ae0a7a90fca92c516439c3e Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sat, 6 Jun 2015 20:25:21 -0400 Subject: [PATCH 2/3] #23891: rework discussion of python-list a bit --- Doc/tutorial/whatnow.rst | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Doc/tutorial/whatnow.rst b/Doc/tutorial/whatnow.rst index 6b03cb5b207..cff74f2fb36 100644 --- a/Doc/tutorial/whatnow.rst +++ b/Doc/tutorial/whatnow.rst @@ -57,14 +57,11 @@ For Python-related questions and problem reports, you can post to the newsgroup :newsgroup:`comp.lang.python`, or send them to the mailing list at python-list@python.org. The newsgroup and mailing list are gatewayed, so messages posted to one will automatically be forwarded to the other. There are -around 120 postings a day (with peaks up to several hundred), asking (and +hundreds of postings a day, asking (and answering) questions, suggesting new features, and announcing new modules. -Before posting, be sure to check the list of :ref:`Frequently Asked Questions -` (also called the FAQ). Mailing list archives are available at https://mail.python.org/pipermail/. -The FAQ answers many of the questions that come up again and again, -and may already contain the solution for your problem. -.. Postings figure based on average of last six months activity as - reported by www.egroups.com; Jan. 2000 - June 2000: 21272 msgs / 182 - days = 116.9 msgs / day and steadily increasing. (XXX up to date figures?) +Before posting, be sure to check the list of +:ref:`Frequently Asked Questions ` (also called the FAQ). The +FAQ answers many of the questions that come up again and again, and may +already contain the solution for your problem. From 4a75174fba6f98fa92047bcb21b679f5153522eb Mon Sep 17 00:00:00 2001 From: Andrew Kuchling Date: Sun, 7 Jun 2015 03:00:58 -0400 Subject: [PATCH 3/3] Add link to pyvideoorg --- Doc/tutorial/whatnow.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/tutorial/whatnow.rst b/Doc/tutorial/whatnow.rst index cff74f2fb36..479542c1729 100644 --- a/Doc/tutorial/whatnow.rst +++ b/Doc/tutorial/whatnow.rst @@ -48,6 +48,9 @@ More Python resources: Particularly notable contributions are collected in a book also titled Python Cookbook (O'Reilly & Associates, ISBN 0-596-00797-3.) +* http://www.pyvideo.org collects links to Python-related videos from + conferences and user-group meetings. + * http://scipy.org: The Scientific Python project includes modules for fast array computations and manipulations plus a host of packages for such things as linear algebra, Fourier transforms, non-linear solvers,