]> granicus.if.org Git - python/log
python
16 years agoNo need to specify explicit "doctest_block" anymore.
Georg Brandl [Sat, 22 Mar 2008 13:07:06 +0000 (13:07 +0000)]
No need to specify explicit "doctest_block" anymore.

16 years agoMake more doctests in pprint docs testable.
Georg Brandl [Sat, 22 Mar 2008 12:59:37 +0000 (12:59 +0000)]
Make more doctests in pprint docs testable.

16 years agoMake doctests in re docs usable with sphinx' doctest.
Georg Brandl [Sat, 22 Mar 2008 12:04:26 +0000 (12:04 +0000)]
Make doctests in re docs usable with sphinx' doctest.

16 years agoTest decimal.rst doctests as far as possible with sphinx doctest.
Georg Brandl [Sat, 22 Mar 2008 11:47:10 +0000 (11:47 +0000)]
Test decimal.rst doctests as far as possible with sphinx doctest.

16 years agoFixup this HOWTO's doctest blocks so that they can be run with sphinx' doctest builder.
Georg Brandl [Sat, 22 Mar 2008 11:00:48 +0000 (11:00 +0000)]
Fixup this HOWTO's doctest blocks so that they can be run with sphinx' doctest builder.

16 years agoAllow giving source names on the cmdline.
Georg Brandl [Sat, 22 Mar 2008 10:58:38 +0000 (10:58 +0000)]
Allow giving source names on the cmdline.

16 years agoActivate the Sphinx doctest extension and convert howto/functional to use it.
Georg Brandl [Sat, 22 Mar 2008 10:56:23 +0000 (10:56 +0000)]
Activate the Sphinx doctest extension and convert howto/functional to use it.

16 years ago#1918: document that weak references *to* an object are
Georg Brandl [Sat, 22 Mar 2008 10:07:29 +0000 (10:07 +0000)]
#1918: document that weak references *to* an object are
cleared before the object's __del__ is called, to ensure that the weak
reference callback (if any) finds the object healthy.

16 years agoAdded warning for the removal of 'hotshot' in Py3k.
Alexandre Vassalotti [Sat, 22 Mar 2008 04:08:44 +0000 (04:08 +0000)]
Added warning for the removal of 'hotshot' in Py3k.

16 years agoSmall fix that complicated the test actually when that
Facundo Batista [Sat, 22 Mar 2008 02:45:37 +0000 (02:45 +0000)]
Small fix that complicated the test actually when that
test failed.

16 years agoInstall lib2to3.
Martin v. Löwis [Sat, 22 Mar 2008 00:02:41 +0000 (00:02 +0000)]
Install lib2to3.

16 years agoMerged revisions 61602-61723 via svnmerge from
Martin v. Löwis [Sat, 22 Mar 2008 00:01:12 +0000 (00:01 +0000)]
Merged revisions 61602-61723 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r61626 | david.wolever | 2008-03-19 17:19:16 +0100 (Mi, 19 Mär 2008) | 1 line

  Added fixer for implicit local imports.  See #2414.
........
  r61628 | david.wolever | 2008-03-19 17:57:43 +0100 (Mi, 19 Mär 2008) | 1 line

  Added a class for tests which should not run if a particular import is found.
........
  r61629 | collin.winter | 2008-03-19 17:58:19 +0100 (Mi, 19 Mär 2008) | 1 line

  Two more relative import fixes in pgen2.
........
  r61635 | david.wolever | 2008-03-19 20:16:03 +0100 (Mi, 19 Mär 2008) | 1 line

  Fixed print fixer so it will do the Right Thing when it encounters __future__.print_function.  2to3 gets upset, though, so the tests have been commented out.
........
  r61637 | david.wolever | 2008-03-19 21:37:17 +0100 (Mi, 19 Mär 2008) | 3 lines

  Added a fixer for itertools imports (from itertools import imap, ifilterfalse --> from itertools import filterfalse)
