]> granicus.if.org Git - python/log
python
16 years agoBetter name for "Ctor".
Georg Brandl [Thu, 4 Jun 2009 10:10:41 +0000 (10:10 +0000)]
Better name for "Ctor".

16 years ago#3584: ignore trailing newlines when placing the caret for a SyntaxError location.
Georg Brandl [Thu, 4 Jun 2009 09:15:12 +0000 (09:15 +0000)]
#3584: ignore trailing newlines when placing the caret for a SyntaxError location.

16 years ago#5767: remove sgmlop support from xmlrpclib; the sgmlop parser does not do much valid...
Georg Brandl [Thu, 4 Jun 2009 08:58:32 +0000 (08:58 +0000)]
#5767: remove sgmlop support from xmlrpclib; the sgmlop parser does not do much validation and is no longer much faster than e.g. the cElementTree XMLParser.

16 years agoimproved test coverage for distutils.command.install and cleaned it up
Tarek Ziadé [Thu, 4 Jun 2009 07:31:52 +0000 (07:31 +0000)]
improved test coverage for distutils.command.install and cleaned it up

16 years agouse the offical api
Benjamin Peterson [Thu, 4 Jun 2009 01:40:29 +0000 (01:40 +0000)]
use the offical api

16 years agoAvoid PendingDeprecationWarnings emitted by deprecated unittest methods.
Georg Brandl [Wed, 3 Jun 2009 23:23:45 +0000 (23:23 +0000)]
Avoid PendingDeprecationWarnings emitted by deprecated unittest methods.

16 years ago#6174: fix indentation in code example.
Georg Brandl [Wed, 3 Jun 2009 21:21:09 +0000 (21:21 +0000)]
#6174: fix indentation in code example.

16 years agoFix for line wrap ugly.
Josiah Carlson [Wed, 3 Jun 2009 19:51:52 +0000 (19:51 +0000)]
Fix for line wrap ugly.

16 years agoThis fixes bug 5798 on OS X.
Josiah Carlson [Wed, 3 Jun 2009 19:46:21 +0000 (19:46 +0000)]
This fixes bug 5798 on OS X.
This should also fix disconnect behavior cross-platform.

16 years agoassertion message was dropped
Tarek Ziadé [Wed, 3 Jun 2009 11:20:44 +0000 (11:20 +0000)]
assertion message was dropped

16 years agomore cleanup and test coverage for distutils.extension
Tarek Ziadé [Wed, 3 Jun 2009 11:12:08 +0000 (11:12 +0000)]
more cleanup and test coverage for distutils.extension

16 years agoadded some tests for distutils.extension + code cleanup
Tarek Ziadé [Wed, 3 Jun 2009 10:26:26 +0000 (10:26 +0000)]
added some tests for distutils.extension + code cleanup

16 years agoUse the preferred form of raise statements in the docs.
Georg Brandl [Wed, 3 Jun 2009 07:25:35 +0000 (07:25 +0000)]
Use the preferred form of raise statements in the docs.

16 years agoRestore default testRunner argument in unittest.main to None. Issue 6177
Michael Foord [Tue, 2 Jun 2009 18:08:27 +0000 (18:08 +0000)]
Restore default testRunner argument in unittest.main to None. Issue 6177

16 years agoimproved distutils.spawn test coverage + cleaned it up
Tarek Ziadé [Tue, 2 Jun 2009 15:58:43 +0000 (15:58 +0000)]
improved distutils.spawn test coverage + cleaned it up

16 years agohttp://bugs.python.org/issue6117
Kristján Valur Jónsson [Tue, 2 Jun 2009 13:14:08 +0000 (13:14 +0000)]
http://bugs.python.org/issue6117
Fix O(n**2) performance problem in socket._fileobject

16 years agoTypo in socket.py. Thanks Pablo Torres Navarrete.
Mark Dickinson [Tue, 2 Jun 2009 07:39:26 +0000 (07:39 +0000)]
Typo in socket.py.  Thanks Pablo Torres Navarrete.

