]> granicus.if.org Git - python/log
python
16 years agoBlocked revisions 66142 via svnmerge
Benjamin Peterson [Mon, 8 Sep 2008 22:09:39 +0000 (22:09 +0000)]
Blocked revisions 66142 via svnmerge

........
  r66142 | gregory.p.smith | 2008-09-02 00:36:11 -0500 (Tue, 02 Sep 2008) | 3 lines

  Issue #3708: os.urandom no longer goes into an infinite loop when passed a
  non-integer floating point number.
........

16 years agoBlocked revisions 66281-66282,66301,66310 via svnmerge
Benjamin Peterson [Mon, 8 Sep 2008 21:56:45 +0000 (21:56 +0000)]
Blocked revisions 66281-66282,66301,66310 via svnmerge

........
  r66281 | josiah.carlson | 2008-09-06 22:53:58 -0500 (Sat, 06 Sep 2008) | 3 lines

  This fixes a small inconsistency between trunk and 3.0, closing bug 3764.
........
  r66282 | josiah.carlson | 2008-09-06 23:37:10 -0500 (Sat, 06 Sep 2008) | 3 lines

  undoing change that broke trunk.  Need to find a better solution to this.
........
  r66301 | facundo.batista | 2008-09-07 19:20:28 -0500 (Sun, 07 Sep 2008) | 4 lines

  Issue 3801.  Fixing a dumb error in the deprecated parse_qsl()
  function.  Tests added.
........
  r66310 | bill.janssen | 2008-09-08 11:37:24 -0500 (Mon, 08 Sep 2008) | 1 line

  incorporate fixes from issue 3162; SSL doc patch
........

16 years agomention that bsddb3 can be gotten as a third party addon
Benjamin Peterson [Mon, 8 Sep 2008 21:35:37 +0000 (21:35 +0000)]
mention that bsddb3 can be gotten as a third party addon

16 years agofixes from issue 3162 for SSL module
Bill Janssen [Mon, 8 Sep 2008 16:45:19 +0000 (16:45 +0000)]
fixes from issue 3162 for SSL module

16 years agoAdd 3.0b3 uuid
Martin v. Löwis [Mon, 8 Sep 2008 16:30:35 +0000 (16:30 +0000)]
Add 3.0b3 uuid

16 years agoMerged revisions 66304-66305,66307 via svnmerge from
Martin v. Löwis [Mon, 8 Sep 2008 16:27:54 +0000 (16:27 +0000)]
Merged revisions 66304-66305,66307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66304 | martin.v.loewis | 2008-09-08 14:02:45 +0200 (Mo, 08 Sep 2008) | 2 lines

  Allow passing the MSI file name to merge.py.
........
  r66305 | martin.v.loewis | 2008-09-08 15:50:10 +0200 (Mo, 08 Sep 2008) | 3 lines

  Issue #2271: Set SecureCustomProperties so that installation will properly
  use the TARGETDIR even for unprivileged users.
........
  r66307 | martin.v.loewis | 2008-09-08 18:15:38 +0200 (Mo, 08 Sep 2008) | 1 line

  Add UUIDs for upcoming releases
........

16 years agoremove some more bsddb references
Benjamin Peterson [Mon, 8 Sep 2008 02:49:30 +0000 (02:49 +0000)]
remove some more bsddb references

16 years agoAdded sanity checks for the deprecated parse_qs() and
Facundo Batista [Mon, 8 Sep 2008 00:23:29 +0000 (00:23 +0000)]
Added sanity checks for the deprecated parse_qs() and
parse_qsl() functions in cgi module.

16 years agoreran autoconf
Gregory P. Smith [Sun, 7 Sep 2008 19:24:00 +0000 (19:24 +0000)]
reran autoconf