........
  r61645 | david.wolever | 2008-03-19 23:22:35 +0100 (Mi, 19 Mär 2008) | 1 line

  SVN is happier when you add the files you create... -_-'
........
  r61654 | david.wolever | 2008-03-20 01:09:56 +0100 (Do, 20 Mär 2008) | 1 line

  Added an explicit sort order to fixers -- fixes problems like #2427
........
  r61664 | david.wolever | 2008-03-20 04:32:40 +0100 (Do, 20 Mär 2008) | 3 lines

  Fixes #2428 -- comments are no longer eatten by __future__ fixer.
........
  r61673 | david.wolever | 2008-03-20 17:22:40 +0100 (Do, 20 Mär 2008) | 1 line

  Added 2to3 node pretty-printer
........
  r61679 | david.wolever | 2008-03-20 20:50:42 +0100 (Do, 20 Mär 2008) | 1 line

  Made node printing a little bit prettier
........
  r61723 | martin.v.loewis | 2008-03-22 00:59:27 +0100 (Sa, 22 Mär 2008) | 2 lines

  Fix whitespace.
........

16 years agoApplied patch #1657 epoll and kqueue wrappers for the select module
Christian Heimes [Fri, 21 Mar 2008 23:49:44 +0000 (23:49 +0000)]
Applied patch #1657 epoll and kqueue wrappers for the select module
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help.
TODO: Finish documentation documentation

16 years agoAdd missing versionadded tag.
Georg Brandl [Fri, 21 Mar 2008 21:05:03 +0000 (21:05 +0000)]
Add missing versionadded tag.

16 years agoReplace hack in regrtest.py with use of sys.py3kwarning.
Steven Bethard [Fri, 21 Mar 2008 21:01:18 +0000 (21:01 +0000)]
Replace hack in regrtest.py with use of sys.py3kwarning.

16 years agoUpdate doc ACKS.
Georg Brandl [Fri, 21 Mar 2008 20:55:51 +0000 (20:55 +0000)]
Update doc ACKS.

16 years ago#2160: document PyImport_GetImporter.
Georg Brandl [Fri, 21 Mar 2008 20:55:20 +0000 (20:55 +0000)]
#2160: document PyImport_GetImporter.

16 years ago#2348: add py3k warning for file.softspace.
Georg Brandl [Fri, 21 Mar 2008 20:38:24 +0000 (20:38 +0000)]
#2348: add py3k warning for file.softspace.

16 years ago#2346/#2347: add py3k warning for __methods__ and __members__. Patch by Jack Diederich.
Georg Brandl [Fri, 21 Mar 2008 20:21:46 +0000 (20:21 +0000)]
#2346/#2347: add py3k warning for __methods__ and __members__. Patch by Jack Diederich.

16 years ago#2358: add py3k warning to sys.exc_clear().
Georg Brandl [Fri, 21 Mar 2008 20:11:46 +0000 (20:11 +0000)]
#2358: add py3k warning to sys.exc_clear().

16 years agoIssue #2432: give DictReader the dialect and line_num attributes
Georg Brandl [Fri, 21 Mar 2008 20:01:51 +0000 (20:01 +0000)]
Issue #2432: give DictReader the dialect and line_num attributes
advertised in the docs.

16 years ago#2136: allow single quotes in realm spec.
Georg Brandl [Fri, 21 Mar 2008 19:54:00 +0000 (19:54 +0000)]
#2136: allow single quotes in realm spec.

16 years agoAdd docs for print_function and future_builtins. Fixes #2442.
Georg Brandl [Fri, 21 Mar 2008 19:37:57 +0000 (19:37 +0000)]
Add docs for print_function and future_builtins. Fixes #2442.

16 years agoAdd docs for __func__ and __self__ on methods.
Georg Brandl [Fri, 21 Mar 2008 19:20:21 +0000 (19:20 +0000)]
Add docs for __func__ and __self__ on methods.

16 years agoFix a code block in __future__ docs.
Georg Brandl [Fri, 21 Mar 2008 19:14:38 +0000 (19:14 +0000)]
Fix a code block in __future__ docs.