16 years agoFixes issue6169: it was possible for two ipaddr network addresses to compare
Gregory P. Smith [Tue, 2 Jun 2009 05:25:34 +0000 (05:25 +0000)]
Fixes issue6169: it was possible for two ipaddr network addresses to compare
as both < and > than eachother.

16 years agoFix compilation error with gcc 4.3.2
Antoine Pitrou [Mon, 1 Jun 2009 23:23:16 +0000 (23:23 +0000)]
Fix compilation error with gcc 4.3.2

16 years agoimproved distutils.dist test coverage, pep-8 compliancy
Tarek Ziadé [Mon, 1 Jun 2009 22:22:13 +0000 (22:22 +0000)]
improved distutils.dist test coverage, pep-8 compliancy

16 years ago#4547: When debugging a very large function, it was not always
Amaury Forgeot d'Arc [Mon, 1 Jun 2009 20:53:18 +0000 (20:53 +0000)]
#4547: When debugging a very large function, it was not always
possible to update the lineno attribute of the current frame.

16 years agoSync up __version__ number with the version of the ipaddr-py project this
Gregory P. Smith [Mon, 1 Jun 2009 17:40:41 +0000 (17:40 +0000)]
Sync up __version__ number with the version of the ipaddr-py project this
library came from that it matches.

Remove the former apache license text now that its been contributed to PSF to
avoid confusion.

16 years agoIssue #6158: package Sine-1000Hz-300ms.aif.
Martin v. Löwis [Mon, 1 Jun 2009 04:10:03 +0000 (04:10 +0000)]
Issue #6158: package Sine-1000Hz-300ms.aif.

16 years agoThe class for regexes isn't called RegexObject any more; correct the text
Andrew M. Kuchling [Mon, 1 Jun 2009 00:14:19 +0000 (00:14 +0000)]
The class for regexes isn't called RegexObject any more; correct the text

16 years agoImproved PanedWindow.add's docstring. 'subcomand' is a Tcl term, and the possible...
Guilherme Polo [Sun, 31 May 2009 21:31:21 +0000 (21:31 +0000)]
Improved PanedWindow.add's docstring. 'subcomand' is a Tcl term, and the possible options and values are the same accepted by paneconfigure (not configure).

16 years agoIssue 3848: document the fact that epoll register raises an IOError if
R. David Murray [Sun, 31 May 2009 19:15:57 +0000 (19:15 +0000)]
Issue 3848: document the fact that epoll register raises an IOError if
an fd is registered twice, and add some additional epoll tests.  Patch
by Christian Heimes.

16 years agoUninitialized file type would lead to __exit__ lookup failure when site.py
Antoine Pitrou [Sun, 31 May 2009 18:05:51 +0000 (18:05 +0000)]
Uninitialized file type would lead to __exit__ lookup failure when site.py
tries to read *.pth files on interpreter startup.

16 years ago__enter__ and __exit__ must be on the class
Benjamin Peterson [Sun, 31 May 2009 15:00:27 +0000 (15:00 +0000)]
__enter__ and __exit__ must be on the class

16 years agoremove function import
Benjamin Peterson [Sun, 31 May 2009 14:43:00 +0000 (14:43 +0000)]
remove function import

16 years agoIssue #6152: New option '-j'/'--multiprocess' for regrtest allows running
Antoine Pitrou [Sun, 31 May 2009 14:20:14 +0000 (14:20 +0000)]
Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running
regression tests in parallel, shortening the total runtime.

16 years agoFix markup.
Georg Brandl [Sun, 31 May 2009 14:15:25 +0000 (14:15 +0000)]
Fix markup.

16 years agofix signature
Benjamin Peterson [Sun, 31 May 2009 00:42:42 +0000 (00:42 +0000)]
fix signature

16 years agoUpdate ACKS
Antoine Pitrou [Sat, 30 May 2009 21:45:40 +0000 (21:45 +0000)]
Update ACKS

