Commit graph

15181 commits

Author SHA1 Message Date
Benjamin Peterson
cca65313c4 use 3 space indents 2010-08-09 02:13:10 +00:00
Raymond Hettinger
5b0c1e07ca Issue 7846: fnmatch cache can grow without bound
Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).
2010-08-09 02:07:15 +00:00
Antoine Pitrou
e43f9d0ed6 Issue #8524: Add a forget() method to socket objects, so as to put the
socket into the closed state without closing the underlying file
descriptor.
2010-08-08 23:24:50 +00:00
Antoine Pitrou
696e03553b Issue #477863: Print a warning at shutdown if gc.garbage is not empty. 2010-08-08 22:18:46 +00:00
Florent Xicluna
c17f17294f Issue #8047: Fix the xml.etree serializer to return bytes by default.
Use ``encoding="unicode"`` to generate a Unicode string.
2010-08-08 19:48:29 +00:00
Raymond Hettinger
2914308214 Issue #4570: Clean-up tutorial example 2010-08-08 01:32:06 +00:00
Raymond Hettinger
afdeca980d Issue #4570: Clean-up tutorial example 2010-08-08 01:30:45 +00:00
Raymond Hettinger
d331ce9e66 Issue #9507: Named tuple repr will now automatically display the right
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Raymond Hettinger
c6d80c1bef Issue 8814: functools.wraps() did not copy __annotations__. 2010-08-08 00:56:52 +00:00
Raymond Hettinger
f56c9cd30d Backport doc readability improvements for the collections module. 2010-08-08 00:32:32 +00:00
Raymond Hettinger
a6b76ba52e Improve readability of collections docs by adding a summary table
at the top and by list concrete classes before abstract base classes.
2010-08-08 00:29:08 +00:00
Raymond Hettinger
a2156c0b36 Fix typo 2010-08-07 23:38:16 +00:00
Raymond Hettinger
648e725712 Fix typo 2010-08-07 23:37:37 +00:00
Raymond Hettinger
0a9b5189d8 Document implementation notes for priority queues 2010-08-07 23:33:05 +00:00
Raymond Hettinger
0e833c3227 Document implementation notes for priority queues 2010-08-07 23:31:27 +00:00
Raymond Hettinger
c60f454af5 Backport doc updates for the bisect module 2010-08-07 21:40:14 +00:00
Raymond Hettinger
769b6d3009 Clean-up docstring in examples. 2010-08-07 21:31:55 +00:00
Raymond Hettinger
87c9d6cf9c Improve the docs for bisect to cover common searching tasks. 2010-08-07 07:36:55 +00:00
Raymond Hettinger
08d01eedef Add partition recipe to itertools docs. 2010-08-07 05:36:53 +00:00
Raymond Hettinger
e9499aef0a Fix markup 2010-08-07 04:19:49 +00:00
Raymond Hettinger
86f9613957 Improve the whatsnew article on the lru/lfu cache decorators. 2010-08-06 23:23:49 +00:00
Brian Curtin
3f004b1cc0 Merged revisions 83763 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83763 | brian.curtin | 2010-08-06 14:27:32 -0500 (Fri, 06 Aug 2010) | 3 lines

  Fix #9324: Add parameter validation to signal.signal on Windows in order
  to prevent crashes.
........
2010-08-06 19:34:52 +00:00
Brian Curtin
ef9efbd69c Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
2010-08-06 19:27:32 +00:00
Gerhard Häring
5d8cd24100 Issue #3854: Documented using the sqlite3 module with multiple threads. 2010-08-06 06:13:25 +00:00
Gerhard Häring
c34d76cdc3 Issue #3854: Documented using the sqlite3 module with multiple threads. 2010-08-06 06:12:05 +00:00
Brian Curtin
f045d775fd Issue #9524: Document that two CTRL* signals are meant for use only
with os.kill.
2010-08-05 18:56:00 +00:00
Alexandre Vassalotti
ae7801813c Issue 5077: Add documentation for operator fixer.
Patch by Meador Inge.
2010-08-05 07:12:18 +00:00
Mark Dickinson
388122d43b Issue #9337: Make float.__str__ identical to float.__repr__.
(And similarly for complex numbers.)
2010-08-04 20:56:28 +00:00
Mark Dickinson
e56a386e0e Merged revisions 83732 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83732 | mark.dickinson | 2010-08-04 19:42:43 +0100 (Wed, 04 Aug 2010) | 3 lines

  Issue #9498:  Add reference to sys.float_info from 'numeric types' docs.
  Thanks Yitz Gale.