16 years agoSpeed test_threading up from 14s to .5s, and avoid a deadlock on certain
Jeffrey Yasskin [Fri, 21 Mar 2008 18:48:04 +0000 (18:48 +0000)]
Speed test_threading up from 14s to .5s, and avoid a deadlock on certain
failures. The test for enumerate-after-join is now a little less rigorous, but
the bug it references says the error happened in the first couple iterations,
so 100 iterations should still be enough.

cProfile was useful for identifying the slow tests here.

16 years agoTry to fix test_signal on FreeBSD. I'm assuming that os.kill is failing to
Jeffrey Yasskin [Fri, 21 Mar 2008 18:25:06 +0000 (18:25 +0000)]
Try to fix test_signal on FreeBSD. I'm assuming that os.kill is failing to
raise a signal, but switching to subprocess makes the code cleaner anyway.

16 years agoFix markup.
Georg Brandl [Fri, 21 Mar 2008 17:19:29 +0000 (17:19 +0000)]
Fix markup.

16 years agoMark the descitems in the tutorial as "noindex" so that :meth: cross-refs don't link...
Georg Brandl [Fri, 21 Mar 2008 14:32:33 +0000 (14:32 +0000)]
Mark the descitems in the tutorial as "noindex" so that :meth: cross-refs don't link to them.

16 years agoTry to fix test_signal breakages on Linux due to r61687. It appears that at
Jeffrey Yasskin [Fri, 21 Mar 2008 05:51:37 +0000 (05:51 +0000)]
Try to fix test_signal breakages on Linux due to r61687. It appears that at
least two of the linux build bots aren't leaving zombie processes around for
os.waitpid to wait for, causing ECHILD errors. This would be a symptom of a bug
somewhere, but probably not in signal itself.

16 years agoSpeed up test_signal from ~24s to 4s by avoiding nearly all of the sleep calls.
Jeffrey Yasskin [Fri, 21 Mar 2008 05:02:44 +0000 (05:02 +0000)]
Speed up test_signal from ~24s to 4s by avoiding nearly all of the sleep calls.

16 years agoComment how 'from __future__ import print_function' operates in 3.0.
Eric Smith [Thu, 20 Mar 2008 23:56:08 +0000 (23:56 +0000)]
Comment how 'from __future__ import print_function' operates in 3.0.

16 years agoFixed PEP name.
Eric Smith [Thu, 20 Mar 2008 23:04:04 +0000 (23:04 +0000)]
Fixed PEP name.

16 years agoAdd lots of items
Andrew M. Kuchling [Thu, 20 Mar 2008 22:49:26 +0000 (22:49 +0000)]
Add lots of items

16 years agoClarfiy the availability of the extended support for win32_ver() in Py2.6.
Marc-André Lemburg [Thu, 20 Mar 2008 18:58:14 +0000 (18:58 +0000)]
Clarfiy the availability of the extended support for win32_ver() in Py2.6.

16 years agoAdd news items for platform module changes.
Marc-André Lemburg [Thu, 20 Mar 2008 18:08:00 +0000 (18:08 +0000)]
Add news items for platform module changes.

16 years agoAdd documentation for updated Windows support in win32_ver().
Marc-André Lemburg [Thu, 20 Mar 2008 17:55:31 +0000 (17:55 +0000)]
Add documentation for updated Windows support in win32_ver().

Add documentation for linux_distribution() API.

16 years agoIf Mark Hammonds win32 tools are not available, try to use the _winreg module
Marc-André Lemburg [Thu, 20 Mar 2008 17:31:36 +0000 (17:31 +0000)]
If Mark Hammonds win32 tools are not available, try to use the _winreg module
and sys.getwindowsversion() to get at the Windows version info.

For the machine and processor uname() values, use the environment variables
for these on Windows XP and later.

16 years agoGave Jerry Seutter svn access for general Python development.
Brett Cannon [Thu, 20 Mar 2008 16:13:48 +0000 (16:13 +0000)]
Gave Jerry Seutter svn access for general Python development.

