Commit graph

4324 commits

Author SHA1 Message Date
Georg Brandl
ae91afdcfb Lots of explicit class names for method and member descs. 2007-04-01 22:39:10 +00:00
Georg Brandl
b8e8df2e63 Another fix. 2007-04-01 21:39:52 +00:00
Georg Brandl
4e9165d2dd Fix a lot of markup and meta-information glitches. 2007-04-01 21:29:15 +00:00
Georg Brandl
5201364de5 Markup fix. 2007-03-31 11:54:58 +00:00
Georg Brandl
b8b88743a8 repair string literal. 2007-03-31 10:17:31 +00:00
Georg Brandl
8c09b14978 Markup fix. 2007-03-30 19:14:02 +00:00
Georg Brandl
92a9fc0a2f Duplicate label fix. 2007-03-30 19:01:38 +00:00
Georg Brandl
f3c123d82d Markup fix. 2007-03-30 17:48:39 +00:00
Georg Brandl
bc7d71a8fd Duplicate label fix. 2007-03-30 17:47:21 +00:00
Georg Brandl
749757329a Label name fix. 2007-03-30 17:39:39 +00:00
Georg Brandl
459ef66f6e Markup fix. 2007-03-30 15:49:05 +00:00
Facundo Batista
93c33680a0 Added the posibility to pass the timeout to FTP.connect, not only when
instantiating the class. Docs and tests are updated.
2007-03-30 13:00:35 +00:00
Facundo Batista
b6a5c9d605 Added timout parameter to telnetlib.Telnet. Also created
test_telnetlib.py with a basic test and timeout ones.
Docs are also updated.
2007-03-29 18:22:35 +00:00
Georg Brandl
9499b7117a These are actually methods. 2007-03-29 07:41:32 +00:00
Facundo Batista
366d6262f8 Added timeout to smtplib (to SMTP and SMTP_SSL). Also created
the test_smtplib.py file, with a basic test and the timeout
ones. Docs are updated too.
2007-03-28 18:25:54 +00:00
Facundo Batista
1b1c347311 Added an optional timeout to poplib.POP3. Also created a
test_poplib.py file with a basic test and the timeout
ones. Docs are also updated.
2007-03-27 18:23:21 +00:00
Georg Brandl
f03facfe90 Some nits. 2007-03-26 20:28:28 +00:00
Facundo Batista
51b7abc519 Added an optional timeout to FTP class. Also I started a test_ftplib.py
file to test the ftp lib (right now I included a basic test, the timeout
one, and nothing else).
2007-03-26 20:18:31 +00:00
Brett Cannon
27ef61ca18 Change the docs to no longer claim that unittest is preferred over doctest for
regression tests.
2007-03-25 01:32:36 +00:00
Georg Brandl
3d52e5f07d Revert accidental change. 2007-03-24 22:27:56 +00:00
Georg Brandl
b881b9aacf Remove typo accent. 2007-03-24 22:20:34 +00:00
Facundo Batista
07c78be0b4 Added a 'create_connect()' function to socket.py, which creates a
connection with an optional timeout, and modified httplib.py to
use this function in HTTPConnection. Applies patch 1676823.
2007-03-23 18:54:07 +00:00
Georg Brandl
bfcc975527 Bug #1685704: use -m switch in timeit docs. 2007-03-22 08:05:45 +00:00
Facundo Batista
3ff9e55890 Minor clarification, saying that blocking means no timeout (from bug #882297) 2007-03-21 19:41:24 +00:00
Andrew M. Kuchling
4732c6e164 Put code examples at left margin instead of indenting them 2007-03-21 16:59:20 +00:00
Andrew M. Kuchling
7af1bdf619 Fix sentence, and fix typo in example 2007-03-21 16:57:32 +00:00
Georg Brandl
cae9f3d916 New test for rev. 54407 which only uses directories under TESTFN. 2007-03-21 09:10:29 +00:00
Neal Norwitz
c990f6454f Try backing out 54407 to see if it corrects the problems on the Windows
buildbots.  This rev was backported, so we will need to keep both branches
in sync, pending the outcome of the test after this checkin.
2007-03-20 05:23:09 +00:00
Neal Norwitz
b9523df1e6 Add some doc that was left out from some change to platform.py 2007-03-20 05:07:28 +00:00
Collin Winter
a8785cc26a Patch #1630118: add a SpooledTemporaryFile class to tempfile. 2007-03-19 18:52:08 +00:00
Georg Brandl
1d4b834574 Patch #1682878: the new socket methods are recv_into and recvfrom_into, not *_buf. 2007-03-18 08:25:00 +00:00
Georg Brandl
2b869943fa Patch #1675423: PyComplex_AsCComplex() now tries to convert an object
to complex using its __complex__() method before falling back to the
__float__() method. Therefore, the functions in the cmath module now
can operate on objects that define a __complex__() method.
 (backport)
2007-03-17 16:08:45 +00:00
Collin Winter
6f187743ff Patch 1339796: add a relpath() function to os.path. 2007-03-16 22:16:08 +00:00
Georg Brandl
6ab8452036 RFE #1670167: fix in isinstance() docs. 2007-03-16 08:33:47 +00:00
Georg Brandl
5a80ff6111 Add \versionadded tag. 2007-03-16 08:24:21 +00:00
Georg Brandl
8844e438b1 Patch #1273829: os.walk() now has a "followlinks" parameter. If set to
True (which is not the default), it visits symlinks pointing to
directories.
2007-03-16 08:22:40 +00:00
Georg Brandl
8784bae65d Patch #1680978: consistently use "alive" instead of "active" in the
thread lib doc.
2007-03-15 07:38:14 +00:00
Gregory P. Smith
90fd76a2b4 Its time to stop listing (Unix, Windows) when we really mean "everything but Mac OS 9"
now that nobody is likely to use Python on Mac OS 9 and most of the (Mac) platform
items are all OS X special API specific since OS X is unixy enough for these modules
to be available out of the box.
2007-03-14 07:19:50 +00:00
Gregory P. Smith
859b7c1b82 correct order and names of the less often used keyword parameters. 2007-03-14 07:17:40 +00:00
Georg Brandl
03b90d8cfd Patch #957650: "%var%" environment variable references are now properly
expanded in ntpath.expandvars(), also "~user" home directory references
are recognized and handled on Windows.
2007-03-13 22:07:36 +00:00
Georg Brandl
8044e5bbd4 Deprecate commands.getstatus(). 2007-03-13 21:32:01 +00:00
Georg Brandl
8e84c65660 Patch #1393667: pdb now has a "run" command which restarts the debugged
Python program, optionally with different arguments.
2007-03-13 21:08:15 +00:00
Thomas Heller
c3a643192f Add versionadded marker for ctypes.c_bool. 2007-03-13 21:01:39 +00:00
Georg Brandl
5240d7416c Patch #1444529: the builtin compile() now accepts keyword arguments.
(backport)
2007-03-13 20:46:32 +00:00
Thomas Heller
5dc4fe09b7 Patch #1649190: Adding support for _Bool to ctypes as c_bool, by David Remahl. 2007-03-13 20:42:52 +00:00
Georg Brandl
d9bef35e3c Patch #1533909: the timeit module now accepts callables in addition to
strings for the code to time and the setup code. Also added two
convenience functions for instantiating a Timer and calling its methods.
2007-03-13 19:32:21 +00:00
Georg Brandl
35ef9c19fe Patch #1537850: tempfile.NamedTemporaryFile now has a "delete" parameter
which can be set to False to prevent the default delete-on-close
behavior.
2007-03-13 18:31:49 +00:00
Georg Brandl
9e6b47002a Patch #1581073: add a flag to textwrap that prevents the dropping of
whitespace while wrapping.
2007-03-13 18:15:41 +00:00
Lars Gustäbel
c64e40215d This is the implementation of POSIX.1-2001 (pax) format read/write
support.

The TarInfo class now contains all necessary logic to process and
create tar header data which has been moved there from the TarFile
class. The fromtarfile() method was added. The new path and linkpath
properties are aliases for the name and linkname attributes in
correspondence to the pax naming scheme.

The TarFile constructor and classmethods now accept a number of
keyword arguments which could only be set as attributes before (e.g.
dereference, ignore_zeros). The encoding and pax_headers arguments
were added for pax support. There is a new tarinfo keyword argument
that allows using subclassed TarInfo objects in TarFile.

The boolean TarFile.posix attribute is deprecated, because now three
tar formats are supported. Instead, the desired format for writing is
specified using the constants USTAR_FORMAT, GNU_FORMAT and PAX_FORMAT
as the format keyword argument. This change affects TarInfo.tobuf()
as well.

The test suite has been heavily reorganized and partially rewritten.
A new testtar.tar was added that contains sample data in many formats
from 4 different tar programs.

Some bugs and quirks that also have been fixed:
Directory names do no longer have a trailing slash in TarInfo.name or
TarFile.getnames().
Adding the same file twice does not create a hardlink file member.
The TarFile constructor does no longer need a name argument.
The TarFile._mode attribute was renamed to mode and contains either
'r', 'w' or 'a'.
2007-03-13 10:47:19 +00:00
Georg Brandl
0692a2621c Patch #1679379: add documentation for fnmatch.translate(). 2007-03-13 07:50:57 +00:00