16 years agoThe test for #5330 wasn't correct.
Antoine Pitrou [Sat, 30 May 2009 21:39:25 +0000 (21:39 +0000)]
The test for #5330 wasn't correct.

16 years agoIssue #5330: C functions called with keyword arguments were not reported by
Antoine Pitrou [Sat, 30 May 2009 21:27:00 +0000 (21:27 +0000)]
Issue #5330: C functions called with keyword arguments were not reported by
the various profiling modules (profile, cProfile). Patch by Hagen Fürstenau.

16 years agoAdd more examples to the ipaddr documentation.
Gregory P. Smith [Sat, 30 May 2009 19:58:11 +0000 (19:58 +0000)]
Add more examples to the ipaddr documentation.

16 years agoRewrap a few long lines.
Georg Brandl [Sat, 30 May 2009 10:45:40 +0000 (10:45 +0000)]
Rewrap a few long lines.

16 years agoFix markup problem.
Georg Brandl [Sat, 30 May 2009 10:34:25 +0000 (10:34 +0000)]
Fix markup problem.

16 years agoFix some more small markup problems.
Georg Brandl [Sat, 30 May 2009 10:33:23 +0000 (10:33 +0000)]
Fix some more small markup problems.

16 years agoUse preferred form of raising exceptions.
Georg Brandl [Sat, 30 May 2009 07:31:25 +0000 (07:31 +0000)]
Use preferred form of raising exceptions.

16 years ago#6146: fix markup bug.
Georg Brandl [Sat, 30 May 2009 07:26:04 +0000 (07:26 +0000)]
#6146: fix markup bug.

16 years agono fdatasync on macos
Benjamin Peterson [Sat, 30 May 2009 03:10:52 +0000 (03:10 +0000)]
no fdatasync on macos

16 years agoadd with statements
Benjamin Peterson [Fri, 29 May 2009 21:48:19 +0000 (21:48 +0000)]
add with statements

16 years agoMove the basic examples section back to the beginning.
Raymond Hettinger [Fri, 29 May 2009 21:20:41 +0000 (21:20 +0000)]
Move the basic examples section back to the beginning.

16 years agoAdd test discovery to unittest. Issue 6001.
Michael Foord [Fri, 29 May 2009 20:33:46 +0000 (20:33 +0000)]
Add test discovery to unittest. Issue 6001.

16 years agoIssue 6141: document that the first item of args is still the
R. David Murray [Fri, 29 May 2009 19:30:27 +0000 (19:30 +0000)]
Issue 6141: document that the first item of args is still the
command name even when executable is specified.

16 years agoRefactor test parameterization to resolve update timing problem.
R. David Murray [Fri, 29 May 2009 17:31:05 +0000 (17:31 +0000)]
Refactor test parameterization to resolve update timing problem.

16 years agoIssue #4873: Fix resource leaks in error cases of pwd and grp.
Martin v. Löwis [Fri, 29 May 2009 15:58:08 +0000 (15:58 +0000)]
Issue #4873: Fix resource leaks in error cases of pwd and grp.

16 years agoFixed #6131: test_modulefinder leaked when run after test_distutils
Tarek Ziadé [Fri, 29 May 2009 08:08:07 +0000 (08:08 +0000)]
Fixed #6131: test_modulefinder leaked when run after test_distutils

16 years agoIssue 5982: Classmethod and staticmethod expose wrapped function with __func__.
Raymond Hettinger [Fri, 29 May 2009 04:58:52 +0000 (04:58 +0000)]
Issue 5982: Classmethod and staticmethod expose wrapped function with __func__.

16 years agoFix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g
Jeffrey Yasskin [Fri, 29 May 2009 03:44:31 +0000 (03:44 +0000)]
Fix nearly all compilation warnings under Apple gcc-4.0.  Tested with OPT="-g
-Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
There's still a batch of non-prototype warnings in Xlib.h that I don't know how
to fix.