16 years ago#2383: remove obsolete XXX comment in stat.py.
Georg Brandl [Thu, 20 Mar 2008 07:25:55 +0000 (07:25 +0000)]
#2383: remove obsolete XXX comment in stat.py.

16 years agoAttempt to fix the Solaris Sparc 10 buildbot. It was failing with an invalid
Gregory P. Smith [Thu, 20 Mar 2008 05:41:53 +0000 (05:41 +0000)]
Attempt to fix the Solaris Sparc 10 buildbot.  It was failing with an invalid
argument error on ioctl.  This was caused by the added test_fcntl ioctl test
that hard coded 0 as the fd to use.  Without a terminal, this fails on solaris.
(it passed from the command line on sol 10, both 32 and 64 bit)

Also, test_ioctl exists so I moved the test into there where it belongs.

16 years agoIssue 2188: Documentation hint about disabling proxy detection.
Sean Reifscheider [Thu, 20 Mar 2008 03:20:48 +0000 (03:20 +0000)]
Issue 2188: Documentation hint about disabling proxy detection.

16 years agoRevert r61650; the intent of this commit was to try and address alarm failures on...
Trent Nelson [Thu, 20 Mar 2008 00:58:44 +0000 (00:58 +0000)]
Revert r61650; the intent of this commit was to try and address alarm failures on some of the build slaves.  As Neal points out, it's called after test_main(), so it's not going to factor into the test when run via regrtest.py (and removes the original functionality that Jeffrey wanted that would kill the test if it took longer than 3 seconds to run when executing it directly during development).

16 years agoForgot to add NEWS item about smtplib SSL readline hang fix.
Sean Reifscheider [Thu, 20 Mar 2008 00:50:07 +0000 (00:50 +0000)]
Forgot to add NEWS item about smtplib SSL readline hang fix.

16 years agoIssue #2143: Fix embedded readline() hang on SSL socket EOF.
Sean Reifscheider [Thu, 20 Mar 2008 00:46:50 +0000 (00:46 +0000)]
Issue #2143: Fix embedded readline() hang on SSL socket EOF.

16 years agoPrevent ioctl op codes from being sign extended from int to unsigned long
Gregory P. Smith [Wed, 19 Mar 2008 23:03:25 +0000 (23:03 +0000)]
Prevent ioctl op codes from being sign extended from int to unsigned long
when used on platforms that actually define ioctl as taking an unsigned long.
(the BSDs and OS X / Darwin)

Adds a unittest for fcntl.ioctl that tests what happens with both positive and
negative numbers.

This was done because of issue1471 but I'm not able to reproduce -that- problem
in the first place on Linux 32bit or 64bit or OS X 10.4 & 10.5 32bit or 64 bit.

16 years agoMake sure that the warnings filter is not reset or changed beyond the current
Brett Cannon [Wed, 19 Mar 2008 23:01:17 +0000 (23:01 +0000)]
Make sure that the warnings filter is not reset or changed beyond the current
running test file.

Closes issue2407. Thanks Jerry Seutter.

16 years agoBump the SIGALM delay from 3 seconds to 20 seconds, mainly in an effort to see if...
Trent Nelson [Wed, 19 Mar 2008 22:51:42 +0000 (22:51 +0000)]
Bump the SIGALM delay from 3 seconds to 20 seconds, mainly in an effort to see if it fixes the alarm failures in this test experienced by some of the buildbots.

16 years agoRemove unnecessary traceback save/restore pair.
Raymond Hettinger [Wed, 19 Mar 2008 22:47:48 +0000 (22:47 +0000)]
Remove unnecessary traceback save/restore pair.

16 years agoComment out tcltk/tcltk64 removal.
Trent Nelson [Wed, 19 Mar 2008 22:41:10 +0000 (22:41 +0000)]
Comment out tcltk/tcltk64 removal.

16 years agoImprove the error message when the CRCs don't match.
Gregory P. Smith [Wed, 19 Mar 2008 22:23:51 +0000 (22:23 +0000)]
Improve the error message when the CRCs don't match.

