Commit Graph

4273 Commits

Author SHA1 Message Date
Georg Brandl 871f1bc601 Backport from Py3k branch:
Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.

Had to change a few bits of the patch because classobjs and __methods__ are still
in Py2.6.
2007-03-12 13:17:36 +00:00
Martin v. Löwis 2681beb23e Patch #1677862: Require a space or tab after import in .pth files. 2007-03-12 11:01:10 +00:00
Collin Winter ae04106a0e Patch #1599845: Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer. 2007-03-10 14:41:48 +00:00
Collin Winter b7b2b4eecf Bug #1629566: clarify the docs on the return values of parsedate() and parsedate_tz() in email.utils and rfc822. 2007-03-09 18:09:10 +00:00
Martin v. Löwis 1190a38d33 Patch #957003: Implement smtplib.LMTP. 2007-03-09 15:35:55 +00:00
Brett Cannon a30fcb4dae Introduce test.test_support.TransientResource. It's a context manager to
surround calls to resources that may or may not be available.  Specifying the
expected exception and attributes to be raised if the resource is not available
prevents overly broad catching of exceptions.

This is meant to help suppress spurious failures by raising
test.test_support.ResourceDenied if the exception matches.  It would probably
be good to go through the various network tests and surround the calls to catch
connection timeouts (as done with test_socket_ssl in this commit).
2007-03-08 23:58:11 +00:00
Georg Brandl 6c932ad43d Fix #1676656: \em is different from \emph... 2007-03-08 17:49:06 +00:00
Martin v. Löwis 1843b68917 Add missing ) in parenthical remark. 2007-03-08 13:42:43 +00:00
Martin v. Löwis 05c075d629 Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). 2007-03-07 11:04:33 +00:00
Georg Brandl f08c073ded Patch #1669331: clarify shutil.copyfileobj() behavior wrt. file position. 2007-03-07 09:34:45 +00:00
Georg Brandl d0a962506b Patch #787789: allow to pass custom TestRunner instances to unittest's
main() function.
2007-03-07 09:21:06 +00:00
George Yoshida cadbbfc85b add versionadded info 2007-03-07 04:21:18 +00:00
Martin v. Löwis ab8a6bba25 Patch #912410: Replace HTML entity references for attribute values
in HTMLParser.
2007-03-06 14:43:00 +00:00
Georg Brandl ff432e6f4a Patch #1663234: you can now run doctest on test files and modules
using "python -m doctest [-v] filename ...".
2007-03-06 13:37:45 +00:00
Martin v. Löwis 3eb7648986 Patch #1121142: Implement ZipFile.open. 2007-03-06 10:41:24 +00:00
Raymond Hettinger c37e5e04eb Add collections.NamedTuple 2007-03-01 06:16:43 +00:00
Andrew M. Kuchling f2ae27e61a Markup fix 2007-02-26 23:02:47 +00:00
Jeremy Hylton 759410b372 Do not copy free variables to locals in class namespaces.
Fixes bug 1569356, but at the cost of a minor incompatibility in
locals().  Add test that verifies that the class namespace is not
polluted.  Also clarify the behavior in the library docs.

