]> granicus.if.org Git - python/log
python
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.

16 years agos/use/call/
Georg Brandl [Fri, 22 May 2009 09:50:30 +0000 (09:50 +0000)]
s/use/call/

16 years agoFix confusing wording.
Georg Brandl [Fri, 22 May 2009 09:49:42 +0000 (09:49 +0000)]
Fix confusing wording.

16 years agoFix references to file-related functions and methods (os.* vs file.*).
Georg Brandl [Fri, 22 May 2009 09:43:17 +0000 (09:43 +0000)]
Fix references to file-related functions and methods (os.* vs file.*).

16 years agofixed encoding
Tarek Ziadé [Fri, 22 May 2009 09:42:43 +0000 (09:42 +0000)]
fixed encoding

16 years ago#6084: fix example.
Georg Brandl [Fri, 22 May 2009 09:33:25 +0000 (09:33 +0000)]
#6084: fix example.

16 years agoUse raise X(y).
Georg Brandl [Fri, 22 May 2009 07:23:32 +0000 (07:23 +0000)]
Use raise X(y).

16 years agodon't use subprocess.call with PIPEs as the child can fill the pipe buf and
Philip Jenvey [Fri, 22 May 2009 05:35:32 +0000 (05:35 +0000)]
don't use subprocess.call with PIPEs as the child can fill the pipe buf and
deadlock. add a warning to subprocess docs about this, similar to Popen.wait's.
refs http://bugs.jython.org/issue1351

16 years agoFix-up moving average example.
Raymond Hettinger [Fri, 22 May 2009 01:06:44 +0000 (01:06 +0000)]
Fix-up moving average example.

16 years agoRename TestCase._result to _resultForDoCleanups to avoid potential clashes in TestCas...
Michael Foord [Thu, 21 May 2009 22:57:02 +0000 (22:57 +0000)]
Rename TestCase._result to _resultForDoCleanups to avoid potential clashes in TestCase subclasses. Issue 6072.

16 years agoIssue #5829: don't raise OverflowError for complex('1e500'). Backport of r72803.
Mark Dickinson [Wed, 20 May 2009 18:43:07 +0000 (18:43 +0000)]
Issue #5829: don't raise OverflowError for complex('1e500').  Backport of r72803.

16 years ago#6051: refer to email examples for better way to construct email messages.
Georg Brandl [Wed, 20 May 2009 18:35:27 +0000 (18:35 +0000)]
#6051: refer to email examples for better way to construct email messages.

16 years ago#6055: refer to "sqlite3" consistently.
Georg Brandl [Wed, 20 May 2009 18:31:14 +0000 (18:31 +0000)]
#6055: refer to "sqlite3" consistently.

16 years agoUpdate bug tracker URL.
Georg Brandl [Wed, 20 May 2009 18:24:08 +0000 (18:24 +0000)]
Update bug tracker URL.

16 years agoFix issue #1689458 by teaching frame_setlineno how to jump to the first line of
Jeffrey Yasskin [Wed, 20 May 2009 17:57:57 +0000 (17:57 +0000)]
Fix issue #1689458 by teaching frame_setlineno how to jump to the first line of
a code object.

16 years agotypos in ctypes Module
Mark Dickinson [Wed, 20 May 2009 17:55:31 +0000 (17:55 +0000)]
typos in ctypes Module

16 years agoIssue 6066: POP_MARK was not in pickle protocol 0.
Collin Winter [Wed, 20 May 2009 16:49:12 +0000 (16:49 +0000)]
Issue 6066: POP_MARK was not in pickle protocol 0.

16 years agoRemove some old MacPython files that are no longer relevant.
Ronald Oussoren [Tue, 19 May 2009 20:12:17 +0000 (20:12 +0000)]
Remove some old MacPython files that are no longer relevant.

16 years agoRemove some traces of 'MacPython'
Ronald Oussoren [Tue, 19 May 2009 19:29:24 +0000 (19:29 +0000)]
Remove some traces of 'MacPython'

16 years agoThis patch ensures that the pydoc_data package gets installed. This is needed
Ronald Oussoren [Tue, 19 May 2009 19:06:38 +0000 (19:06 +0000)]
This patch ensures that the pydoc_data package gets installed. This is needed
to make it possible to use pydoc to get access to the language reference.

That is, without this patch the folllowing won't work:

   >>> help('if')

16 years agoNote that ordered dictionaries work with reversed().
Raymond Hettinger [Tue, 19 May 2009 17:43:59 +0000 (17:43 +0000)]
Note that ordered dictionaries work with reversed().

16 years agofixed the 'package' option of build_ext
Tarek Ziadé [Tue, 19 May 2009 16:17:21 +0000 (16:17 +0000)]
fixed the 'package' option of build_ext