16 years agoForce a clean of the tcltk/tcltk64 directories now that we've completely changed...
Trent Nelson [Wed, 19 Mar 2008 21:51:16 +0000 (21:51 +0000)]
Force a clean of the tcltk/tcltk64 directories now that we've completely changed the tcl/tk build environment.

16 years agoFix the x64 Windows build environment used by the buildbots. %VS90COMNTOOLS%\vsvars3...
Trent Nelson [Wed, 19 Mar 2008 21:11:55 +0000 (21:11 +0000)]
Fix the x64 Windows build environment used by the buildbots.  %VS90COMNTOOLS%\vsvars32.bat is fine for 32-bit builds, but doesn't work for x64 builds, regardless of /MACHINE:AMD64 and /USECL:MS_OPTERON flags passed to cl.exe.  Launch the x86_64 cross compilation environment via '%VS90COMNTOOLS%\..\..\VC\vcvarsall.bat x86_amd64'.  I don't have access to any systems *without* Visual Studio 2008 Professional installed (i.e. just Express Edition), so I can't test if x64 compilation works w/ VS Express at the moment.

Additionally, force a clean in our build.bat files before building, just whilst we're going through these build system updates.

And finally, add in the missing MACHINE=AMD64 option to our Tcl/Tk x64 build.

16 years agoRemove itertools warnings I had added before the 2-to-3 handled the migration.
Raymond Hettinger [Wed, 19 Mar 2008 18:01:58 +0000 (18:01 +0000)]
Remove itertools warnings I had added before the 2-to-3 handled the migration.

16 years agoThe filter() function does support a None argument in Py3.0.
Raymond Hettinger [Wed, 19 Mar 2008 17:58:59 +0000 (17:58 +0000)]
The filter() function does support a None argument in Py3.0.

16 years agoIssue 2354: Fix-up compare warning. Patch contributed by Jeff Balogh.
Raymond Hettinger [Wed, 19 Mar 2008 17:45:19 +0000 (17:45 +0000)]
Issue 2354: Fix-up compare warning.  Patch contributed by Jeff Balogh.

16 years agoUse sys.py3kwarning instead of trying to trigger a Py3k-related warning.
Brett Cannon [Wed, 19 Mar 2008 17:37:43 +0000 (17:37 +0000)]
Use sys.py3kwarning instead of trying to trigger a Py3k-related warning.

16 years agotest_nis would fail if test.test_support.verbose was true but NIS was not set
Brett Cannon [Wed, 19 Mar 2008 16:50:13 +0000 (16:50 +0000)]
test_nis would fail if test.test_support.verbose was true but NIS was not set
up on the machine.

Closes issue2411. Thanks Michael Bishop.

16 years agoCheckout sqlite-source when it is not there.
Thomas Heller [Wed, 19 Mar 2008 16:10:57 +0000 (16:10 +0000)]
Checkout sqlite-source when it is not there.

16 years agoTrivial typo.
Eric Smith [Wed, 19 Mar 2008 12:15:10 +0000 (12:15 +0000)]
Trivial typo.

16 years agoUse test.test_support.captured_stdout instead of a custom contextmanager.
Eric Smith [Wed, 19 Mar 2008 12:09:55 +0000 (12:09 +0000)]
Use test.test_support.captured_stdout instead of a custom contextmanager.
Thanks Nick Coghlan.

16 years agoLets have another try at getting the Windows buildbots in a consistent state before...
Trent Nelson [Wed, 19 Mar 2008 09:23:08 +0000 (09:23 +0000)]
Lets have another try at getting the Windows buildbots in a consistent state before rebuilding using the new process.

16 years agoFix the tcl-8.4.18.1 path and make sure we cd into the right directory when building...
Trent Nelson [Wed, 19 Mar 2008 08:06:03 +0000 (08:06 +0000)]
Fix the tcl-8.4.18.1 path and make sure we cd into the right directory when building tcl/tk.

