]>
granicus.if.org Git - python/log
Georg Brandl [Tue, 13 Mar 2007 08:14:27 +0000 (08:14 +0000)]
Patch #
1668100 : urllib2 now correctly raises URLError instead of
OSError if accessing a local file via the file:// protocol fails.
Georg Brandl [Tue, 13 Mar 2007 07:57:51 +0000 (07:57 +0000)]
Patch #
1642844 : comments to clarify the complexobject constructor.
Georg Brandl [Tue, 13 Mar 2007 07:50:57 +0000 (07:50 +0000)]
Patch #
1679379 : add documentation for fnmatch.translate().
Georg Brandl [Tue, 13 Mar 2007 07:23:16 +0000 (07:23 +0000)]
Typo and grammar fixes.
Neal Norwitz [Tue, 13 Mar 2007 05:31:38 +0000 (05:31 +0000)]
Fix some style nits:
* lines too long
* wrong indentation
* space after a function name
* wrong function name in error string
* simplifying some logic
Also add an error check to PyDict_SetItemString.
Neal Norwitz [Tue, 13 Mar 2007 05:07:14 +0000 (05:07 +0000)]
Add some other acks for recent checkins:
Brian Leair - 922167
Tomer Filiba -
1591665
Jeremy Jones -
1192590
Neal Norwitz [Tue, 13 Mar 2007 04:59:58 +0000 (04:59 +0000)]
Add Jerry Seutter for a bunch of his recent patches refactoring tests
Brett Cannon [Tue, 13 Mar 2007 03:05:40 +0000 (03:05 +0000)]
Fix a typo where the variable name was not updated.
Brett Cannon [Tue, 13 Mar 2007 02:34:09 +0000 (02:34 +0000)]
Add test.test_support.transient_internet . Returns a context manager that
nests test.test_support.TransientResource context managers that capture
exceptions raised when the Internet connection is flaky.
Initially using in test_socket_ssl but should probably be expanded to cover any
test that should not raise the captured exceptions if the Internet connection
works.
Tim Peters [Mon, 12 Mar 2007 18:09:22 +0000 (18:09 +0000)]
Set missing svn:eol-style property on text files.
Tim Peters [Mon, 12 Mar 2007 18:07:52 +0000 (18:07 +0000)]
Whitespace normalization.
Collin Winter [Mon, 12 Mar 2007 17:24:07 +0000 (17:24 +0000)]
Patch #
1670993 : Refactor test_threadedtempfile.py to use unittest.
Georg Brandl [Mon, 12 Mar 2007 16:15:09 +0000 (16:15 +0000)]
Typo fix.
Collin Winter [Mon, 12 Mar 2007 16:11:39 +0000 (16:11 +0000)]
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Will backport.
Collin Winter [Mon, 12 Mar 2007 15:57:19 +0000 (15:57 +0000)]
Patch #
1678088 : convert test_operations to use unittest, fold the result into test_dict.
Georg Brandl [Mon, 12 Mar 2007 14:30:05 +0000 (14:30 +0000)]
Bug #
1678647 : write a newline after printing an exception in any
case, even when converting the value to a string failed.
Georg Brandl [Mon, 12 Mar 2007 13:17:36 +0000 (13:17 +0000)]
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.
Martin v. Löwis [Mon, 12 Mar 2007 11:01:10 +0000 (11:01 +0000)]
Patch #
1677862 : Require a space or tab after import in .pth files.
Martin v. Löwis [Mon, 12 Mar 2007 10:50:39 +0000 (10:50 +0000)]
Bug #
1675511 : Use -Kpic instead of -xcode=pic32 on Solaris/x86.
Skip Montanaro [Mon, 12 Mar 2007 03:30:50 +0000 (03:30 +0000)]
Sane humans would call these invalid tests, but Andrew McNamara pointed out
that given the inputs in these tests Excel does indeed produce the output
these tests expect. Document that for future confused folks.
Barry Warsaw [Mon, 12 Mar 2007 03:20:01 +0000 (03:20 +0000)]
Tokio Kikuchi's fix for SF bug #
1629369 ; folding whitespace allowed in the
display name of an email address, e.g.
Foo
\tBar <foo@example.com>
Test case added by Barry.
Collin Winter [Mon, 12 Mar 2007 01:55:54 +0000 (01:55 +0000)]
Patch #
1678662 : ftp.python.org does not exist. So the testcode in urllib.py must use a more
stable FTP.
Will backport.
Vinay Sajip [Sun, 11 Mar 2007 18:32:07 +0000 (18:32 +0000)]
Fix resource leak reported in SF #
1516995 .
Collin Winter [Sun, 11 Mar 2007 16:00:20 +0000 (16:00 +0000)]
Patch #
1192590 : Fix pdb's "ignore" and "condition" commands so they trap the IndexError caused by passing in an invalid breakpoint number.
Will backport.
Žiga Seilnacht [Sun, 11 Mar 2007 15:54:54 +0000 (15:54 +0000)]
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.
Georg Brandl [Sun, 11 Mar 2007 08:28:46 +0000 (08:28 +0000)]
Add missing "return" statements in exception handler.
Collin Winter [Sat, 10 Mar 2007 14:41:48 +0000 (14:41 +0000)]
Patch #
1599845 : Add an option to disable the implicit calls to server_bind() and server_activate() in the constructors for TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
Collin Winter [Sat, 10 Mar 2007 14:33:32 +0000 (14:33 +0000)]
Convert an assert to a raise so it works even in the presence of -O.
Georg Brandl [Sat, 10 Mar 2007 07:38:14 +0000 (07:38 +0000)]
Typos.
Collin Winter [Sat, 10 Mar 2007 03:35:34 +0000 (03:35 +0000)]
Add proper attribution for a bug fix.
Neal Norwitz [Sat, 10 Mar 2007 03:19:18 +0000 (03:19 +0000)]
Simplify a little by handling the TCP case first.
Update to use predominant style of spaces around = in args list
and print to stderr if debugging.
Collin Winter [Sat, 10 Mar 2007 02:51:26 +0000 (02:51 +0000)]
Bug #
1531963 : Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket.
Will backport.
Collin Winter [Sat, 10 Mar 2007 02:23:40 +0000 (02:23 +0000)]
* Unlink test files before and after each test; hopefully this will cut down on recent buildbot failures in test_islink.
* Drop safe_remove() in favor of test_support.unlink().
* Fix the indentation of test_samefile so that it runs.
Collin Winter [Fri, 9 Mar 2007 23:30:39 +0000 (23:30 +0000)]
Hashing simplification pointed out by Thomas Wouters.
Thomas Heller [Fri, 9 Mar 2007 20:39:22 +0000 (20:39 +0000)]
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.
Collin Winter [Fri, 9 Mar 2007 20:33:07 +0000 (20:33 +0000)]
Patch #
1491866 : change the complex() constructor to allow parthensized forms. This means complex(repr(x)) now works instead of raising a ValueError.
Martin v. Löwis [Fri, 9 Mar 2007 19:36:01 +0000 (19:36 +0000)]
Add Ziga Seilnacht.
Thomas Heller [Fri, 9 Mar 2007 19:21:28 +0000 (19:21 +0000)]
Fix bug #
1646630 : ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
returned string up to the first NUL character.
Collin Winter [Fri, 9 Mar 2007 18:09:10 +0000 (18:09 +0000)]
Bug #
1629566 : clarify the docs on the return values of parsedate() and parsedate_tz() in email.utils and rfc822.
Martin v. Löwis [Fri, 9 Mar 2007 15:35:55 +0000 (15:35 +0000)]
Patch #957003: Implement smtplib.LMTP.
Georg Brandl [Fri, 9 Mar 2007 12:58:41 +0000 (12:58 +0000)]
Typo.
Neal Norwitz [Fri, 9 Mar 2007 05:59:01 +0000 (05:59 +0000)]
Fix SF #
1676971 , Complex OverflowError has a typo
Collin Winter [Fri, 9 Mar 2007 03:26:32 +0000 (03:26 +0000)]
Add NEWS item for patch #
1481079 (r54234).
Collin Winter [Fri, 9 Mar 2007 03:15:56 +0000 (03:15 +0000)]
Patch #
1481079 : Support of HTTP_REFERER in CGIHTTPServer.py
Brett Cannon [Thu, 8 Mar 2007 23:58:11 +0000 (23:58 +0000)]
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).
Collin Winter [Thu, 8 Mar 2007 22:16:25 +0000 (22:16 +0000)]
Patch #
1668482 : don't use '-' in mkstemp
Raymond Hettinger [Thu, 8 Mar 2007 21:33:47 +0000 (21:33 +0000)]
SF #
1637850 : make_table in difflib did not work with unicode
Collin Winter [Thu, 8 Mar 2007 19:58:14 +0000 (19:58 +0000)]
Backported r54226 from p3yk: Move test_unittest, test_doctest and test_doctest2 higher up in the testing order.
Raymond Hettinger [Thu, 8 Mar 2007 19:24:27 +0000 (19:24 +0000)]
SF
1676321 : empty() returned wrong result
Georg Brandl [Thu, 8 Mar 2007 18:37:31 +0000 (18:37 +0000)]
Add a NEWS entry for rev. 54207,8.
Georg Brandl [Thu, 8 Mar 2007 17:49:06 +0000 (17:49 +0000)]
Fix #
1676656 : \em is different from \emph...
Martin v. Löwis [Thu, 8 Mar 2007 13:42:43 +0000 (13:42 +0000)]
Add missing ) in parenthical remark.
Guido van Rossum [Wed, 7 Mar 2007 15:16:29 +0000 (15:16 +0000)]
Windows doesn't support negative timestamps. Skip the tests involving them
if os.name == "nt".
Georg Brandl [Wed, 7 Mar 2007 11:54:49 +0000 (11:54 +0000)]
Add some sanity checks to unittest.TestSuite's addTest(s) methods.
Fixes #878275.
Georg Brandl [Wed, 7 Mar 2007 11:37:42 +0000 (11:37 +0000)]
Patch #
1675471 : convert test_pty to unittest.
Martin v. Löwis [Wed, 7 Mar 2007 11:04:33 +0000 (11:04 +0000)]
Bug #
1115886 : os.path.splitext('.cshrc') gives now ('.cshrc', '').
Georg Brandl [Wed, 7 Mar 2007 09:34:45 +0000 (09:34 +0000)]
Patch #
1669331 : clarify shutil.copyfileobj() behavior wrt. file position.
Georg Brandl [Wed, 7 Mar 2007 09:21:06 +0000 (09:21 +0000)]
Patch #787789: allow to pass custom TestRunner instances to unittest's
main() function.
Georg Brandl [Wed, 7 Mar 2007 09:09:40 +0000 (09:09 +0000)]
Patches #
1550273 , #
1550272 : fix a few bugs in unittest and add a
comprehensive test suite for the module.
Georg Brandl [Wed, 7 Mar 2007 08:31:51 +0000 (08:31 +0000)]
Patch #
1001604 : glob.glob() now returns unicode filenames if it was
given a unicode argument and os.listdir() returns unicode filenames.
Georg Brandl [Wed, 7 Mar 2007 07:39:06 +0000 (07:39 +0000)]
Patch #812285: allow multiple auth schemes in AbstractBasicAuthHandler.
George Yoshida [Wed, 7 Mar 2007 04:21:18 +0000 (04:21 +0000)]
add versionadded info
Georg Brandl [Wed, 7 Mar 2007 00:40:28 +0000 (00:40 +0000)]
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.
Georg Brandl [Wed, 7 Mar 2007 00:34:46 +0000 (00:34 +0000)]
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)
Walter Dörwald [Tue, 6 Mar 2007 21:15:24 +0000 (21:15 +0000)]
Document change to curses.
Walter Dörwald [Tue, 6 Mar 2007 20:38:57 +0000 (20:38 +0000)]
Patch for bug #
1633621 : if curses.resizeterm() or
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
Georg Brandl [Tue, 6 Mar 2007 18:59:11 +0000 (18:59 +0000)]
Patch #
1654417 : make operator.{get,set,del}slice use the full range
of Py_ssize_t.
Georg Brandl [Tue, 6 Mar 2007 18:47:31 +0000 (18:47 +0000)]
Patch #
1673121 : update README wrt. OSX default shell.
Georg Brandl [Tue, 6 Mar 2007 18:41:12 +0000 (18:41 +0000)]
Patch #
1638879 : don't accept strings with embedded NUL bytes in long().
Georg Brandl [Tue, 6 Mar 2007 18:29:58 +0000 (18:29 +0000)]
Patch #
1602128 : clarify that richcmp methods can return NotImplemented
and should return True or False otherwise.
Georg Brandl [Tue, 6 Mar 2007 18:21:32 +0000 (18:21 +0000)]
Small nit, found by Neal.
Georg Brandl [Tue, 6 Mar 2007 17:49:14 +0000 (17:49 +0000)]
Fix cmp vs. key argument for list.sort.
Guido van Rossum [Tue, 6 Mar 2007 15:50:01 +0000 (15:50 +0000)]
Patch #
1646728 : datetime.fromtimestamp fails with negative
fractional times. With unittest.
Somebody please backport to 2.5.
Skip Montanaro [Tue, 6 Mar 2007 15:41:38 +0000 (15:41 +0000)]
patch
1673619 - identify extension modules which cannot be built
Martin v. Löwis [Tue, 6 Mar 2007 14:43:00 +0000 (14:43 +0000)]
Patch #912410: Replace HTML entity references for attribute values
in HTMLParser.
Georg Brandl [Tue, 6 Mar 2007 13:37:45 +0000 (13:37 +0000)]
Patch #
1663234 : you can now run doctest on test files and modules
using "python -m doctest [-v] filename ...".
Georg Brandl [Tue, 6 Mar 2007 13:35:00 +0000 (13:35 +0000)]
A test case for the defaultdict KeyError bug.
Georg Brandl [Tue, 6 Mar 2007 13:32:52 +0000 (13:32 +0000)]
Fix another reincarnation of bug #
1576657 in defaultdict.
Georg Brandl [Tue, 6 Mar 2007 12:17:50 +0000 (12:17 +0000)]
Bug #
1674503 : close the file opened by execfile() in an error condition.
Georg Brandl [Tue, 6 Mar 2007 11:52:24 +0000 (11:52 +0000)]
Patch #
1672481 : fix bug in idlelib.MultiCall.
Georg Brandl [Tue, 6 Mar 2007 11:51:14 +0000 (11:51 +0000)]
A test case for the fix in #
1674228 .
Martin v. Löwis [Tue, 6 Mar 2007 10:41:24 +0000 (10:41 +0000)]
Patch #
1121142 : Implement ZipFile.open.
Georg Brandl [Tue, 6 Mar 2007 10:02:47 +0000 (10:02 +0000)]
Patch #
1671450 : add a section about subclassing builtin types to the
"extending and embedding" tutorial.
Georg Brandl [Tue, 6 Mar 2007 09:33:01 +0000 (09:33 +0000)]
Nit: a struct field is set to GenericAlloc, not GenericAlloc().
Georg Brandl [Mon, 5 Mar 2007 22:28:08 +0000 (22:28 +0000)]
Patch #
1674228 : when assigning a slice (old-style), check for the
sq_ass_slice instead of the sq_slice slot.
Facundo Batista [Mon, 5 Mar 2007 16:31:54 +0000 (16:31 +0000)]
Minor corrections to docs, and an explanation comentary
Neal Norwitz [Mon, 5 Mar 2007 07:52:01 +0000 (07:52 +0000)]
Added Pete for 3101 too
Skip Montanaro [Sun, 4 Mar 2007 20:54:12 +0000 (20:54 +0000)]
note MacPorts/BerkDB change in setup.py
Skip Montanaro [Sun, 4 Mar 2007 20:52:28 +0000 (20:52 +0000)]
Teach setup.py how to find Berkeley DB on Macs using MacPorts.
Georg Brandl [Sun, 4 Mar 2007 17:18:54 +0000 (17:18 +0000)]
Fix a bug in test_dict and test_userdict, found at the PyPy sprint.
Georg Brandl [Fri, 2 Mar 2007 20:30:14 +0000 (20:30 +0000)]
Bugs #
1668032 , #
1668036 , #
1669304 : clarify behavior of PyMem_Realloc and _Resize.
Raymond Hettinger [Fri, 2 Mar 2007 19:20:46 +0000 (19:20 +0000)]
Fix embarrassing typo and fix constantification of None
Georg Brandl [Fri, 2 Mar 2007 14:37:12 +0000 (14:37 +0000)]
Bug #
1628895 : some better tries to find HTML documentation in pydoc.
Andrew M. Kuchling [Thu, 1 Mar 2007 14:36:12 +0000 (14:36 +0000)]
Add NamedTuple
Neal Norwitz [Thu, 1 Mar 2007 07:04:41 +0000 (07:04 +0000)]
Add Pat and Eric for work on PEP 3101 in the sandbox
Raymond Hettinger [Thu, 1 Mar 2007 06:16:43 +0000 (06:16 +0000)]
Add collections.NamedTuple
Raymond Hettinger [Wed, 28 Feb 2007 18:37:52 +0000 (18:37 +0000)]
Prepare collections module for pure python code entries.
Raymond Hettinger [Wed, 28 Feb 2007 18:27:41 +0000 (18:27 +0000)]
Docstring nit.
Brett Cannon [Wed, 28 Feb 2007 18:15:00 +0000 (18:15 +0000)]
Add a test for instantiating SyntaxError with no arguments.
Armin Rigo [Wed, 28 Feb 2007 09:25:29 +0000 (09:25 +0000)]
Modify the segfaulting example to show why r53997 is not a solution to
it.