Along the way, cleaned up the dict_to_map and map_to_dict
implementations and added some comments that explain what they do.
2007-02-26 18:41:18 +00:00
Fred Drake 5a3e812444 - SF patch #1657613: add documentation for the Element interface
- clean up bogus use of the {datadescni} environment everywhere
2007-02-25 17:56:27 +00:00
Raymond Hettinger d36862cf78 Add itertools.izip_longest(). 2007-02-21 05:20:38 +00:00
Raymond Hettinger cbac8ce5b0 Fixup docstrings for merge(). 2007-02-19 18:15:04 +00:00
Martin v. Löwis 382abeff0f Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Raymond Hettinger bcc40ba922 Provide an example of defaultdict with non-zero constant factory function. 2007-02-19 09:14:10 +00:00
Raymond Hettinger 00166c5532 Add merge() function to heapq. 2007-02-19 04:08:43 +00:00
Georg Brandl 9cb37fc5d0 Add missing \versionadded. 2007-02-15 11:29:55 +00:00
Georg Brandl 983d100202 Patch #1494140: Add documentation for the new struct.Struct object. 2007-02-15 11:29:04 +00:00
Georg Brandl 9dca5eaf57 Make functools.wraps() docs a bit clearer. 2007-02-15 10:37:59 +00:00
Martin v. Löwis 91670d0246 Bug #1658794: Remove extraneous 'this'.
Will backport to 2.5.
2007-02-13 12:08:24 +00:00
Martin v. Löwis 84f6de9d7e Patch #1517891: Make 'a' create the file if it doesn't exist.
Fixes #1514451.
2007-02-13 10:10:39 +00:00
Martin v. Löwis c6d626ed9f Patch #698833: Support file decryption in zipfile. 2007-02-13 09:49:38 +00:00
Lars Gustäbel a69aa327aa Bug #1656581: Point out that external file objects are supposed to be
at position 0.
2007-02-12 09:25:53 +00:00
Georg Brandl 441268f867 Bug #1656078: typo in in profile docs. 2007-02-09 18:48:41 +00:00
Martin v. Löwis 7c4615b252 Update broken link. Will backport to 2.5. 2007-02-09 12:58:49 +00:00
Raymond Hettinger 3156316823 SF: 1397711 Set docs conflated immutable and hashable 2007-02-07 21:04:20 +00:00
Lars Gustäbel 3f8aca1164 Patch #1652681: create nonexistent files in append mode and
allow appending to empty files.
2007-02-06 18:38:13 +00:00
Brett Cannon 129bd52146 No more raising of string exceptions!
The next step of PEP 352 (for 2.6) causes raising a string exception to trigger
a TypeError.  Trying to catch a string exception raises a DeprecationWarning.
References to string exceptions has been removed from the docs since they are
now just an error.
2007-01-30 21:34:36 +00:00
Georg Brandl a05153683c Bug #1648191: typo in docs. 2007-01-30 20:21:30 +00:00
Andrew M. Kuchling 391e917b1a Strengthen warning about using lock() 2007-01-24 20:06:41 +00:00
Martin v. Löwis aef4c6bc00 Patch #1610575: Add support for _Bool to struct. 2007-01-21 09:33:07 +00:00
Raymond Hettinger 1b0ce85271 SF# 1635892: Fix docs for betavariate's input parameters . 2007-01-19 18:07:18 +00:00
Andrew M. Kuchling 3ffcfe2f68 [Part of bug #1599254] Add suggestion to Mailbox docs to use Maildir, and warn user to lock/unlock mailboxes when modifying them 2007-01-17 19:55:06 +00:00
Brett Cannon f5c034af10 Add a note for strptime that just because strftime supports some extra
directive that is not documented that strptime will as well.
2007-01-15 19:12:08 +00:00
Guido van Rossum 2799aab86d Doc patch matching r53434 (htonl etc. now always take/return positive ints). 2007-01-15 00:02:35 +00:00
Vinay Sajip 1ff01fb0af Added documentation for WatchedFileHandler (based on SF patch #1598415) 2007-01-14 21:50:50 +00:00
Georg Brandl 7ded34d25e Fix typo. 2007-01-13 12:31:51 +00:00
Brett Cannon 093b67061a Deprecate the sets module. 2007-01-13 00:29:49 +00:00
Brett Cannon 78a132b814 Fix error where the end of a funcdesc environment was accidentally moved too
far down.
2007-01-12 07:27:52 +00:00
Matthias Klose 764a7ec8ca - Make the documentation match the code and the docstring 2007-01-11 10:26:31 +00:00
Gregory P. Smith d92d3c7197 typo fix 2007-01-05 07:21:35 +00:00
Gregory P. Smith 8b96a35d14 Support linking of the bsddb module against BerkeleyDB 4.5.x
(will backport to 2.5)
2007-01-05 01:59:42 +00:00