16 years agoAnother one.
Georg Brandl [Wed, 19 Mar 2008 07:57:57 +0000 (07:57 +0000)]
Another one.

16 years agoRemove footnote from versionchanged as it upsets LaTeX.
Georg Brandl [Wed, 19 Mar 2008 07:56:40 +0000 (07:56 +0000)]
Remove footnote from versionchanged as it upsets LaTeX.

16 years agoRemove extraneous apostrophe and semi-colon from AdditionalIncludeDirectories.
Trent Nelson [Wed, 19 Mar 2008 07:56:39 +0000 (07:56 +0000)]
Remove extraneous apostrophe and semi-colon from AdditionalIncludeDirectories.

16 years agoRefine the Visual Studio 2008 build solution in order to improve how we deal with...
Trent Nelson [Wed, 19 Mar 2008 07:45:19 +0000 (07:45 +0000)]
Refine the Visual Studio 2008 build solution in order to improve how we deal with external components, as well as fixing outstanding issues with Windows x64 build support.  Introduce two new .vcproj files, _bsddb44.vcproj and sqlite3.vcproj, which replace the previous pre-link event scripts for _bsddb and _sqlite3 respectively.  The new project files inherit from our property files as if they were any other Python module.  This has numerous benefits.  First, the components get built with exactly the same compiler flags and settings as the rest of Python.  Second, it makes it much easier to debug problems in the external components when they're part of the build system.  Third, they'll benefit from profile guided optimisation in the release builds, just like the rest of Python core.

I've also introduced a slightly new pattern for managing externals in subversion.  New components get checked in as <name>-<version>.x, where <version> matches the exact vendor version string.  After the initial import of the external component, the .x is tagged as .0 (i.e. tcl-8.4.18.x -> tcl-8.4.18.0).  Some components may not need any tweaking, whereas there are others that might (tcl/tk fall into this bucket).  In that case, the relevant modifications are made to the .x branch, which will be subsequently tagged as .1 (and then n+1 going forward) when they build successfully and all tests pass.  Buildbots will be converted to rely on these explicit tags only, which makes it easy for us to switch them over to a new version as and when required.  (Simple change to external(-amd64).bat: if we've bumped tcl to 8.4.18.1, change the .bat to rmdir 8.4.18.0 if it exists and check out a new .1 copy.)

16 years agoIssue2290: Support x64 Windows builds that live in pcbuild/amd64. Without it, sysuti...
Trent Nelson [Wed, 19 Mar 2008 06:28:24 +0000 (06:28 +0000)]
Issue2290: Support x64 Windows builds that live in pcbuild/amd64.  Without it, sysutils._python_build() returns the wrong directory, which causes the test_get_config_h_filename method in Lib/distutils/tests/test_sysconfig.py to fail.

16 years agoImport relimport using a relative import.
Martin v. Löwis [Wed, 19 Mar 2008 06:00:28 +0000 (06:00 +0000)]
Import relimport using a relative import.

16 years agoMerged revisions 61598-61599,61601 via svnmerge from
Martin v. Löwis [Wed, 19 Mar 2008 05:22:42 +0000 (05:22 +0000)]
Merged revisions 61598-61599,61601 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r61598 | david.wolever | 2008-03-18 23:58:33 -0500 (Di, 18 Mär 2008) | 1 line

  Added fixer for zip, and refactored a bit of code in the process.  Closing #2171.
........
  r61599 | david.wolever | 2008-03-19 00:04:26 -0500 (Mi, 19 Mär 2008) | 3 lines

  Removed a bunch of duplicate code -- it's in util now.
........
  r61601 | martin.v.loewis | 2008-03-19 00:21:12 -0500 (Mi, 19 Mär 2008) | 2 lines

  Fix whitespace.
........