16 years agoMerged revision 66295 via svnmerge from
Gregory P. Smith [Sun, 7 Sep 2008 19:23:19 +0000 (19:23 +0000)]
Merged revision 66295 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66295 | gregory.p.smith | 2008-09-07 12:18:16 -0700 (Sun, 07 Sep 2008)

  bugfix to r66283 (see issue #1204).
........

16 years agodescribe the change merged in r66285
Gregory P. Smith [Sun, 7 Sep 2008 06:29:10 +0000 (06:29 +0000)]
describe the change merged in r66285

16 years agoblock 66284 from being merged; i reran autoconf to regenerate
Gregory P. Smith [Sun, 7 Sep 2008 06:27:24 +0000 (06:27 +0000)]
block 66284 from being merged; i reran autoconf to regenerate
configure and included that in 66285.

16 years agoMerged revisions 66179,66283 via svnmerge from
Gregory P. Smith [Sun, 7 Sep 2008 06:24:49 +0000 (06:24 +0000)]
Merged revisions 66179,66283 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66179 | gregory.p.smith | 2008-09-02 22:57:48 -0700 (Tue, 02 Sep 2008)

  Fix issue 3645: OpenBSD required -lcurses when linking with readline
  to get the correct completion_matches function to avoid crashes on
  x86_64 (amd64).
........
  r66283 | gregory.p.smith | 2008-09-06 22:15:18 -0700 (Sat, 06 Sep 2008)

  - Issue #1204: The configure script now tests for additional libraries
    that may be required when linking against readline.  This fixes issues
    with x86_64 builds on some platforms (at least a few Linux flavors as
    well as OpenBSD/amd64).
........

16 years agoMerged revisions 66277 via svnmerge from
Benjamin Peterson [Sat, 6 Sep 2008 23:33:21 +0000 (23:33 +0000)]
Merged revisions 66277 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66277 | benjamin.peterson | 2008-09-06 18:19:15 -0500 (Sat, 06 Sep 2008) | 1 line

  fix missing module
........

16 years agoBlocked revisions 66275 via svnmerge
Antoine Pitrou [Sat, 6 Sep 2008 23:06:41 +0000 (23:06 +0000)]
Blocked revisions 66275 via svnmerge

........
  r66275 | antoine.pitrou | 2008-09-07 01:04:32 +0200 (dim., 07 sept. 2008) | 3 lines

  Backport relevant part of r66274 (in issue #874900).
........

16 years agoIssue #874900: fix behaviour of threading module after a fork.
Antoine Pitrou [Sat, 6 Sep 2008 23:00:03 +0000 (23:00 +0000)]
Issue #874900: fix behaviour of threading module after a fork.

Reviewed by Gregory P. Smith.

16 years agofixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,
Gregory P. Smith [Sat, 6 Sep 2008 21:34:51 +0000 (21:34 +0000)]
fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,
ossaudiodev, & winreg modules to return bytes objects instead of bytearray
objects.

16 years agoI modified the tests a bit to account for unicode string
Amaury Forgeot d'Arc [Sat, 6 Sep 2008 21:03:22 +0000 (21:03 +0000)]
I modified the tests a bit to account for unicode string

Merged revisions 66270 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66270 | amaury.forgeotdarc | 2008-09-06 22:53:51 +0200 (sam., 06 sept. 2008) | 3 lines

  #3796: A test class was not run in test_float.
  Reviewed by Benjamin.
........

16 years agoIssue #3705: py3k aborts if "-c" or "-m" is given a non-ascii value.
Antoine Pitrou [Sat, 6 Sep 2008 20:46:58 +0000 (20:46 +0000)]
Issue #3705: py3k aborts if "-c" or "-m" is given a non-ascii value.

Reviewed by Benjamin Peterson.

16 years agoFixes release blocker issue #3492 and #3790.
Gregory P. Smith [Sat, 6 Sep 2008 20:13:06 +0000 (20:13 +0000)]
Fixes release blocker issue #3492 and #3790.

Make zlib and zipimport to return bytes instead of bytearray and use bytes
rather than bytearray for their internal leftover data storages.

16 years agoMerged revisions 66262 via svnmerge from
Benjamin Peterson [Sat, 6 Sep 2008 19:37:35 +0000 (19:37 +0000)]
Merged revisions 66262 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66262 | benjamin.peterson | 2008-09-06 14:28:11 -0500 (Sat, 06 Sep 2008) | 4 lines

  #1638033: add support for httponly on Cookie.Morsel

  Reviewer: Benjamin
........

16 years ago#3794: remove __div__ and __rdiv__ traces.
Georg Brandl [Sat, 6 Sep 2008 17:43:49 +0000 (17:43 +0000)]
#3794: remove __div__ and __rdiv__ traces.

16 years ago#3793: fix markup.
Georg Brandl [Sat, 6 Sep 2008 17:42:52 +0000 (17:42 +0000)]
#3793: fix markup.

16 years agoRemove alpha notes from RELNOTES
Barry Warsaw [Sat, 6 Sep 2008 16:49:24 +0000 (16:49 +0000)]
Remove alpha notes from RELNOTES

16 years agoforgot to remove _bsddb description from readme.txt (VC6)
Hirokazu Yamamoto [Sat, 6 Sep 2008 07:21:15 +0000 (07:21 +0000)]
forgot to remove _bsddb description from readme.txt (VC6)

16 years agoAlign the VS2003 and VS2005 build files with the VS2008 ones
Amaury Forgeot d'Arc [Sat, 6 Sep 2008 00:11:20 +0000 (00:11 +0000)]
Align the VS2003 and VS2005 build files with the VS2008 ones
(VC6 was done before)

16 years agoBlocked revisions 66137,66182,66192,66196 via svnmerge
Benjamin Peterson [Fri, 5 Sep 2008 23:45:52 +0000 (23:45 +0000)]
Blocked revisions 66137,66182,66192,66196 via svnmerge

........
  r66137 | jesus.cea | 2008-09-01 21:29:06 -0500 (Mon, 01 Sep 2008) | 1 line

  Improve compatibility with Python3.0 testsuite
........
  r66182 | jesus.cea | 2008-09-03 12:50:32 -0500 (Wed, 03 Sep 2008) | 1 line

  Fix some leaks - Neal Norwitz
........
  r66192 | jesus.cea | 2008-09-03 17:07:11 -0500 (Wed, 03 Sep 2008) | 1 line

  Python3.0 bsddb testsuite compatibility improvements
........
  r66196 | facundo.batista | 2008-09-03 17:35:50 -0500 (Wed, 03 Sep 2008) | 5 lines

  Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
  to the urlparse one.  Added a PendingDeprecationWarning in the old
  module, it will be deprecated in the future.  Docs and tests updated.
........

16 years agoMerged revisions 66240 via svnmerge from
Antoine Pitrou [Fri, 5 Sep 2008 23:43:02 +0000 (23:43 +0000)]
Merged revisions 66240 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66240 | antoine.pitrou | 2008-09-06 01:30:23 +0200 (sam., 06 sept. 2008) | 5 lines

  Issue #3535: zipfile couldn't read some zip files larger than 2GB.

  Reviewed by Amaury Forgeot d'Arc.
........

16 years agocompile _bytesio and _stringio into the binary and initalize stdio before site fixing...
Benjamin Peterson [Fri, 5 Sep 2008 23:27:15 +0000 (23:27 +0000)]
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279

Reviewer: Alexandre Vassalotti

16 years agoMerged revisions 66237 via svnmerge from
Brett Cannon [Fri, 5 Sep 2008 23:01:27 +0000 (23:01 +0000)]
Merged revisions 66237 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66237 | brett.cannon | 2008-09-05 15:59:17 -0700 (Fri, 05 Sep 2008) | 7 lines

  GNU coding guidelines say that ``make check`` should verify the build. That
  clashes with what Python's build target did. Rename the target to 'patchcheck'
  to avoid the culture clash.

  Closes issue 3758.
  Reviewed by Benjamin Peterson.
........

16 years agoMerged revisions 66235 via svnmerge from
Antoine Pitrou [Fri, 5 Sep 2008 22:13:06 +0000 (22:13 +0000)]
Merged revisions 66235 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66235 | antoine.pitrou | 2008-09-06 00:04:54 +0200 (sam., 06 sept. 2008) | 6 lines

  #3601: test_unicode.test_raiseMemError fails in UCS4

  Reviewed by Benjamin Peterson on IRC.
........

16 years ago#3660: Correct a reference leak in PyUnicode_AsEncodedString when
Amaury Forgeot d'Arc [Fri, 5 Sep 2008 20:48:47 +0000 (20:48 +0000)]
#3660: Correct a reference leak in PyUnicode_AsEncodedString when
the encoder does not return a bytes object.

Now test_unicode passes without leaking.

Reviewer: Antoine Pitrou.

16 years agoBlocked revisions 66232 via svnmerge
Brett Cannon [Fri, 5 Sep 2008 18:35:01 +0000 (18:35 +0000)]
Blocked revisions 66232 via svnmerge

........
  r66232 | brett.cannon | 2008-09-05 11:33:51 -0700 (Fri, 05 Sep 2008) | 5 lines

  Deprecate bsddb for removal in Python 3.0.

  Closes issue 3776.
  Review by Nick Coghlan.
........

16 years agoBlocked revisions 66229 via svnmerge
Brett Cannon [Fri, 5 Sep 2008 03:54:40 +0000 (03:54 +0000)]
Blocked revisions 66229 via svnmerge

........
  r66229 | brett.cannon | 2008-09-04 20:52:59 -0700 (Thu, 04 Sep 2008) | 1 line

  Make it more obvious that warnings.catch_warnings() and its arguments should be considered keyword-only.
........

16 years agofix small typo
Benjamin Peterson [Fri, 5 Sep 2008 00:43:33 +0000 (00:43 +0000)]
fix small typo

16 years agoIssue #3660 (part of): fix a memory leak in _pickle.
Antoine Pitrou [Fri, 5 Sep 2008 00:03:33 +0000 (00:03 +0000)]
Issue #3660 (part of): fix a memory leak in _pickle.

Patch by Amaury Forgeot d'Arc, review by me.

16 years agoFollow-up of #3773: In PyTokenizer_FindEncoding, remove the call to PyErr_NoMemory...
Amaury Forgeot d'Arc [Thu, 4 Sep 2008 22:53:19 +0000 (22:53 +0000)]
Follow-up of #3773: In PyTokenizer_FindEncoding, remove the call to PyErr_NoMemory when PyMem_MALLOC() fails.
It is not stritly necessary, the function may already return NULL without an exception set,
for example when the file cannot be opened.

Discussed with Benjamin Peterson.

16 years ago#3773: Check for errors around the use of PyTokenizer_FindEncoding().
Amaury Forgeot d'Arc [Thu, 4 Sep 2008 22:34:09 +0000 (22:34 +0000)]
#3773: Check for errors around the use of PyTokenizer_FindEncoding().

reviewed by Brett Cannon.

16 years agoIssue #3160: the "bdist_wininst" distutils command didn't work.
Antoine Pitrou [Thu, 4 Sep 2008 21:32:09 +0000 (21:32 +0000)]
Issue #3160: the "bdist_wininst" distutils command didn't work.

Reviewed by Trent Nelson.

16 years agoUpdate release notes for pybsddb.
Barry Warsaw [Thu, 4 Sep 2008 13:44:35 +0000 (13:44 +0000)]
Update release notes for pybsddb.

16 years agoMerged revisions 66213 via svnmerge from
Hirokazu Yamamoto [Thu, 4 Sep 2008 11:24:53 +0000 (11:24 +0000)]
Merged revisions 66213 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66213 | hirokazu.yamamoto | 2008-09-04 20:15:14 +0900 | 1 line

  Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
  Reviewed by Amaury Forgeot d'Arc.
........

16 years agoIssue #1658: dict size is changing during iteration in tkinter.BaseWidget and
Guilherme Polo [Thu, 4 Sep 2008 11:21:31 +0000 (11:21 +0000)]
Issue #1658: dict size is changing during iteration in tkinter.BaseWidget and
tkinter.scrolledtext.ScrolledText.

Reviewed by Amaury Forgeot d'Arc

16 years agoFollows to bsddb removal (VC6)
Hirokazu Yamamoto [Thu, 4 Sep 2008 08:47:17 +0000 (08:47 +0000)]
Follows to bsddb removal (VC6)

16 years agoMention that bsddb is gone and include a link to jcea's website where
Gregory P. Smith [Thu, 4 Sep 2008 05:07:03 +0000 (05:07 +0000)]
Mention that bsddb is gone and include a link to jcea's website where
it is being maintained.

16 years agoPyTokenizer_FindEncoding() always failed because it set the tokenizer state
Brett Cannon [Thu, 4 Sep 2008 05:04:25 +0000 (05:04 +0000)]
PyTokenizer_FindEncoding() always failed because it set the tokenizer state
with only a file pointer when it called fp_setreadl() which expected a file
path. Changed fp_setreadl() to use either a file path or file descriptor
(derived from the file pointer) to fix the issue.

Closes issue 3594.
Reviewed by Antoine Pitrou and Benjamin Peterson.

16 years agoInclude a pointer to the pybsddb website with the 'bsddb has been
Gregory P. Smith [Thu, 4 Sep 2008 04:46:48 +0000 (04:46 +0000)]
Include a pointer to the pybsddb website with the 'bsddb has been
removed' note.

16 years agocorrect an example
Gregory P. Smith [Thu, 4 Sep 2008 04:18:09 +0000 (04:18 +0000)]
correct an example

16 years agoRemove _bsddb project on py3k (_bsddb44 project remains and builds). As discussed
Mark Hammond [Thu, 4 Sep 2008 03:03:00 +0000 (03:03 +0000)]
Remove _bsddb project on py3k (_bsddb44 project remains and builds).  As discussed
with Barry etc on #python-dev

16 years agoFix a memory leak in reloading extension modules #3667
Benjamin Peterson [Thu, 4 Sep 2008 02:28:15 +0000 (02:28 +0000)]
Fix a memory leak in reloading extension modules #3667

Reviewer: Barry Warsaw

16 years ago#2501 xml.sax.parser doesn't terminate when given a filename; enable some more tests!
Benjamin Peterson [Thu, 4 Sep 2008 02:22:52 +0000 (02:22 +0000)]
#2501 xml.sax.parser doesn't terminate when given a filename; enable some more tests!

Reviewed by myself

16 years agoCommitting the patch in issue 2965, so that weakref dicts have a closer
Barry Warsaw [Thu, 4 Sep 2008 01:42:51 +0000 (01:42 +0000)]
Committing the patch in issue 2965, so that weakref dicts have a closer
interface to normal dictionaries.  keys(), values() and items() still return
iterators instead of views, but that can be fixed later (or not).

16 years agodb_incs is needed
Benjamin Peterson [Wed, 3 Sep 2008 23:30:49 +0000 (23:30 +0000)]
db_incs is needed

16 years agoclean up some more bsddb scraps
Benjamin Peterson [Wed, 3 Sep 2008 22:59:38 +0000 (22:59 +0000)]
clean up some more bsddb scraps

16 years agoIssue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
Facundo Batista [Wed, 3 Sep 2008 22:49:01 +0000 (22:49 +0000)]
Issue 600362: Relocated parse_qs() and parse_qsl(), from the cgi module
to the urlparse one.  Added a DeprecationWarning in the old module, it
will be deprecated in the future.  Docs and tests updated.

16 years agoBlocked revisions 66197 via svnmerge
Brett Cannon [Wed, 3 Sep 2008 22:47:09 +0000 (22:47 +0000)]
Blocked revisions 66197 via svnmerge

........
  r66197 | brett.cannon | 2008-09-03 15:45:11 -0700 (Wed, 03 Sep 2008) | 6 lines

  test_py3kwarn had been overlooked when test.test_support.catch_warning() was
  re-implemented to use warnings.catch_warnings() and had its API improved.

  Closes issue #3768.
  Code review by Benjamin Peterson.
........

16 years agoremove bsddb
Benjamin Peterson [Wed, 3 Sep 2008 22:30:12 +0000 (22:30 +0000)]
remove bsddb

16 years agoMerged revisions 66134,66136,66143,66154-66155,66190 via svnmerge from
Benjamin Peterson [Wed, 3 Sep 2008 22:22:18 +0000 (22:22 +0000)]
Merged revisions 66134,66136,66143,66154-66155,66190 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66134 | andrew.kuchling | 2008-09-01 20:13:42 -0500 (Mon, 01 Sep 2008) | 1 line

  Describe the __hash__ changes
........
  r66136 | andrew.kuchling | 2008-09-01 20:39:18 -0500 (Mon, 01 Sep 2008) | 1 line

  typo fix
........
  r66143 | mark.summerfield | 2008-09-02 02:23:16 -0500 (Tue, 02 Sep 2008) | 3 lines

  a typo
........
  r66154 | andrew.kuchling | 2008-09-02 08:06:00 -0500 (Tue, 02 Sep 2008) | 1 line

  Clarify example; add imports
........
  r66155 | andrew.kuchling | 2008-09-02 08:08:11 -0500 (Tue, 02 Sep 2008) | 1 line

  Add e-mail address
........
  r66190 | benjamin.peterson | 2008-09-03 16:48:20 -0500 (Wed, 03 Sep 2008) | 1 line

  3.0 still has the old threading names
........

16 years agoPython3.0 bsddb testsuite compatibility improvements
Jesus Cea [Wed, 3 Sep 2008 22:07:33 +0000 (22:07 +0000)]
Python3.0 bsddb testsuite compatibility improvements

16 years agoFixed wording of python --help text.
Christian Heimes [Wed, 3 Sep 2008 20:31:07 +0000 (20:31 +0000)]
Fixed wording of python --help text.
The -b option was still using the old name 'buffer' instead of 'bytearray'.

16 years agoThe decode is used to workaround this:
Jesus Cea [Wed, 3 Sep 2008 20:23:47 +0000 (20:23 +0000)]
The decode is used to workaround this:
http://mail.python.org/pipermail/python-3000/2008-September/014709.html

16 years agoIssue #3696: Error parsing arguments on OpenBSD <= 4.4 and Cygwin.
Antoine Pitrou [Wed, 3 Sep 2008 18:58:51 +0000 (18:58 +0000)]
Issue #3696: Error parsing arguments on OpenBSD <= 4.4 and Cygwin.

Patch by Amaury Forgeot d'Arc, reviewed by me.

16 years agoIssue #3697: "Fatal Python error: Cannot recover from stack overflow"
Antoine Pitrou [Wed, 3 Sep 2008 18:34:34 +0000 (18:34 +0000)]
Issue #3697: "Fatal Python error: Cannot recover from stack overflow"
could be easily encountered under Windows in debug mode when exercising
the recursion limit checking code, due to bogus handling of recursion
limit when USE_STACKCHEK was enabled.

Reviewed by Amaury Forgeot d'Arc on IRC.

16 years agomerge 66184 to fix issue3110 to py3k
Jesse Noller [Wed, 3 Sep 2008 18:22:19 +0000 (18:22 +0000)]
merge 66184 to fix issue3110 to py3k

16 years agoFix some leaks - Neal Norwitz
Jesus Cea [Wed, 3 Sep 2008 17:50:59 +0000 (17:50 +0000)]
Fix some leaks - Neal Norwitz

16 years agoMerged revisions 66174-66175,66177 via svnmerge from
Benjamin Peterson [Wed, 3 Sep 2008 02:27:16 +0000 (02:27 +0000)]
Merged revisions 66174-66175,66177 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r66174 | benjamin.peterson | 2008-09-02 19:21:32 -0500 (Tue, 02 Sep 2008) | 15 lines

  Merged revisions 66173 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66173 | benjamin.peterson | 2008-09-02 18:57:48 -0500 (Tue, 02 Sep 2008) | 8 lines

    A little 2to3 refactoring #3637

    This moves command line logic from refactor.py to a new file called
    main.py.  RefactoringTool now merely deals with the actual fixers and
    refactoring; options processing for example is abstracted out.

    This patch was reviewed by Gregory P. Smith.
  ........
................
  r66175 | benjamin.peterson | 2008-09-02 20:53:28 -0500 (Tue, 02 Sep 2008) | 1 line

  update 2to3 script from 2to3 trunk
................
  r66177 | benjamin.peterson | 2008-09-02 21:14:03 -0500 (Tue, 02 Sep 2008) | 9 lines

  Merged revisions 66176 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r66176 | benjamin.peterson | 2008-09-02 21:04:06 -0500 (Tue, 02 Sep 2008) | 1 line

    fix typo
  ........
................

16 years agoMerged revisions 66171 via svnmerge from
Amaury Forgeot d'Arc [Tue, 2 Sep 2008 23:22:56 +0000 (23:22 +0000)]
Merged revisions 66171 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66171 | amaury.forgeotdarc | 2008-09-03 01:19:56 +0200 (mer., 03 sept. 2008) | 9 lines

  Issue 2975: when compiling multiple extension modules with visual studio 2008
  from the same python instance, some environment variables (LIB, INCLUDE)
  would grow without limit.

  Tested with these statements:
      distutils.ccompiler.new_compiler().initialize()
      print os.environ['LIB']
  But I don't know how to turn them into reliable unit tests.
........

16 years agoMerged revisions 66167 via svnmerge from
Amaury Forgeot d'Arc [Tue, 2 Sep 2008 23:08:07 +0000 (23:08 +0000)]
Merged revisions 66167 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66167 | amaury.forgeotdarc | 2008-09-02 23:50:47 +0200 (mar., 02 sept. 2008) | 5 lines

  Attempt to correct the build files for the Microsoft VS7.1 compiler.

  I don't have a working VS7.1, but VS2005 can automatically convert
  the project and build a working python interpreter.
........

16 years agoMerged revisions 66166 via svnmerge from
Amaury Forgeot d'Arc [Tue, 2 Sep 2008 22:36:25 +0000 (22:36 +0000)]
Merged revisions 66166 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

Note: The Windows projects still use bsddb 4.4.20 on the py3k branch

........
  r66166 | amaury.forgeotdarc | 2008-09-02 23:17:05 +0200 (mar., 02 sept. 2008) | 2 lines

  Use vs9to8.py to refresh the Visual Studio 2005 build files.
........

16 years agoMerged revisions 66162 via svnmerge from
Hirokazu Yamamoto [Tue, 2 Sep 2008 20:41:25 +0000 (20:41 +0000)]
Merged revisions 66162 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66162 | hirokazu.yamamoto | 2008-09-03 05:36:44 +0900 | 2 lines

  Issue #3759: test_asyncore.py leaked handle.
  Reviewed by Amaury Forgeot d'Arc
........

16 years agoMerge r66115 forward to py3k, resolves issue3419
Jesse Noller [Tue, 2 Sep 2008 19:12:20 +0000 (19:12 +0000)]
Merge r66115 forward to py3k, resolves issue3419

16 years agounblock 66115 from merging
Jesse Noller [Tue, 2 Sep 2008 18:44:13 +0000 (18:44 +0000)]
unblock 66115 from merging

16 years agoAdd news item for #3719.
Marc-André Lemburg [Tue, 2 Sep 2008 12:10:46 +0000 (12:10 +0000)]
Add news item for #3719.

16 years agoMerged revisions 66144 via svnmerge from
Nick Coghlan [Tue, 2 Sep 2008 10:43:28 +0000 (10:43 +0000)]
Merged revisions 66144 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66144 | nick.coghlan | 2008-09-02 20:14:47 +1000 (Tue, 02 Sep 2008) | 1 line

  Issue 3747: Fix caching in ABCMeta.__subclasscheck__ (R: Georg Brandl)
........

16 years agoAdd quotes around the file name to avoid issues with spaces.
Marc-André Lemburg [Tue, 2 Sep 2008 10:33:55 +0000 (10:33 +0000)]
Add quotes around the file name to avoid issues with spaces.

Closes #3719.

Ported to 3.0 from r66145.

16 years agoThe _warnings module did not properly handle cases where strings were not being
Brett Cannon [Tue, 2 Sep 2008 04:01:42 +0000 (04:01 +0000)]
The _warnings module did not properly handle cases where strings were not being
passed in as the message to use for a warning. Fixed along with making the code
more robust against other errors where return values were not checked.

Closes issue 3639.
Code review by Benjamin Peterson.

16 years agoMerge in r66135. Doing also required removing a stale DeprecationWarning along
Brett Cannon [Tue, 2 Sep 2008 02:46:59 +0000 (02:46 +0000)]
Merge in r66135. Doing also required removing a stale DeprecationWarning along
with moving warnings.catch_warnings() over to keyword-only parameters for its
constructor (as documented in the 2.6 docs).

16 years agoImprove compatibility with Python3.0 testsuite
Jesus Cea [Tue, 2 Sep 2008 02:30:21 +0000 (02:30 +0000)]
Improve compatibility with Python3.0 testsuite

16 years agoMerged revisions 66045,66048-66049,66053,66060,66062-66063,66065,66067,66071-66074...
Benjamin Peterson [Tue, 2 Sep 2008 00:31:15 +0000 (00:31 +0000)]
Merged revisions 66045,66048-66049,66053,66060,66062-66063,66065,66067,66071-66074,66080,66082-66083,66090-66093,66097-66099,66103,66105,66110,66118 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66045 | andrew.kuchling | 2008-08-26 19:27:18 -0500 (Tue, 26 Aug 2008) | 1 line

  Trim whitespace; add a few updates
........
  r66048 | andrew.kuchling | 2008-08-26 19:45:02 -0500 (Tue, 26 Aug 2008) | 1 line

  Add an item and a note
........
  r66049 | andrew.kuchling | 2008-08-26 21:12:18 -0500 (Tue, 26 Aug 2008) | 1 line

  Add various items
........
  r66053 | georg.brandl | 2008-08-28 04:40:18 -0500 (Thu, 28 Aug 2008) | 2 lines

  #3711: .dll isn't a valid Python extension anymore.
........
  r66060 | armin.rigo | 2008-08-29 16:21:52 -0500 (Fri, 29 Aug 2008) | 3 lines

  A collection of crashers, all variants of the idea
  of issue #3720.
........
  r66062 | georg.brandl | 2008-08-30 04:49:36 -0500 (Sat, 30 Aug 2008) | 2 lines

  #3730: mention "server" attribute explicitly.
........
  r66063 | georg.brandl | 2008-08-30 04:52:44 -0500 (Sat, 30 Aug 2008) | 2 lines

  #3716: fix typo.
........
  r66065 | georg.brandl | 2008-08-30 05:03:09 -0500 (Sat, 30 Aug 2008) | 2 lines

  #3569: eval() also accepts "exec"able code objects.
........
  r66067 | georg.brandl | 2008-08-30 08:17:39 -0500 (Sat, 30 Aug 2008) | 2 lines

  super() actually returns a super object.
........
  r66071 | andrew.kuchling | 2008-08-30 10:19:57 -0500 (Sat, 30 Aug 2008) | 1 line

  Partial edits from revision and tidying pass
........
  r66072 | andrew.kuchling | 2008-08-30 10:21:23 -0500 (Sat, 30 Aug 2008) | 1 line

  Tidy up some sentences
........
  r66073 | andrew.kuchling | 2008-08-30 10:25:47 -0500 (Sat, 30 Aug 2008) | 1 line

  Correction from Antoine Pitrou: BufferedWriter and Reader support seek()
........
  r66074 | andrew.kuchling | 2008-08-30 11:44:54 -0500 (Sat, 30 Aug 2008) | 1 line

  Edit four more sections
........
  r66080 | georg.brandl | 2008-08-30 17:00:28 -0500 (Sat, 30 Aug 2008) | 2 lines

  Fix markup.
........
  r66082 | andrew.kuchling | 2008-08-30 17:56:54 -0500 (Sat, 30 Aug 2008) | 1 line

  More edits; markup fixes
........
  r66083 | andrew.kuchling | 2008-08-30 21:24:08 -0500 (Sat, 30 Aug 2008) | 1 line

  More edits
........
  r66090 | andrew.kuchling | 2008-08-31 09:29:31 -0500 (Sun, 31 Aug 2008) | 1 line

  Edit the library section, rearranging items to flow better and making lots of edits
........
  r66091 | andrew.kuchling | 2008-08-31 10:41:48 -0500 (Sun, 31 Aug 2008) | 1 line

  Last batch of edits; remove the 'other changes' section
........
  r66092 | andrew.kuchling | 2008-08-31 10:48:44 -0500 (Sun, 31 Aug 2008) | 1 line

  Update patch/bug count
........
  r66093 | gregory.p.smith | 2008-08-31 11:34:18 -0500 (Sun, 31 Aug 2008) | 3 lines

  issue3715: docstring representation of hex escaped string needs to be double
  escaped.
........
  r66097 | benjamin.peterson | 2008-09-01 09:13:43 -0500 (Mon, 01 Sep 2008) | 4 lines

  #3703 unhelpful _fileio.FileIO error message when trying to open a directory

  Reviewer: Gregory P. Smith
........
  r66098 | georg.brandl | 2008-09-01 09:15:55 -0500 (Mon, 01 Sep 2008) | 2 lines

  #3749: fix c'n'p errors.
........
  r66099 | benjamin.peterson | 2008-09-01 09:18:30 -0500 (Mon, 01 Sep 2008) | 4 lines

  Fix compilation when --without-threads is given #3683

  Reviewer: Georg Brandl, Benjamin Peterson
........
  r66103 | vinay.sajip | 2008-09-01 09:30:10 -0500 (Mon, 01 Sep 2008) | 1 line

  logging: fixed lack of use of encoding attribute specified on a stream.
........
  r66105 | vinay.sajip | 2008-09-01 09:33:59 -0500 (Mon, 01 Sep 2008) | 1 line

  logging: fixed lack of use of encoding attribute specified on a stream.
........
  r66110 | vinay.sajip | 2008-09-01 10:08:07 -0500 (Mon, 01 Sep 2008) | 1 line

  Added section about configuring logging in a library. Thanks to Thomas Heller for the idea.
........
  r66118 | vinay.sajip | 2008-09-01 12:44:14 -0500 (Mon, 01 Sep 2008) | 1 line

  Bug #3738: Documentation is now more accurate in describing handler close methods.
........

16 years agoPort Python 2.6 bsddb3 testdriver to Python 3.0
Jesus Cea [Tue, 2 Sep 2008 00:06:22 +0000 (00:06 +0000)]
Port Python 2.6 bsddb3 testdriver to Python 3.0

16 years agoBlocked revisions 65655,66088,66123 via svnmerge
Benjamin Peterson [Mon, 1 Sep 2008 23:32:29 +0000 (23:32 +0000)]
Blocked revisions 65655,66088,66123 via svnmerge

........
  r65655 | bill.janssen | 2008-08-12 11:31:21 -0500 (Tue, 12 Aug 2008) | 1 line

  remove duplicate close() from ssl.py; expose unwrap and add test for it
........
  r66088 | jesus.cea | 2008-08-31 09:00:51 -0500 (Sun, 31 Aug 2008) | 6 lines

  Update bsddb code to version 4.7.3pre2. This code should
  be compatible with Python 3.0, also.

    http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
........
  r66123 | jesus.cea | 2008-09-01 15:48:16 -0500 (Mon, 01 Sep 2008) | 1 line

  In Python3.0, "test.test_support" is renamed to "test.support".
........

16 years agoBlocked revisions 66127 via svnmerge
Benjamin Peterson [Mon, 1 Sep 2008 23:22:44 +0000 (23:22 +0000)]
Blocked revisions 66127 via svnmerge

........
  r66127 | benjamin.peterson | 2008-09-01 18:12:58 -0500 (Mon, 01 Sep 2008) | 4 lines

  remove py3k warnings about the threading api; update docs

  Reviewer: Benjamin Peterson
........

16 years agoremove the deprecation warnings for the old threading API; update the docs
Benjamin Peterson [Mon, 1 Sep 2008 23:09:31 +0000 (23:09 +0000)]
remove the deprecation warnings for the old threading API; update the docs

Reviewer: Benjamin Peterson

16 years agoIn Python3.0, "test.test_support" is renamed to "test.support".
Jesus Cea [Mon, 1 Sep 2008 20:48:51 +0000 (20:48 +0000)]
In Python3.0, "test.test_support" is renamed to "test.support".

16 years agoBlocked revisions 66119 via svnmerge
Amaury Forgeot d'Arc [Mon, 1 Sep 2008 20:37:50 +0000 (20:37 +0000)]
Blocked revisions 66119 via svnmerge

........
  r66119 | amaury.forgeotdarc | 2008-09-01 21:52:00 +0200 (lun., 01 sept. 2008) | 5 lines

  Issue #3751: str.rpartition would perform a left-partition when called with
  a unicode argument.

  will backport.
........

16 years agoMerged revisions 66117 via svnmerge from
Benjamin Peterson [Mon, 1 Sep 2008 19:56:06 +0000 (19:56 +0000)]
Merged revisions 66117 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r66117 | benjamin.peterson | 2008-09-01 12:17:22 -0500 (Mon, 01 Sep 2008) | 25 lines

  Merged revisions 65887,65889,65967-65968,65981 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r65887 | benjamin.peterson | 2008-08-19 17:45:04 -0500 (Tue, 19 Aug 2008) | 1 line

    allow the raw_input fixer to handle calls after the raw_input (ie. raw_input().split())
  ........
    r65889 | benjamin.peterson | 2008-08-19 18:11:03 -0500 (Tue, 19 Aug 2008) | 1 line

    no need for 2.4 compatibility now
  ........
    r65967 | benjamin.peterson | 2008-08-21 18:43:37 -0500 (Thu, 21 Aug 2008) | 1 line

    allow a Call to have no arguments
  ........
    r65968 | benjamin.peterson | 2008-08-21 18:45:13 -0500 (Thu, 21 Aug 2008) | 1 line

    add a fixer for sys.exc_info etc by Jeff Balogh #2357
  ........
    r65981 | benjamin.peterson | 2008-08-22 15:41:30 -0500 (Fri, 22 Aug 2008) | 1 line

    add a fixer to add parenthese for list and gen comps #2367
  ........
................

16 years agoBlocked revisions 66114-66115 via svnmerge
Benjamin Peterson [Mon, 1 Sep 2008 17:16:05 +0000 (17:16 +0000)]
Blocked revisions 66114-66115 via svnmerge

........
  r66114 | jesse.noller | 2008-09-01 11:47:25 -0500 (Mon, 01 Sep 2008) | 2 lines

  Submit Nick's patch for issue 3589, reviewed by jnoller
........
  r66115 | benjamin.peterson | 2008-09-01 12:10:46 -0500 (Mon, 01 Sep 2008) | 1 line

  revert r66114 for Jesse
........

16 years ago#3753: document that s* etc. are newer and preferred to s#.
Georg Brandl [Mon, 1 Sep 2008 16:45:35 +0000 (16:45 +0000)]
#3753: document that s* etc. are newer and preferred to s#.

16 years ago#3712: The memoryview object had a reference leak and didn't support cyclic garbage...
Antoine Pitrou [Mon, 1 Sep 2008 15:10:14 +0000 (15:10 +0000)]
#3712: The memoryview object had a reference leak and didn't support cyclic garbage collection.

Reviewed by Benjamin Peterson.

16 years agoMerged revisions 66104 via svnmerge from
Hirokazu Yamamoto [Mon, 1 Sep 2008 14:35:47 +0000 (14:35 +0000)]
Merged revisions 66104 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66104 | hirokazu.yamamoto | 2008-09-01 23:32:58 +0900 | 2 lines

  Issue #3748: platform.architecture() printed vogus message on windows.
  Reviewed by Marc-Andre Lemburg.
........

16 years agoBlocked revisions 66100 via svnmerge
Hirokazu Yamamoto [Mon, 1 Sep 2008 14:27:54 +0000 (14:27 +0000)]
Blocked revisions 66100 via svnmerge

........
  r66100 | hirokazu.yamamoto | 2008-09-01 23:24:04 +0900 | 3 lines

  Issue #3732: Backported r53335 to supress deprecation warning.
  Reviewed by Benjamin Peterson.
........

16 years agoissue3715: docstring representation of hex escaped string needs to be double
Gregory P. Smith [Sun, 31 Aug 2008 16:35:01 +0000 (16:35 +0000)]
issue3715: docstring representation of hex escaped string needs to be double
escaped.

16 years agobsddb code updated to version 4.7.3pre2. This code is the same than
Jesus Cea [Sun, 31 Aug 2008 14:12:11 +0000 (14:12 +0000)]
bsddb code updated to version 4.7.3pre2. This code is the same than
Python 2.6 one, since the intention is to keep an unified 2.x/3.x
codebase.

The Python code is automatically translated using "2to3". Please, do not
update this code in Python 3.0 by hand. Update the 2.6 one and then do
"2to3".

16 years agoMerged revisions 66085 (with modifications) via svnmerge from
Nick Coghlan [Sun, 31 Aug 2008 13:21:24 +0000 (13:21 +0000)]
Merged revisions 66085 (with modifications) via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66085 | nick.coghlan | 2008-08-31 23:10:50 +1000 (Sun, 31 Aug 2008) | 1 line

  Issue 2235: document the ability to block inheritance of __hash__ in the language reference
........

16 years agoMerged revisions 65487 (with heavy modifications for Py3k as well as some cleanups...
Nick Coghlan [Sun, 31 Aug 2008 12:40:14 +0000 (12:40 +0000)]
Merged revisions 65487 (with heavy modifications for Py3k as well as some cleanups of the type heirarchy) via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65487 | nick.coghlan | 2008-08-04 22:40:59 +1000 (Mon, 04 Aug 2008) | 1 line

  Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow).
........

16 years agoMerged revisions 66076 via svnmerge from
Georg Brandl [Sat, 30 Aug 2008 19:53:05 +0000 (19:53 +0000)]
Merged revisions 66076 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66076 | georg.brandl | 2008-08-30 21:03:43 +0200 (Sat, 30 Aug 2008) | 2 lines

  #3707: fix inf. recursion in pydoc topic search. Rev'd by Antoine.
........

16 years agoRemove outdated comment. Reviewed by Antoine.
Georg Brandl [Sat, 30 Aug 2008 19:21:01 +0000 (19:21 +0000)]
Remove outdated comment. Reviewed by Antoine.

16 years ago#3577: 3.0 is not installed as "python" on Unix.
Georg Brandl [Sat, 30 Aug 2008 09:58:30 +0000 (09:58 +0000)]
#3577: 3.0 is not installed as "python" on Unix.

16 years agoBlocked revisions 66058 via svnmerge
Antoine Pitrou [Fri, 29 Aug 2008 18:45:22 +0000 (18:45 +0000)]
Blocked revisions 66058 via svnmerge

........
  r66058 | antoine.pitrou | 2008-08-29 20:39:48 +0200 (ven., 29 août 2008) | 7 lines

  #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
  exception afterwards (for a subsequent parameter), the user code will
  not call PyBuffer_Release() and memory will leak.

  Reviewed by Amaury Forgeot d'Arc.
........

16 years ago#3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
Antoine Pitrou [Fri, 29 Aug 2008 18:37:05 +0000 (18:37 +0000)]
#3668: When PyArg_ParseTuple correctly parses a s* format, but raises an
exception afterwards (for a subsequent parameter), the user code will
not call PyBuffer_Release() and memory will leak.

Reviewed by Amaury Forgeot d'Arc.

16 years agoIssue 3611: in some cases (a __del__ re-raising an exception, when called from inside
Amaury Forgeot d'Arc [Fri, 29 Aug 2008 07:13:32 +0000 (07:13 +0000)]
Issue 3611: in some cases (a __del__ re-raising an exception, when called from inside
an 'except' clause), the exception __context__ would be reset to None.
This crases the interpreter if this precisely happens inside PyErr_SetObject.

- now the __context__ is properly preserved
- in any case, PyErr_SetObject now saves the current exc_value in a local variable, to
avoid such crashes in the future.

Reviewer: Antoine Pitrou.