16 years agoIssue 6032: fix refleaks in test_urllib2_localnet.
Collin Winter [Mon, 18 May 2009 21:35:40 +0000 (21:35 +0000)]
Issue 6032: fix refleaks in test_urllib2_localnet.

16 years agoWhile I was modifying test_trace, it threw an exception when I accidentally
Jeffrey Yasskin [Mon, 18 May 2009 21:14:54 +0000 (21:14 +0000)]
While I was modifying test_trace, it threw an exception when I accidentally
made it try to set the line number from the trace callback for a 'call' event.
This patch makes the error message a little more helpful in that case, and
makes it a little less likely that a future editor will make the same mistake
in test_trace.

16 years agoIssue 6037: MutableSequence.__iadd__ should return self.
Raymond Hettinger [Mon, 18 May 2009 15:51:59 +0000 (15:51 +0000)]
Issue 6037: MutableSequence.__iadd__ should return self.

16 years agoFixed #6053 - win32 fixes for distutils tests
Tarek Ziadé [Mon, 18 May 2009 12:21:26 +0000 (12:21 +0000)]
Fixed #6053 - win32 fixes for distutils tests

16 years agoworking with relative paths to avoid tar warnings on absolute paths
Tarek Ziadé [Mon, 18 May 2009 08:20:55 +0000 (08:20 +0000)]
working with relative paths to avoid tar warnings on absolute paths

16 years agoFixed the library extension when distutils build_ext is used inplace
Tarek Ziadé [Mon, 18 May 2009 08:03:37 +0000 (08:03 +0000)]
Fixed the library extension when distutils build_ext is used inplace

16 years agochop off slash
Benjamin Peterson [Sun, 17 May 2009 16:59:27 +0000 (16:59 +0000)]
chop off slash

16 years agofixed the test name
Tarek Ziadé [Sun, 17 May 2009 14:59:05 +0000 (14:59 +0000)]
fixed the test name

16 years agoignore .rst files in sphinx its self
Benjamin Peterson [Sun, 17 May 2009 14:16:29 +0000 (14:16 +0000)]
ignore .rst files in sphinx its self

16 years agopep8-fied distutils.archive_util + added minimum test coverage
Tarek Ziadé [Sun, 17 May 2009 12:04:57 +0000 (12:04 +0000)]
pep8-fied distutils.archive_util + added minimum test coverage

16 years agopep8-fied distutils.dir_util
Tarek Ziadé [Sun, 17 May 2009 11:22:36 +0000 (11:22 +0000)]
pep8-fied distutils.dir_util

16 years agoremoved sys.platform == 'mac' usage in distutils.dir_util
Tarek Ziadé [Sun, 17 May 2009 11:11:57 +0000 (11:11 +0000)]
removed sys.platform == 'mac' usage in distutils.dir_util

16 years agoremoved sys.platform == 'mac' support in distutils.dist.parse_command_line and improv...
Tarek Ziadé [Sun, 17 May 2009 10:44:12 +0000 (10:44 +0000)]
removed sys.platform == 'mac' support in distutils.dist.parse_command_line and improved test coverage

16 years agoIssue #6044: remove confusing wording from complex -> integer and
Mark Dickinson [Sun, 17 May 2009 10:38:30 +0000 (10:38 +0000)]
Issue #6044: remove confusing wording from complex -> integer and
complex -> float conversion error messages.

16 years agonot running this test with MSVC6
Tarek Ziadé [Sun, 17 May 2009 10:07:48 +0000 (10:07 +0000)]
not running this test with MSVC6

16 years ago#5935: mention that BROWSER is looked for in PATH.
Georg Brandl [Sun, 17 May 2009 08:55:00 +0000 (08:55 +0000)]
#5935: mention that BROWSER is looked for in PATH.

16 years ago#5942: Copy over flag table from dbm.rst which is clearer.
Georg Brandl [Sun, 17 May 2009 08:36:04 +0000 (08:36 +0000)]
#5942: Copy over flag table from dbm.rst which is clearer.

16 years ago#6017: better document behavior of dictiterators when the dict is changed.
Georg Brandl [Sun, 17 May 2009 08:24:29 +0000 (08:24 +0000)]
#6017: better document behavior of dictiterators when the dict is changed.

16 years agopart of #4144: fix exception message in console session.
Georg Brandl [Sun, 17 May 2009 08:10:27 +0000 (08:10 +0000)]
part of #4144: fix exception message in console session.

16 years agoAdded NEWS for r72698.
Hirokazu Yamamoto [Sun, 17 May 2009 02:58:36 +0000 (02:58 +0000)]
Added NEWS for r72698.

16 years agoIssue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more.
Hirokazu Yamamoto [Sun, 17 May 2009 02:52:09 +0000 (02:52 +0000)]
Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more.

16 years agotypo
Benjamin Peterson [Sat, 16 May 2009 23:34:19 +0000 (23:34 +0000)]
typo