16 years agoInitialized merge tracking via "svnmerge" with revisions "1-61595" from
Martin v. Löwis [Wed, 19 Mar 2008 04:58:04 +0000 (04:58 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-61595" from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

16 years agoImport lib2to3.
Martin v. Löwis [Wed, 19 Mar 2008 04:43:46 +0000 (04:43 +0000)]
Import lib2to3.

16 years agoIssue #2400: Allow relative imports to "import *".
Martin v. Löwis [Wed, 19 Mar 2008 04:39:13 +0000 (04:39 +0000)]
Issue #2400: Allow relative imports to "import *".

16 years agoFix compiler warning.
Raymond Hettinger [Wed, 19 Mar 2008 03:56:59 +0000 (03:56 +0000)]
Fix compiler warning.

16 years agoFix the struct module DeprecationWarnings that zipfile was triggering by
Gregory P. Smith [Wed, 19 Mar 2008 03:14:41 +0000 (03:14 +0000)]
Fix the struct module DeprecationWarnings that zipfile was triggering by
removing all use of signed struct values.

test_zipfile and test_zipfile64 pass.  no more warnings.

16 years agoAnother test for __future__ print_function.
Eric Smith [Wed, 19 Mar 2008 03:13:34 +0000 (03:13 +0000)]
Another test for __future__ print_function.

16 years agoAdded zip, map, filter to future_bultins (#2171)
David Wolever [Wed, 19 Mar 2008 02:35:45 +0000 (02:35 +0000)]
Added zip, map, filter to future_bultins (#2171)

16 years agoAdded my name to ACKS
David Wolever [Wed, 19 Mar 2008 02:26:57 +0000 (02:26 +0000)]
Added my name to ACKS

16 years agoFixed compiler module so __future__ print_function is compilable.
Eric Smith [Wed, 19 Mar 2008 02:11:30 +0000 (02:11 +0000)]
Fixed compiler module so __future__ print_function is compilable.

16 years agoUse zlib's crc32 routine instead of binascii when available. zlib's is faster
Gregory P. Smith [Wed, 19 Mar 2008 01:46:10 +0000 (01:46 +0000)]
Use zlib's crc32 routine instead of binascii when available.  zlib's is faster
when compiled properly optimized and about the same speed otherwise.

16 years agoMention that crc32 and adler32 are available in a different module (zlib).
Gregory P. Smith [Wed, 19 Mar 2008 01:38:35 +0000 (01:38 +0000)]
Mention that crc32 and adler32 are available in a different module (zlib).
Some people look for them in hashlib.

16 years agoAdd Jeff Rush
Andrew M. Kuchling [Wed, 19 Mar 2008 01:05:35 +0000 (01:05 +0000)]
Add Jeff Rush

16 years agoBackport of the print function, using a __future__ import.
Eric Smith [Tue, 18 Mar 2008 23:45:49 +0000 (23:45 +0000)]
Backport of the print function, using a __future__ import.
This work is substantially Anthony Baxter's, from issue
1633807.  I just freshened it, made a few minor tweaks,
and added the test cases.  I also created issue 2412,
which is to check for 2to3's behavior with the print
function.  I also added myself to ACKS.

16 years agoIssue: 2354: Add 3K warning for the cmp argument to list.sort() and sorted().
Raymond Hettinger [Tue, 18 Mar 2008 23:33:08 +0000 (23:33 +0000)]
Issue: 2354: Add 3K warning for the cmp argument to list.sort() and sorted().

16 years agoSpeed-up isinstance() for one easy case.
Raymond Hettinger [Tue, 18 Mar 2008 23:22:29 +0000 (23:22 +0000)]
Speed-up isinstance() for one easy case.

16 years agoAdd a test to make sure zlib.crc32 and binascii.crc32 return the same thing.
Gregory P. Smith [Tue, 18 Mar 2008 22:27:41 +0000 (22:27 +0000)]
Add a test to make sure zlib.crc32 and binascii.crc32 return the same thing.
Fix a buglet in binascii.crc32, the second optional argument could previously
have a signedness mismatch with the C variable its going into.

16 years agoAdd py3k warnings for code and method inequality comparisons. This should resolve...
Steven Bethard [Tue, 18 Mar 2008 22:08:20 +0000 (22:08 +0000)]
Add py3k warnings for code and method inequality comparisons. This should resolve issue 2373. The codeobject.c and methodobject.c changes are both just backports of the Python 3 code.

16 years agoHave regrtest skip test_py3kwarn when the -3 flag is missing.
Steven Bethard [Tue, 18 Mar 2008 21:30:13 +0000 (21:30 +0000)]
Have regrtest skip test_py3kwarn when the -3 flag is missing.

16 years agoAdded a warning when -3 is enabled and None is passed to filter as the first argument.
David Wolever [Tue, 18 Mar 2008 21:20:25 +0000 (21:20 +0000)]
Added a warning when -3 is enabled and None is passed to filter as the first argument.

16 years agoIgnore BIG5HKSCS-2004.TXT which is downloaded as part of a test.
Brett Cannon [Tue, 18 Mar 2008 21:12:42 +0000 (21:12 +0000)]
Ignore BIG5HKSCS-2004.TXT which is downloaded as part of a test.

16 years agonews entry for the chown fix
Gregory P. Smith [Tue, 18 Mar 2008 20:40:01 +0000 (20:40 +0000)]
news entry for the chown fix

16 years agoImport the test properly. This is especially important for py3k.
Neal Norwitz [Tue, 18 Mar 2008 20:30:38 +0000 (20:30 +0000)]
Import the test properly.  This is especially important for py3k.

16 years agoFix test_atexit so that it still passes when -3 is supplied. (It was catching the...
Steven Bethard [Tue, 18 Mar 2008 19:59:14 +0000 (19:59 +0000)]
Fix test_atexit so that it still passes when -3 is supplied. (It was catching the warning messages on stdio from using the reload() function.)

16 years agoFix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as
Gregory P. Smith [Tue, 18 Mar 2008 19:05:32 +0000 (19:05 +0000)]
Fix chown on 64-bit linux.  It needed to take a long (64-bit on 64bit linux) as
uid and gid input to accept values >=2**31 as valid while still accepting
negative numbers to pass -1 to chown for "no change".

Fixes issue1747858.

This should be backported to release25-maint.

16 years ago_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard...
Steven Bethard [Tue, 18 Mar 2008 19:04:32 +0000 (19:04 +0000)]
_have_soundcard() is a bad check for winsound.Beep, since you can have a soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.

16 years agocell_compare needs to return -2 instead of NULL.
Steven Bethard [Tue, 18 Mar 2008 19:03:50 +0000 (19:03 +0000)]
cell_compare needs to return -2 instead of NULL.

16 years agoGet regrtest working when re-running tests
Neal Norwitz [Tue, 18 Mar 2008 17:58:02 +0000 (17:58 +0000)]
Get regrtest working when re-running tests

16 years agoAdd py3k warnings for object, type, cell and dict comparisons. This should resolve...
Steven Bethard [Tue, 18 Mar 2008 17:26:10 +0000 (17:26 +0000)]
Add py3k warnings for object, type, cell and dict comparisons. This should resolve issue2342 and partly resolve issue2373.

16 years agoAdd Tools/scripts/patchcheck.py. Invoked from ``make check``, the script does
Brett Cannon [Tue, 18 Mar 2008 17:25:13 +0000 (17:25 +0000)]
Add Tools/scripts/patchcheck.py. Invoked from ``make check``, the script does
some verification:

- Runs reindent.py on all .py files.
- Checks if any changes in Doc exist.
- Whether Misc/ACKS was changed.
- Whether Misc/NEWS was changed.

The hope is that ``make check`` can become a command anybody can run to get
reminders about what all the requisite steps needed to create a proper
patch/checkin.

16 years agoIssue 1577: shutil.move() where destination is a directory was doing a
Sean Reifscheider [Tue, 18 Mar 2008 17:24:12 +0000 (17:24 +0000)]
Issue 1577: shutil.move() where destination is a directory was doing a
copy, now it is doing a os.rename() if it's on the same file-system.