........
2010-08-04 18:43:36 +00:00
Mark Dickinson
74f5902b04 Issue #9498: Add reference to sys.float_info from 'numeric types' docs.
Thanks Yitz Gale.
2010-08-04 18:42:43 +00:00
Antoine Pitrou
560f7647ce Issue #8814: function annotations (the __annotations__ attribute)
are now included in the set of attributes copied by default by
functools.wraps and functools.update_wrapper.  Patch by Terrence Cole.
2010-08-04 18:28:02 +00:00
Senthil Kumaran
8801f7add2 Merged revisions 83701 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83701 | senthil.kumaran | 2010-08-04 10:20:44 +0530 (Wed, 04 Aug 2010) | 3 lines

  Fix Issue754016 - urlparse goes wrong with IP:port without scheme
........
2010-08-04 04:53:07 +00:00
Senthil Kumaran
84c7d9f87b Fix Issue754016 - urlparse goes wrong with IP:port without scheme 2010-08-04 04:50:44 +00:00
R. David Murray
88c49fe320 #9444: use first of prefix_chars for help opt instead of raising error
An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character.  This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.

Fix by Theodore Turocy, unit tests by Catherine Devlin.
2010-08-03 17:56:09 +00:00
Georg Brandl
203947fa59 Merged revisions 83663 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k

........
  r83663 | georg.brandl | 2010-08-03 14:36:57 +0200 (Di, 03 Aug 2010) | 1 line

  A couple of nits how to ignore errors.
........
2010-08-03 12:37:34 +00:00
Georg Brandl
38557f2ac9 A couple of nits how to ignore errors. 2010-08-03 12:36:57 +00:00
Georg Brandl
224cea1892 Merged revisions 83660 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k

........
  r83660 | georg.brandl | 2010-08-03 14:31:59 +0200 (Di, 03 Aug 2010) | 1 line

  Get rid of UserWarnings when running Sphinx from tools dir.
........
2010-08-03 12:34:35 +00:00
Georg Brandl
2f27755f5d Get rid of UserWarnings when running Sphinx from tools dir. 2010-08-03 12:31:59 +00:00
Georg Brandl
7cb1319688 Terminology fix: exceptions are raised, except in generator.throw(). 2010-08-03 12:06:29 +00:00
Georg Brandl
1800934285 #9061: warn that single quotes are never escaped. 2010-08-02 21:51:18 +00:00
Georg Brandl
98be996250 #9238: zipfile does handle archive comments. 2010-08-02 20:52:10 +00:00
Georg Brandl
17dafdc249 Clarify that abs() is not a namespace. 2010-08-02 20:44:34 +00:00
Georg Brandl
62e4231a27 #7797: be explicit about bytes-oriented interface of base64 functions. 2010-08-02 20:39:35 +00:00
Georg Brandl
a1631b337a #9019: remove false (in 3k) claim about Headers updates. 2010-08-02 20:30:57 +00:00
Georg Brandl
b2566cfbf9 #9111: document that do_help() looks at docstrings. 2010-08-02 20:27:20 +00:00
Georg Brandl
9c491c9b28 #9037: add example how to raise custom exceptions from C code. 2010-08-02 20:21:21 +00:00
Georg Brandl
8477f82c3e #8648: document UTF-7 codec functions. 2010-08-02 20:05:19 +00:00
Georg Brandl
0c7ade2fe3 Remove redundant information. 2010-08-02 19:39:17 +00:00
Georg Brandl
c589a70e17 #9438: clarify that constant names also cannot be assigned as attributes. 2010-08-02 19:36:36 +00:00
Georg Brandl
9499bb76a3 Remove XXX comment that was displayed. 2010-08-02 19:35:06 +00:00