16 years agoDeprecate contextlib.nested(). The with-statement now provides this functionality...
Raymond Hettinger [Fri, 29 May 2009 01:46:48 +0000 (01:46 +0000)]
Deprecate contextlib.nested().  The with-statement now provides this functionality directly.

16 years agoIssue 5150: Add rstrip() option to IDLE's format menu.
Raymond Hettinger [Fri, 29 May 2009 01:36:26 +0000 (01:36 +0000)]
Issue 5150: Add rstrip() option to IDLE's format menu.

16 years agoBackport smtplib auth tests from r72990.
R. David Murray [Thu, 28 May 2009 18:49:23 +0000 (18:49 +0000)]
Backport smtplib auth tests from r72990.

16 years agousing 'tar' then 'gzip' in the test, because 'tar -czf' is not supported under some...
Tarek Ziadé [Thu, 28 May 2009 13:55:51 +0000 (13:55 +0000)]
using 'tar' then 'gzip' in the test, because 'tar -czf' is not supported under some platforms

16 years agoFixed #6048: Distutils uses the tarfile module instead of the tar command now
Tarek Ziadé [Thu, 28 May 2009 12:53:54 +0000 (12:53 +0000)]
Fixed #6048: Distutils uses the tarfile module instead of the tar command now

16 years agoexplicitly close files
Philip Jenvey [Thu, 28 May 2009 05:58:44 +0000 (05:58 +0000)]
explicitly close files

16 years agofurther hint to where the open docs really are
Philip Jenvey [Thu, 28 May 2009 03:12:16 +0000 (03:12 +0000)]
further hint to where the open docs really are

16 years agoexplicitly close the file, merged from py3k
Philip Jenvey [Thu, 28 May 2009 03:10:59 +0000 (03:10 +0000)]
explicitly close the file, merged from py3k

16 years agoswitch library reference and language reference
Benjamin Peterson [Thu, 28 May 2009 03:02:13 +0000 (03:02 +0000)]
switch library reference and language reference

16 years agofix issue #6121 by stripping spaces from the argument in the 'help'
R. David Murray [Wed, 27 May 2009 20:07:21 +0000 (20:07 +0000)]
fix issue #6121 by stripping spaces from the argument in the 'help'
function.

16 years agoplug ref leak
Benjamin Peterson [Wed, 27 May 2009 03:08:44 +0000 (03:08 +0000)]
plug ref leak

16 years agocorrectly handle descrs with __missing__
Benjamin Peterson [Wed, 27 May 2009 02:43:46 +0000 (02:43 +0000)]
correctly handle descrs with __missing__

16 years agoFix field name conflicts for named tuples.
Raymond Hettinger [Wed, 27 May 2009 02:24:45 +0000 (02:24 +0000)]
Fix field name conflicts for named tuples.

16 years agoFixes issue 6110
Ronald Oussoren [Tue, 26 May 2009 18:44:48 +0000 (18:44 +0000)]
Fixes issue 6110

16 years agoteach the peepholer about SETUP_WITH
Benjamin Peterson [Tue, 26 May 2009 12:49:59 +0000 (12:49 +0000)]
teach the peepholer about SETUP_WITH

16 years ago#6112: list.remove raises ValueError, not RuntimeError.
Georg Brandl [Tue, 26 May 2009 07:50:23 +0000 (07:50 +0000)]
#6112: list.remove raises ValueError, not RuntimeError.

16 years agoIssue 5794: fix cPickle's unpickling of recursive tuples.
Collin Winter [Tue, 26 May 2009 04:12:39 +0000 (04:12 +0000)]
Issue 5794: fix cPickle's unpickling of recursive tuples.

16 years agoAllow multiple context managers in one with statement, as proposed
Georg Brandl [Mon, 25 May 2009 21:02:56 +0000 (21:02 +0000)]
Allow multiple context managers in one with statement, as proposed
in http://codereview.appspot.com/53094 and accepted by Guido.

The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.

