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
8441f15626
Patch #1530482 : add pydoc.render_doc() which returns the documentation
...
for a thing instead of paging it to stdout, which pydoc.doc() does.
2007-03-13 20:02:57 +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
Georg Brandl
92a6baed7b
Patch #1603688 : ConfigParser.SafeConfigParser now checks values that
...
are set for invalid interpolation sequences that would lead to errors
on reading back those values.
2007-03-13 17:43:32 +00:00
Georg Brandl
a47337fba5
Bug #1622896 : fix a rare corner case where the bz2 module raised an
...
error in spite of a succesful compression.
2007-03-13 12:34:25 +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
Martin v. Löwis
bdd0f39de5
Patch #1449244 : Support Unicode strings in
...
email.message.Message.{set_charset,get_content_charset}.
Will backport.
2007-03-13 10:24:00 +00:00
Georg Brandl
18c47f6a3b
Patch #1569798 : fix a bug in distutils when building Python from a
...
directory within sys.exec_prefix.
2007-03-13 10:19:22 +00:00
Georg Brandl
b6a87542b3
Patch #1542681 : add entries for "with", "as" and "CONTEXTMANAGERS" to
...
pydoc's help keywords.
2007-03-13 10:06:48 +00:00
Georg Brandl
4ffc8f5107
Patch #1555098 : use str.join() instead of repeated string
...
concatenation in robotparser.
2007-03-13 09:41:31 +00:00
Georg Brandl
94fe3f58d0
Patch #1635454 : the csv.DictWriter class now includes the offending
...
field names in its exception message if you try to write a record with
a dictionary containing fields not in the CSV field names list.
2007-03-13 09:32:11 +00:00
Georg Brandl
ceede5c359
Patch #1668100 : urllib2 now correctly raises URLError instead of
...
OSError if accessing a local file via the file:// protocol fails.
2007-03-13 08:14:27 +00:00
Georg Brandl
0692a2621c
Patch #1679379 : add documentation for fnmatch.translate().
2007-03-13 07:50:57 +00:00
Collin Winter
276887b16d
Bug #742342 : make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167 .
...
Will backport.
2007-03-12 16:11:39 +00:00
Georg Brandl
7b9c555520
Bug #1678647 : write a newline after printing an exception in any
...
case, even when converting the value to a string failed.
2007-03-12 14:30:05 +00:00
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
Martin v. Löwis
eb62357a2e
Bug #1675511 : Use -Kpic instead of -xcode=pic32 on Solaris/x86.
2007-03-12 10:50:39 +00:00
Collin Winter
2faa9e1466
Patch #1192590 : Fix pdb's "ignore" and "condition" commands so they trap the IndexError caused by passing in an invalid breakpoint number.
...
Will backport.
2007-03-11 16:00:20 +00:00
Žiga Seilnacht
8903208776
Patch #1675981 : remove unreachable code from type.__new__() method.
...
__dict__ and __weakref__ are removed from the slots tuple earlier
in the code, in the loop that mangles slot names. Will backport.
2007-03-11 15:54:54 +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
faaa204129
Add proper attribution for a bug fix.
2007-03-10 03:35:34 +00:00
Collin Winter
22c42ba88c
Bug #1531963 : Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket.
...
Will backport.
2007-03-10 02:51:26 +00:00
Thomas Heller
2456a3c02a
Bug #1651235 : When a tuple was passed to a ctypes function call,
...
Python would crash instead of raising an error.
The crash was caused by a section of code that should have been
removed long ago, at that time ctypes had other ways to pass
parameters to function calls.
2007-03-09 20:39:22 +00:00
Collin Winter
e38051db87
Patch #1491866 : change the complex() constructor to allow parthensized forms. This means complex(repr(x)) now works instead of raising a ValueError.
2007-03-09 20:33:07 +00:00
Thomas Heller
c2f7725c86
Fix bug #1646630 : ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
...
returned string up to the first NUL character.
2007-03-09 19:21:28 +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
Collin Winter
fb728de5f4
Add NEWS item for patch #1481079 (r54234).
2007-03-09 03:26:32 +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
9caadf80a1
Add a NEWS entry for rev. 54207,8.
2007-03-08 18:37:31 +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
d0a962506b
Patch #787789 : allow to pass custom TestRunner instances to unittest's
...
main() function.
2007-03-07 09:21:06 +00:00
Georg Brandl
15c5ce936f
Patches #1550273 , #1550272 : fix a few bugs in unittest and add a
...
comprehensive test suite for the module.
2007-03-07 09:09:40 +00:00
Georg Brandl
71ff646743
Patch #1001604 : glob.glob() now returns unicode filenames if it was
...
given a unicode argument and os.listdir() returns unicode filenames.
2007-03-07 08:31:51 +00:00
Georg Brandl
aa2321b0f8
Patch #703779 : unset __file__ in __main__ after running a file. This
...
makes the filenames the warning module prints much more sensible when
a PYTHONSTARTUP file is used.
2007-03-07 00:40:28 +00:00
Georg Brandl
49aafc9f2c
Variant of patch #697613 : don't exit the interpreter on a SystemExit
...
exception if the -i command line option or PYTHONINSPECT environment
variable is given, but break into the interactive interpreter just like
on other exceptions or normal program exit.
(backport)
2007-03-07 00:34:46 +00:00
Walter Dörwald
8537c303c7
Document change to curses.
2007-03-06 21:15:24 +00:00
Georg Brandl
40c626159d
Patch #1654417 : make operator.{get,set,del}slice use the full range
...
of Py_ssize_t.
2007-03-06 18:59:11 +00:00
Georg Brandl
00cd818dea
Patch #1638879 : don't accept strings with embedded NUL bytes in long().
2007-03-06 18:41:12 +00:00
Guido van Rossum
2054ee9b6f
Patch #1646728 : datetime.fromtimestamp fails with negative
...
fractional times. With unittest.
Somebody please backport to 2.5.
2007-03-06 15:50:01 +00:00
Skip Montanaro
d1287323ca
patch 1673619 - identify extension modules which cannot be built
2007-03-06 15:41:38 +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
Georg Brandl
098cd69ff9
Bug #1674503 : close the file opened by execfile() in an error condition.
2007-03-06 12:17:50 +00:00
Martin v. Löwis
3eb7648986
Patch #1121142 : Implement ZipFile.open.
2007-03-06 10:41:24 +00:00
Georg Brandl
d28b9fc686
Patch #1671450 : add a section about subclassing builtin types to the
...
"extending and embedding" tutorial.
2007-03-06 10:02:47 +00:00
Georg Brandl
0fca97a5fb
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
2007-03-05 22:28:08 +00:00