16 years agoMake assertSequenceEqual error messages less cryptic, particularly for nested sequences.
Michael Foord [Mon, 25 May 2009 20:36:56 +0000 (20:36 +0000)]
Make assertSequenceEqual error messages less cryptic, particularly for nested sequences.

16 years agofix error handling
Benjamin Peterson [Mon, 25 May 2009 20:13:36 +0000 (20:13 +0000)]
fix error handling

16 years agotake into account the fact that SETUP_WITH pushes a finally block
Benjamin Peterson [Mon, 25 May 2009 20:12:57 +0000 (20:12 +0000)]
take into account the fact that SETUP_WITH pushes a finally block

16 years agoadd a SETUP_WITH opcode
Benjamin Peterson [Mon, 25 May 2009 13:13:44 +0000 (13:13 +0000)]
add a SETUP_WITH opcode

It speeds up the with statement and correctly looks up the special
methods involved.

16 years agoIssue 5670: special-case pickling of dicts. This nearly doubles the performance of...
Collin Winter [Mon, 25 May 2009 04:34:39 +0000 (04:34 +0000)]
Issue 5670: special-case pickling of dicts. This nearly doubles the performance of dict pickling in cPickle.

16 years agohandle errors from _PyObject_LookupSpecial when __get__ fails
Benjamin Peterson [Mon, 25 May 2009 02:40:21 +0000 (02:40 +0000)]
handle errors from _PyObject_LookupSpecial when __get__ fails

16 years agomake class skipping decorators the same as skipping every test of the class
Benjamin Peterson [Mon, 25 May 2009 00:48:58 +0000 (00:48 +0000)]
make class skipping decorators the same as skipping every test of the class

This removes ClassTestSuite and a good bit of hacks.

16 years agostop using Py_FindMethod
Benjamin Peterson [Sun, 24 May 2009 23:13:32 +0000 (23:13 +0000)]
stop using Py_FindMethod

16 years agoAdd Misc/python.pc to the list of ignored files
Antoine Pitrou [Sun, 24 May 2009 20:46:06 +0000 (20:46 +0000)]
Add Misc/python.pc to the list of ignored files

16 years agoIssue #3585: Add pkg-config support.
Antoine Pitrou [Sun, 24 May 2009 20:23:57 +0000 (20:23 +0000)]
Issue #3585: Add pkg-config support.

It creates a python-2.7.pc file and a python.pc symlink in the
$(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.

16 years agoIssue #6050: Don't fail extracting a directory from a zipfile if
Martin v. Löwis [Sun, 24 May 2009 19:30:52 +0000 (19:30 +0000)]
Issue #6050: Don't fail extracting a directory from a zipfile if
the directory already exists.

16 years agoIssue #6065: Do not try to build a version-independent
Martin v. Löwis [Sun, 24 May 2009 19:10:52 +0000 (19:10 +0000)]
Issue #6065: Do not try to build a version-independent
installer if the package has extension modules.

Also add NEWS entry for #5311.

16 years agoadd a versionadded tag for set_tunnel
Gregory P. Smith [Sun, 24 May 2009 18:00:13 +0000 (18:00 +0000)]
add a versionadded tag for set_tunnel

16 years agoIssue #1309352: fcntl now converts its third arguments to a C `long` rather
Antoine Pitrou [Sun, 24 May 2009 15:40:09 +0000 (15:40 +0000)]
Issue #1309352: fcntl now converts its third arguments to a C `long` rather
than an int, which makes some operations possible under 64-bit Linux (e.g.
DN_MULTISHOT with F_NOTIFY).

16 years agoFix build under Windows
Antoine Pitrou [Sun, 24 May 2009 12:15:04 +0000 (12:15 +0000)]
Fix build under Windows

16 years agoFixed Issue1424152, urllib2 fails with HTTPS over Proxy.
Senthil Kumaran [Sun, 24 May 2009 09:14:50 +0000 (09:14 +0000)]
Fixed Issue1424152, urllib2 fails with HTTPS over Proxy.

16 years agoIssue #6042:
Jeffrey Yasskin [Sat, 23 May 2009 23:23:01 +0000 (23:23 +0000)]
Issue #6042:
lnotab-based tracing is very complicated and isn't documented very well.  There
were at least 3 comment blocks purporting to document co_lnotab, and none did a
very good job. This patch unifies them into Objects/lnotab_notes.txt which
tries to completely capture the current state of affairs.

I also discovered that we've attached 2 layers of patches to the basic tracing
scheme. The first layer avoids jumping to instructions that don't start a line,
to avoid problems in if statements and while loops.  The second layer
discovered that jumps backward do need to trace at instructions that don't
start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
added a special case for backward jumps within the same line. I replaced these
patches by just treating forward and backward jumps differently.

16 years agoAdd smtplib test from issue 5259.
R. David Murray [Sat, 23 May 2009 21:48:06 +0000 (21:48 +0000)]
Add smtplib test from issue 5259.

16 years agoremove mention of old ctypes version
Benjamin Peterson [Sat, 23 May 2009 20:59:09 +0000 (20:59 +0000)]
remove mention of old ctypes version

16 years agoreorder name
Benjamin Peterson [Sat, 23 May 2009 19:31:02 +0000 (19:31 +0000)]
reorder name

16 years agosupport building with subversion 1.7 #6094
Benjamin Peterson [Sat, 23 May 2009 19:24:37 +0000 (19:24 +0000)]
support building with subversion 1.7 #6094

16 years agoIssue #3877: skip a test_fileio subtest on all BSDs, not only FreeBSD
Antoine Pitrou [Sat, 23 May 2009 16:32:32 +0000 (16:32 +0000)]
Issue #3877: skip a test_fileio subtest on all BSDs, not only FreeBSD

16 years agoSome pid_t-expecting or producing functions were forgotten in r72852.
Antoine Pitrou [Sat, 23 May 2009 16:06:49 +0000 (16:06 +0000)]
Some pid_t-expecting or producing functions were forgotten in r72852.

16 years agoIssue #1983: Fix functions taking or returning a process identifier to use
Antoine Pitrou [Sat, 23 May 2009 15:37:45 +0000 (15:37 +0000)]
Issue #1983: Fix functions taking or returning a process identifier to use
the dedicated C type `pid_t` instead of a C `int`. Some platforms have
a process identifier type wider than the standard C integer type.

16 years agoIssue 6089: str.format raises SystemError.
Eric Smith [Sat, 23 May 2009 13:56:13 +0000 (13:56 +0000)]
Issue 6089: str.format raises SystemError.

16 years agoFix spelling left over from testing.
R. David Murray [Sat, 23 May 2009 02:19:36 +0000 (02:19 +0000)]
Fix spelling left over from testing.

16 years agoDon't be so wordy in requires('network') in case other tests
R. David Murray [Sat, 23 May 2009 02:16:58 +0000 (02:16 +0000)]
Don't be so wordy in requires('network') in case other tests
are added later, and skip the existing test if SSL is not available.

16 years agoFix Issue #4066: smtplib.SMTP_SSL._get_socket now correctly returns
R. David Murray [Sat, 23 May 2009 00:48:58 +0000 (00:48 +0000)]
Fix Issue #4066: smtplib.SMTP_SSL._get_socket now correctly returns
the socket.  Patch by Farhan Ahmad, test by Marcin Bachry.

16 years ago#6078: _warnings is a builtin module and has no standard init_warnings function.
Georg Brandl [Fri, 22 May 2009 17:00:17 +0000 (17:00 +0000)]
#6078: _warnings is a builtin module and has no standard init_warnings function.

16 years ago#6086: fix spelling and use a better exception to catch.
Georg Brandl [Fri, 22 May 2009 10:40:00 +0000 (10:40 +0000)]
#6086: fix spelling and use a better exception to catch.

16 years agoCorrection in softspace behavior description.
Georg Brandl [Fri, 22 May 2009 09:58:48 +0000 (09:58 +0000)]
Correction in softspace behavior description.