]> granicus.if.org Git - python/log
python
16 years agoBlocked revisions 66043 via svnmerge
Antoine Pitrou [Tue, 26 Aug 2008 22:44:20 +0000 (22:44 +0000)]
Blocked revisions 66043 via svnmerge

........
  r66043 | antoine.pitrou | 2008-08-27 00:42:08 +0200 (mer., 27 août 2008) | 11 lines

  Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
  match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
  mechanism. In the process, fix a bug where isinstance() and issubclass(),
  when given a tuple of classes as second argument, were looking up
  __instancecheck__ / __subclasscheck__ on the tuple rather than on each
  type object.

  Reviewed by Benjamin Peterson and Raymond Hettinger.
........

16 years agoIssue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
Antoine Pitrou [Tue, 26 Aug 2008 22:40:48 +0000 (22:40 +0000)]
Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to
match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__
mechanism. In the process, fix a bug where isinstance() and issubclass(),
when given a tuple of classes as second argument, were looking up
__instancecheck__ / __subclasscheck__ on the tuple rather than on each
type object.

Reviewed by Benjamin Peterson and Raymond Hettinger.

16 years ago#3663: extra DECREF on syntax errors.
Antoine Pitrou [Tue, 26 Aug 2008 22:02:58 +0000 (22:02 +0000)]
#3663: extra DECREF on syntax errors.
Patch by Amaury Forgeot d'Arc, reviewed by Benjamin Peterson.

16 years agoBlocked revisions 66039 via svnmerge
Benjamin Peterson [Tue, 26 Aug 2008 17:14:31 +0000 (17:14 +0000)]
Blocked revisions 66039 via svnmerge

........
  r66039 | benjamin.peterson | 2008-08-26 12:08:40 -0500 (Tue, 26 Aug 2008) | 1 line

  sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str
........

16 years agomake bytes(o) respect __bytes__ #2415
Benjamin Peterson [Tue, 26 Aug 2008 16:46:47 +0000 (16:46 +0000)]
make bytes(o) respect __bytes__ #2415

This adds two new C-API functions: PyObject_Bytes and PyBytes_FromObject.

Reviewer: Barry

16 years agoMerged revisions 65910,65977,65980,65984,65986,66000,66011-66012,66014,66017,66020...
Benjamin Peterson [Mon, 25 Aug 2008 21:05:21 +0000 (21:05 +0000)]
Merged revisions 65910,65977,65980,65984,65986,66000,66011-66012,66014,66017,66020 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65910 | benjamin.peterson | 2008-08-20 09:07:59 -0500 (Wed, 20 Aug 2008) | 1 line

  fix up the multiprocessing docs a little
........
  r65977 | christian.heimes | 2008-08-22 14:47:25 -0500 (Fri, 22 Aug 2008) | 3 lines

  Silenced compiler warning
  Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used
  Reviewed by Benjamin Peterson
........
  r65980 | christian.heimes | 2008-08-22 15:10:27 -0500 (Fri, 22 Aug 2008) | 3 lines

  Fixed two format strings in the _collections module. For example
  Modules/_collectionsmodule.c:674: warning: format '%i' expects type 'int', but argument 2 has type 'Py_ssize_t'
  Reviewed by Benjamin Peterson
........
  r65984 | christian.heimes | 2008-08-22 16:23:47 -0500 (Fri, 22 Aug 2008) | 1 line

  d is the correct format string
........
  r65986 | mark.hammond | 2008-08-22 19:59:14 -0500 (Fri, 22 Aug 2008) | 2 lines

  Fix bug 3625: test issues on 64bit windows. r=pitrou
........
  r66000 | benjamin.peterson | 2008-08-23 15:27:43 -0500 (Sat, 23 Aug 2008) | 5 lines

  #3643 add a few more checks to _testcapi to prevent segfaults

  Author: Victor Stinner
  Reviewer: Benjamin Peterson
........
  r66011 | neal.norwitz | 2008-08-24 12:27:43 -0500 (Sun, 24 Aug 2008) | 1 line

  Ignore a couple more tests that report leaks inconsistently.
........
  r66012 | neal.norwitz | 2008-08-24 12:29:53 -0500 (Sun, 24 Aug 2008) | 1 line

  Use the actual blacklist of leaky tests
........
  r66014 | georg.brandl | 2008-08-24 13:11:07 -0500 (Sun, 24 Aug 2008) | 2 lines

  #3654: fix duplicate test method name. Review by Benjamin P.
........
  r66017 | benjamin.peterson | 2008-08-24 16:55:03 -0500 (Sun, 24 Aug 2008) | 1 line

  remove note about unimplemented feature
........
  r66020 | brett.cannon | 2008-08-24 18:15:19 -0500 (Sun, 24 Aug 2008) | 1 line

  Clarify that some attributes/methods are listed somewhat separately because they are not part of the threading API.
........

16 years agoMerged revisions 66028 via svnmerge from
Neal Norwitz [Mon, 25 Aug 2008 03:55:03 +0000 (03:55 +0000)]
Merged revisions 66028 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66028 | neal.norwitz | 2008-08-24 20:52:40 -0700 (Sun, 24 Aug 2008) | 1 line

  Try to reduce the flakiness of this test
........

16 years agoMerged revisions 66026 via svnmerge from
Neal Norwitz [Mon, 25 Aug 2008 03:05:54 +0000 (03:05 +0000)]
Merged revisions 66026 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66026 | neal.norwitz | 2008-08-24 20:03:25 -0700 (Sun, 24 Aug 2008) | 6 lines

  Use bytes as return type from recv_bytes() methods.  Not sure why this only
  affects some buildbots.

  R=Brett
  TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
........

16 years agoMerged revisions 66023 via svnmerge from
Neal Norwitz [Mon, 25 Aug 2008 01:53:32 +0000 (01:53 +0000)]
Merged revisions 66023 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66023 | neal.norwitz | 2008-08-24 18:50:24 -0700 (Sun, 24 Aug 2008) | 6 lines

  Fix problem reported by pychecker where AuthenticationError wasn't imported.
  Add some test coverage to this code.  More tests should be added (TODO added).

  R=Brett
  TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
........

16 years agoTry to fix the sporadic problems on the Solaris buildbot with removing
Neal Norwitz [Mon, 25 Aug 2008 01:04:16 +0000 (01:04 +0000)]
Try to fix the sporadic problems on the Solaris buildbot with removing
the directories/files.

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_posix

16 years agoIssue #3657: Fix uninitialized memory read when pickling longs.
Neal Norwitz [Sun, 24 Aug 2008 23:50:08 +0000 (23:50 +0000)]
Issue #3657: Fix uninitialized memory read when pickling longs.

The conversion to the unicode API was incorrect, it should use bytes.
repr is a bad variable name.  The use is overloaded, but I'll leave
that to fix later.

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py -uall
valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
./python -E -tt ./Lib/test/regrtest.py test_pickletools

16 years agoMerged revisions 66018 via svnmerge from
Neal Norwitz [Sun, 24 Aug 2008 22:07:28 +0000 (22:07 +0000)]
Merged revisions 66018 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r66018 | neal.norwitz | 2008-08-24 15:03:05 -0700 (Sun, 24 Aug 2008) | 6 lines

  #3662: Fix segfault introduced when fixing memory leaks.

  TESTED=./python -E -tt ./Lib/test/regrtest.py test_fileio
  R (approach from bug)=Amaury and Benjamin
........

16 years agoFix gdbinit to handle new types/APIs.
Neal Norwitz [Sun, 24 Aug 2008 20:59:23 +0000 (20:59 +0000)]
Fix gdbinit to handle new types/APIs.

16 years agoBlocked revisions 66013 via svnmerge
Benjamin Peterson [Sun, 24 Aug 2008 18:12:21 +0000 (18:12 +0000)]
Blocked revisions 66013 via svnmerge

........
  r66013 | benjamin.peterson | 2008-08-24 13:10:20 -0500 (Sun, 24 Aug 2008) | 4 lines

  generate py3k warnings on __getslice__, __delslice__, and __setslice__

  Reviewer: Brett Cannon
........

16 years agoFixed yet another compiler warning of 64bit builds.
Christian Heimes [Sun, 24 Aug 2008 16:15:19 +0000 (16:15 +0000)]
Fixed yet another compiler warning of 64bit builds.
Reviewed by Georg Brandl.

16 years agoCloses release blocker #3627.
Neal Norwitz [Sun, 24 Aug 2008 07:08:55 +0000 (07:08 +0000)]
Closes release blocker #3627.

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

TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt)

........
  r65335 | neal.norwitz | 2008-07-31 10:17:14 -0700 (Thu, 31 Jul 2008) | 1 line

  Security patches from Apple:  prevent int overflow when allocating memory
........

16 years agoUpdate props for r66007.
Neal Norwitz [Sun, 24 Aug 2008 05:54:11 +0000 (05:54 +0000)]
Update props for r66007.

16 years agoMerged revisions 66006 via svnmerge from
Neal Norwitz [Sun, 24 Aug 2008 05:48:10 +0000 (05:48 +0000)]
Merged revisions 66006 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)

........
  r66006 | neal.norwitz | 2008-08-23 22:04:52 -0700 (Sat, 23 Aug 2008) | 25 lines

  Fix:
   * crashes on memory allocation failure found with failmalloc
   * memory leaks found with valgrind
   * compiler warnings in opt mode which would lead to invalid memory reads
   * problem using wrong name in decimal module reported by pychecker

  Update the valgrind suppressions file with new leaks that are small/one-time
  leaks we don't care about (ie, they are too hard to fix).

  TBR=barry
  TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes)
    in opt mode:
    valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
      ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \
                          -x test_logging test_ssl test_multiprocessing
    valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \
      ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
    for i in `seq 1 4000` ; do
      LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \
          ./python -c pass
    done

  At least some of these fixes should probably be backported to 2.5.
........

16 years agoBlocked revisions 66004 via svnmerge
Benjamin Peterson [Sat, 23 Aug 2008 21:48:02 +0000 (21:48 +0000)]
Blocked revisions 66004 via svnmerge

........
  r66004 | benjamin.peterson | 2008-08-23 16:40:15 -0500 (Sat, 23 Aug 2008) | 1 line

  fix warning
........

16 years agobring the PyFile docs into sync with reality
Benjamin Peterson [Sat, 23 Aug 2008 21:04:47 +0000 (21:04 +0000)]
bring the PyFile docs into sync with reality

16 years ago#3643 add more checks to _testcapi to prevent segfaults
Benjamin Peterson [Sat, 23 Aug 2008 20:32:27 +0000 (20:32 +0000)]
#3643 add more checks to _testcapi to prevent segfaults

Author: Victor Stinner
Reviewer: Benjamin Peterson

16 years agoadd NEWS note and test for last commit
Benjamin Peterson [Sat, 23 Aug 2008 20:19:17 +0000 (20:19 +0000)]
add NEWS note and test for last commit

16 years agofix #3653 Python could segfault if invalid values were passed to sys.excepthook
Benjamin Peterson [Sat, 23 Aug 2008 20:08:07 +0000 (20:08 +0000)]
fix #3653 Python could segfault if invalid values were passed to sys.excepthook

Author: Daniel Diniz
Reviewer: Georg Brandl

16 years agoBlocked revisions 65995 via svnmerge
Georg Brandl [Sat, 23 Aug 2008 15:21:08 +0000 (15:21 +0000)]
Blocked revisions 65995 via svnmerge

........
  r65995 | georg.brandl | 2008-08-23 17:15:31 +0200 (Sat, 23 Aug 2008) | 2 lines

  Small updates to types member docs, backport from r65994.
........

16 years agoRemove outdated example from types module doc. Since the types left
Georg Brandl [Sat, 23 Aug 2008 15:14:57 +0000 (15:14 +0000)]
Remove outdated example from types module doc. Since the types left
in the modules are obscure, I didn't add a substitute example.

16 years ago#1276: Add temporary encoding aliases for non-supported Mac CJK
Hye-Shik Chang [Sat, 23 Aug 2008 08:03:03 +0000 (08:03 +0000)]
#1276: Add temporary encoding aliases for non-supported Mac CJK
encodings that are detected as system defaults in MacOS with CJK
locales.  Will be replaced by properly-implemented codecs in 3.1.

16 years ago#3650: fix a reference leak in bytes.split('x')
Amaury Forgeot d'Arc [Fri, 22 Aug 2008 22:05:20 +0000 (22:05 +0000)]
#3650: fix a reference leak in bytes.split('x')
Actually the same as r65785, but trunk only has bytearray.

16 years agoMerged revisions 65982 via svnmerge from
Benjamin Peterson [Fri, 22 Aug 2008 20:50:59 +0000 (20:50 +0000)]
Merged revisions 65982 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65982 | benjamin.peterson | 2008-08-22 15:43:48 -0500 (Fri, 22 Aug 2008) | 4 lines

  fix a few get_name() calls and turn then to .name

  Reviewer: Christian Heimes
........

16 years agoMerged revisions 65978 via svnmerge from
Christian Heimes [Fri, 22 Aug 2008 19:56:47 +0000 (19:56 +0000)]
Merged revisions 65978 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65978 | christian.heimes | 2008-08-22 21:55:54 +0200 (Fri, 22 Aug 2008) | 3 lines

  Silenced a compiler warning in the sqlite module
  Modules/_sqlite/row.c:187: warning: suggest parentheses around && within ||
  Reviewed by Benjamin Peterson
........

16 years agoMerged revisions 65975 via svnmerge from
Christian Heimes [Fri, 22 Aug 2008 19:38:45 +0000 (19:38 +0000)]
Merged revisions 65975 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65975 | christian.heimes | 2008-08-22 21:34:15 +0200 (Fri, 22 Aug 2008) | 1 line

  Changed type of numarenas from uint to size_t to silence a GCC warning on 64bit OSes. Reviewed by Benjamin Peterson.
........

16 years agoMerged revisions 65971 via svnmerge from
Robert Schuppenies [Fri, 22 Aug 2008 08:27:53 +0000 (08:27 +0000)]
Merged revisions 65971 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65971 | robert.schuppenies | 2008-08-22 10:03:43 +0200 (Fri, 22 Aug 2008) | 2 lines

  Issue #1342811: Fixed broken patch. Reviewed by benjamin.peterson.
........

16 years agoBlocked revisions 65922,65926 via svnmerge
Benjamin Peterson [Fri, 22 Aug 2008 00:57:24 +0000 (00:57 +0000)]
Blocked revisions 65922,65926 via svnmerge

........
  r65922 | barry.warsaw | 2008-08-20 20:15:08 -0500 (Wed, 20 Aug 2008) | 2 lines

  Bump to 2.6b3.
........
  r65926 | barry.warsaw | 2008-08-20 21:12:56 -0500 (Wed, 20 Aug 2008) | 1 line

  done with the release
........

16 years agoMerged revisions 65964 via svnmerge from
Mark Dickinson [Thu, 21 Aug 2008 21:40:15 +0000 (21:40 +0000)]
Merged revisions 65964 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65964 | mark.dickinson | 2008-08-21 22:38:38 +0100 (Thu, 21 Aug 2008) | 7 lines

  issue 3633: Solaris allows fullwidth Unicode digits in isxdigit, so
  rewrite float.fromhex to only allow ASCII hex digits on all platforms.
  (Tests for this are already present, but the test_float failures
  on Solaris hadn't been noticed before.)

  Reviewed by Antoine Pitrou.
........

16 years agoMerged revisions 65958 via svnmerge from
Mark Dickinson [Thu, 21 Aug 2008 20:05:56 +0000 (20:05 +0000)]
Merged revisions 65958 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65958 | mark.dickinson | 2008-08-21 21:02:24 +0100 (Thu, 21 Aug 2008) | 5 lines

  Fix float.fromhex test to give additional information on failure.  This
  change is aimed at diagnosing issue 3633 (test_float fails on Solaris).

  Reviewed by Benjamin Peterson
........

16 years agomove test to a better location
Benjamin Peterson [Thu, 21 Aug 2008 17:00:40 +0000 (17:00 +0000)]
move test to a better location

16 years agoPyObject_Unicode doesn't exist anymore
Benjamin Peterson [Thu, 21 Aug 2008 16:51:15 +0000 (16:51 +0000)]
PyObject_Unicode doesn't exist anymore

16 years agodone with 3.0
Barry Warsaw [Thu, 21 Aug 2008 03:02:47 +0000 (03:02 +0000)]
done with 3.0

16 years agoTagging 3.0b3
Barry Warsaw [Thu, 21 Aug 2008 02:40:46 +0000 (02:40 +0000)]
Tagging 3.0b3

16 years agoBumping to 3.0b3 v3.0b3
Barry Warsaw [Thu, 21 Aug 2008 02:39:51 +0000 (02:39 +0000)]
Bumping to 3.0b3

16 years agoapply a fix for #3611 where the current exception context was deleted with a generato...
Benjamin Peterson [Wed, 20 Aug 2008 23:23:34 +0000 (23:23 +0000)]
apply a fix for #3611 where the current exception context was deleted with a generator causing a segfault

16 years ago#3614: Correct a typo in xmlrpc.client.
Amaury Forgeot d'Arc [Wed, 20 Aug 2008 21:35:50 +0000 (21:35 +0000)]
#3614: Correct a typo in xmlrpc.client.

16 years agoBlocked revisions 65917 via svnmerge
Hirokazu Yamamoto [Wed, 20 Aug 2008 16:20:46 +0000 (16:20 +0000)]
Blocked revisions 65917 via svnmerge

........
  r65917 | hirokazu.yamamoto | 2008-08-21 01:15:28 +0900 | 1 line

  Reverted r65900. See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
........

16 years agoReverted r65901 and uses GetVolumeInformationW because string in py3k is unicode.
Hirokazu Yamamoto [Wed, 20 Aug 2008 16:18:19 +0000 (16:18 +0000)]
Reverted r65901 and uses GetVolumeInformationW because string in py3k is unicode.
See http://mail.python.org/pipermail/python-checkins/2008-August/073116.html

16 years agoBlocked revisions 65914 via svnmerge
Guido van Rossum [Wed, 20 Aug 2008 15:02:34 +0000 (15:02 +0000)]
Blocked revisions 65914 via svnmerge

........
  r65914 | guido.van.rossum | 2008-08-20 08:01:50 -0700 (Wed, 20 Aug 2008) | 2 lines

  News for the tp_flags change.
........

16 years agoBlocked revisions 65912 via svnmerge
Guido van Rossum [Wed, 20 Aug 2008 14:59:20 +0000 (14:59 +0000)]
Blocked revisions 65912 via svnmerge

........
  r65912 | guido.van.rossum | 2008-08-20 07:57:20 -0700 (Wed, 20 Aug 2008) | 2 lines

  News for the imageop fix.
........

16 years agoMerged revisions 65908 via svnmerge from
Hirokazu Yamamoto [Wed, 20 Aug 2008 13:42:16 +0000 (13:42 +0000)]
Merged revisions 65908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65908 | hirokazu.yamamoto | 2008-08-20 22:14:07 +0900 | 1 line

  Issue #3612: Added some missing basic types in ctypes.wintypes.
........

16 years agorevert 65897
Benjamin Peterson [Wed, 20 Aug 2008 12:55:31 +0000 (12:55 +0000)]
revert 65897

16 years agoFor some reason sys.stdin may be None on Windows, and makes test_multiprocessing...
Amaury Forgeot d'Arc [Wed, 20 Aug 2008 09:04:46 +0000 (09:04 +0000)]
For some reason sys.stdin may be None on Windows, and makes test_multiprocessing fail.
Since we are closing the fileno anyway, the best is to skip this part.

Now test_multiprocessing should pass on Windows.

16 years agoPartially revert r65883 to let the tests pass.
Amaury Forgeot d'Arc [Wed, 20 Aug 2008 08:58:40 +0000 (08:58 +0000)]
Partially revert r65883 to let the tests pass.

I am working on the proper fix, which is to use the custom pickler in connection.send(),
instead of the standard pickle.dumps().

16 years agoTiny fix of IGNORECASE plus removal of a UNICODE reference.
Mark Summerfield [Wed, 20 Aug 2008 07:40:18 +0000 (07:40 +0000)]
Tiny fix of IGNORECASE plus removal of a UNICODE reference.

16 years agoRevised all texts concerning the ASCII flag: (1) put Unicode case first
Mark Summerfield [Wed, 20 Aug 2008 07:34:41 +0000 (07:34 +0000)]
Revised all texts concerning the ASCII flag: (1) put Unicode case first
(since that's the default), (2) made all descriptions consistent, (3)
dropped mention of re.LOCALE in most places since it is not recommended.

16 years agoMerged revisions 65900 via svnmerge from
Hirokazu Yamamoto [Wed, 20 Aug 2008 04:17:24 +0000 (04:17 +0000)]
Merged revisions 65900 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65900 | hirokazu.yamamoto | 2008-08-20 13:13:28 +0900 | 1 line

  fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)
........

16 years agoMerged revisions 65885,65892,65894,65898 via svnmerge from
Benjamin Peterson [Wed, 20 Aug 2008 02:33:00 +0000 (02:33 +0000)]
Merged revisions 65885,65892,65894,65898 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65885 | benjamin.peterson | 2008-08-19 17:06:11 -0500 (Tue, 19 Aug 2008) | 1 line

  check that the parser module can handle the new keyword syntax
........
  r65892 | benjamin.peterson | 2008-08-19 20:27:30 -0500 (Tue, 19 Aug 2008) | 1 line

  add a NEWS note for new args syntax
........
  r65894 | benjamin.peterson | 2008-08-19 20:44:45 -0500 (Tue, 19 Aug 2008) | 2 lines

  newSymbolTable is not public API
........
  r65898 | benjamin.peterson | 2008-08-19 21:15:42 -0500 (Tue, 19 Aug 2008) | 1 line

  fix silly errors of mine
........

16 years agoreturn sets instead of tuples from some symtable methods
Benjamin Peterson [Wed, 20 Aug 2008 02:06:00 +0000 (02:06 +0000)]
return sets instead of tuples from some symtable methods

16 years agokill the obsolete symtable.Symbol methods
Benjamin Peterson [Wed, 20 Aug 2008 02:00:14 +0000 (02:00 +0000)]
kill the obsolete symtable.Symbol methods

16 years agoBlocked revisions 65806,65880,65891,65893 via svnmerge
Benjamin Peterson [Wed, 20 Aug 2008 01:51:10 +0000 (01:51 +0000)]
Blocked revisions 65806,65880,65891,65893 via svnmerge

........
  r65806 | marc-andre.lemburg | 2008-08-18 06:13:45 -0500 (Mon, 18 Aug 2008) | 3 lines

  Restore Python 2.3 compatibility and remove "with" usage.
........
  r65880 | guido.van.rossum | 2008-08-19 16:02:04 -0500 (Tue, 19 Aug 2008) | 2 lines

  Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.
........
  r65891 | amaury.forgeotdarc | 2008-08-19 19:08:47 -0500 (Tue, 19 Aug 2008) | 2 lines

  follow-up of issue3473: update the compiler package to recognize the new syntax.
........
  r65893 | benjamin.peterson | 2008-08-19 20:42:01 -0500 (Tue, 19 Aug 2008) | 1 line

  deprecate some useless, noop methods in symtable
........

16 years agoBlocked revisions 65016 via svnmerge
Amaury Forgeot d'Arc [Tue, 19 Aug 2008 23:30:42 +0000 (23:30 +0000)]
Blocked revisions 65016 via svnmerge

........
  r65016 | jesse.noller | 2008-07-16 16:32:36 +0200 (mer., 16 juil. 2008) | 2 lines

  Apply Amaury's patch to multiprocessing for issue 3125, removes the copy_reg and replaces it with ForkingPickler.register(), which should resolve the conflict with the global registry/ctypes
........

16 years agodisable test_nis; it hangs
Benjamin Peterson [Tue, 19 Aug 2008 23:02:38 +0000 (23:02 +0000)]
disable test_nis; it hangs

16 years agoIssue #2394: implement more of the memoryview API.
Antoine Pitrou [Tue, 19 Aug 2008 22:09:34 +0000 (22:09 +0000)]
Issue #2394: implement more of the memoryview API.

16 years agoMerged revisions 65658,65869,65882 via svnmerge from
Benjamin Peterson [Tue, 19 Aug 2008 21:42:13 +0000 (21:42 +0000)]
Merged revisions 65658,65869,65882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r65658 | bill.janssen | 2008-08-12 12:09:57 -0500 (Tue, 12 Aug 2008) | 1 line

  update ssl documentation
................
  r65869 | benjamin.peterson | 2008-08-19 14:27:53 -0500 (Tue, 19 Aug 2008) | 1 line

  fix a little typo
................
  r65882 | benjamin.peterson | 2008-08-19 16:07:15 -0500 (Tue, 19 Aug 2008) | 9 lines

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

  ........
    r65876 | benjamin.peterson | 2008-08-19 15:54:52 -0500 (Tue, 19 Aug 2008) | 1 line

    apply a fix I think will help Windows
  ........
................

16 years agoIssue #3125: Remove copy_reg in multiprocessing and replace it with
Amaury Forgeot d'Arc [Tue, 19 Aug 2008 21:30:55 +0000 (21:30 +0000)]
Issue #3125: Remove copy_reg in multiprocessing and replace it with
ForkingPickler.register() to resolve conflict with ctypes.

16 years agoRemove four uu-encoded image files that were once useful for testing
Guido van Rossum [Tue, 19 Aug 2008 21:04:40 +0000 (21:04 +0000)]
Remove four uu-encoded image files that were once useful for testing
imgfile, rgbimg and imageop.  None of those modules exist any more...

16 years agoFix a failure in bsddb tests, following the changes in regular expression semantics
Antoine Pitrou [Tue, 19 Aug 2008 21:01:52 +0000 (21:01 +0000)]
Fix a failure in bsddb tests, following the changes in regular expression semantics

16 years agoallow keyword args after *args in a function call
Benjamin Peterson [Tue, 19 Aug 2008 20:57:10 +0000 (20:57 +0000)]
allow keyword args after *args in a function call

16 years agoBlocked revisions 65874 via svnmerge
Guido van Rossum [Tue, 19 Aug 2008 20:15:03 +0000 (20:15 +0000)]
Blocked revisions 65874 via svnmerge

........
  r65874 | guido.van.rossum | 2008-08-19 13:13:02 -0700 (Tue, 19 Aug 2008) | 3 lines

  Hopeful fix for issue 1878: remove Py_TPFLAGS_HAVE_VERSION_TAG from
  Py_TPFLAGS_DEFAULT when not building the core.
........

16 years agoBlocked revisions 65872 via svnmerge
Benjamin Peterson [Tue, 19 Aug 2008 19:55:35 +0000 (19:55 +0000)]
Blocked revisions 65872 via svnmerge

........
  r65872 | benjamin.peterson | 2008-08-19 14:52:46 -0500 (Tue, 19 Aug 2008) | 1 line

  allow keyword args to be passed in after *args #3473
........

16 years agoMerged revisions 65868,65870 via svnmerge from
Thomas Heller [Tue, 19 Aug 2008 19:49:49 +0000 (19:49 +0000)]
Merged revisions 65868,65870 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65868 | thomas.heller | 2008-08-19 21:25:04 +0200 (Di, 19 Aug 2008) | 3 lines

  Fix a regression introduced by rev. 63792: ctypes function pointers
  that are COM methods must have a boolean True value.
........
  r65870 | thomas.heller | 2008-08-19 21:40:23 +0200 (Di, 19 Aug 2008) | 1 line

  COM method code is windows specific
........

16 years agoMerged revisions 65864 via svnmerge from
Benjamin Peterson [Tue, 19 Aug 2008 19:17:39 +0000 (19:17 +0000)]
Merged revisions 65864 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65864 | jesse.noller | 2008-08-19 14:06:19 -0500 (Tue, 19 Aug 2008) | 2 lines

  issue3352: clean up the multiprocessing API to remove many get_/set_ methods and convert them to properties. Update the docs and the examples included.
........

16 years agoBlocked revisions 65865 via svnmerge
Benjamin Peterson [Tue, 19 Aug 2008 19:09:04 +0000 (19:09 +0000)]
Blocked revisions 65865 via svnmerge

........
  r65865 | benjamin.peterson | 2008-08-19 14:07:38 -0500 (Tue, 19 Aug 2008) | 1 line

  silence callable warning in hmac
........

16 years agoMerged revisions 65780,65782,65785,65809,65812,65834,65846,65859,65861 via svnmerge...
Benjamin Peterson [Tue, 19 Aug 2008 18:57:56 +0000 (18:57 +0000)]
Merged revisions 65780,65782,65785,65809,65812,65834,65846,65859,65861 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65780 | antoine.pitrou | 2008-08-17 15:15:07 -0500 (Sun, 17 Aug 2008) | 3 lines

  #3580: fix a failure in test_os
........
  r65782 | benjamin.peterson | 2008-08-17 15:33:45 -0500 (Sun, 17 Aug 2008) | 1 line

  set svn:executable on a script
........
  r65785 | amaury.forgeotdarc | 2008-08-17 16:05:18 -0500 (Sun, 17 Aug 2008) | 3 lines

  Fix a refleak in bytearray.split and bytearray.rsplit, detected by
     regrtest.py -R:: test_bytes
........
  r65809 | nick.coghlan | 2008-08-18 07:42:46 -0500 (Mon, 18 Aug 2008) | 1 line

  Belated NEWS entry for r65642
........
  r65812 | nick.coghlan | 2008-08-18 08:32:19 -0500 (Mon, 18 Aug 2008) | 1 line

  Fix typo
........
  r65834 | amaury.forgeotdarc | 2008-08-18 14:23:47 -0500 (Mon, 18 Aug 2008) | 4 lines

  #2234 distutils failed with mingw binutils 2.18.50.20080109.
  Be less strict when parsing these version numbers,
  they don't necessarily follow the python numbering scheme.
........
  r65846 | georg.brandl | 2008-08-18 18:09:49 -0500 (Mon, 18 Aug 2008) | 2 lines

  Fix grammar.
........
  r65859 | thomas.heller | 2008-08-19 12:47:13 -0500 (Tue, 19 Aug 2008) | 2 lines

  Fix strange character in the docstring.
........
  r65861 | benjamin.peterson | 2008-08-19 12:59:23 -0500 (Tue, 19 Aug 2008) | 1 line

  get unparse to at least unparse its self
........

16 years ago#3560: cleanup C memoryview API
Antoine Pitrou [Tue, 19 Aug 2008 18:22:14 +0000 (18:22 +0000)]
#3560: cleanup C memoryview API

16 years ago#2834: Change re module semantics, so that str and bytes mixing is forbidden,
Antoine Pitrou [Tue, 19 Aug 2008 17:56:33 +0000 (17:56 +0000)]
#2834: Change re module semantics, so that str and bytes mixing is forbidden,
and str (unicode) patterns get full unicode matching by default. The re.ASCII
flag is also introduced to ask for ASCII matching instead.

16 years agoMerged revisions 65652-65653 via svnmerge from
Benjamin Peterson [Tue, 19 Aug 2008 17:16:56 +0000 (17:16 +0000)]
Merged revisions 65652-65653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65652 | ronald.oussoren | 2008-08-12 07:29:13 -0500 (Tue, 12 Aug 2008) | 2 lines

  Fix typo in the `arch` commandline
........
  r65653 | ronald.oussoren | 2008-08-12 07:41:45 -0500 (Tue, 12 Aug 2008) | 3 lines

  Another fix for 4-way universal builds, use the right #ifndef guard
  to detect the OSX 10.5 SDK.
........

16 years agoMerged revisions 65855 via svnmerge from
Benjamin Peterson [Tue, 19 Aug 2008 16:49:39 +0000 (16:49 +0000)]
Merged revisions 65855 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r65855 | benjamin.peterson | 2008-08-19 11:41:34 -0500 (Tue, 19 Aug 2008) | 13 lines

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

  ........
    r65853 | benjamin.peterson | 2008-08-19 11:09:09 -0500 (Tue, 19 Aug 2008) | 1 line

    apply a patch for #3131. this solves the problem for the moment, but we should do some refactoring to get display logic out of RefactoringTool
  ........
    r65854 | benjamin.peterson | 2008-08-19 11:37:38 -0500 (Tue, 19 Aug 2008) | 1 line

    another quick fix to get lib2to3 to work
  ........
................

16 years agofix possible error
Benjamin Peterson [Tue, 19 Aug 2008 14:32:56 +0000 (14:32 +0000)]
fix possible error

16 years agomake test_threading more robust for real
Benjamin Peterson [Tue, 19 Aug 2008 14:12:01 +0000 (14:12 +0000)]
make test_threading more robust for real

16 years agoMerged revisions 65681-65682,65684 via svnmerge from
Thomas Heller [Tue, 19 Aug 2008 06:38:12 +0000 (06:38 +0000)]
Merged revisions 65681-65682,65684 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65681 | thomas.heller | 2008-08-14 21:10:48 +0200 (Do, 14 Aug 2008) | 4 lines

  issue #3554: ctypes.string_at and ctypes.wstring_at must use the
  pythonapi calling convention so that the GIL is held and error return
  values are checked.
........
  r65682 | thomas.heller | 2008-08-14 22:04:38 +0200 (Do, 14 Aug 2008) | 2 lines

  Try to fix the test on 64-bit platforms.
........
  r65684 | thomas.heller | 2008-08-14 22:19:18 +0200 (Do, 14 Aug 2008) | 2 lines

  Disable the test until I have one that works.
........

16 years agoFix and enable a test that now works.
Thomas Heller [Tue, 19 Aug 2008 06:36:52 +0000 (06:36 +0000)]
Fix and enable a test that now works.

16 years agomake test more robust
Benjamin Peterson [Tue, 19 Aug 2008 01:34:34 +0000 (01:34 +0000)]
make test more robust

16 years agofix get_name usage
Benjamin Peterson [Mon, 18 Aug 2008 23:15:52 +0000 (23:15 +0000)]
fix get_name usage

16 years agoFix typo.
Georg Brandl [Mon, 18 Aug 2008 23:07:41 +0000 (23:07 +0000)]
Fix typo.

16 years agoupdate NEWS
Benjamin Peterson [Mon, 18 Aug 2008 22:40:25 +0000 (22:40 +0000)]
update NEWS

16 years agoMerged revisions 65842 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 22:38:41 +0000 (22:38 +0000)]
Merged revisions 65842 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65842 | benjamin.peterson | 2008-08-18 17:29:19 -0500 (Mon, 18 Aug 2008) | 1 line

  update the threading docs to account for recent changes
........

16 years agoadd full deprecation warnings for old threading APIs
Benjamin Peterson [Mon, 18 Aug 2008 22:10:13 +0000 (22:10 +0000)]
add full deprecation warnings for old threading APIs

16 years agoBlocked revisions 65839 via svnmerge
Benjamin Peterson [Mon, 18 Aug 2008 21:55:15 +0000 (21:55 +0000)]
Blocked revisions 65839 via svnmerge

........
  r65839 | benjamin.peterson | 2008-08-18 16:53:29 -0500 (Mon, 18 Aug 2008) | 4 lines

  add py3k warnings for old threading APIs

  they will still live in 3.0 but it can't hurt
........

16 years ago- Issue #3300: make urllib.parse.[un]quote() default to UTF-8.
Guido van Rossum [Mon, 18 Aug 2008 21:44:30 +0000 (21:44 +0000)]
- Issue #3300: make urllib.parse.[un]quote() default to UTF-8.
  Code contributed by Matt Giuca.  quote() now encodes the input
  before quoting, unquote() decodes after unquoting.  There are
  new arguments to change the encoding and errors settings.
  There are also new APIs to skip the encode/decode steps.
  [un]quote_plus() are also affected.

16 years agoMerged revisions 65829 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 21:11:09 +0000 (21:11 +0000)]
Merged revisions 65829 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65829 | benjamin.peterson | 2008-08-18 13:39:57 -0500 (Mon, 18 Aug 2008) | 1 line

  fix old API names in test_ssl
........

16 years agoUnblocked revisions 65829 via svnmerge
Benjamin Peterson [Mon, 18 Aug 2008 21:02:26 +0000 (21:02 +0000)]
Unblocked revisions 65829 via svnmerge

........
  r65829 | benjamin.peterson | 2008-08-18 13:39:57 -0500 (Mon, 18 Aug 2008) | 1 line

  fix old API names in test_ssl
........

16 years agofix set_daemon usage in subprocess
Benjamin Peterson [Mon, 18 Aug 2008 19:08:51 +0000 (19:08 +0000)]
fix set_daemon usage in subprocess

16 years agofix bsddb get_name and set_daemon usage
Benjamin Peterson [Mon, 18 Aug 2008 19:01:20 +0000 (19:01 +0000)]
fix bsddb get_name and set_daemon usage

16 years agoBlocked revisions 65829 via svnmerge
Benjamin Peterson [Mon, 18 Aug 2008 18:41:21 +0000 (18:41 +0000)]
Blocked revisions 65829 via svnmerge

........
  r65829 | benjamin.peterson | 2008-08-18 13:39:57 -0500 (Mon, 18 Aug 2008) | 1 line

  fix old API names in test_ssl
........

16 years agoMerged revisions 65828 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 18:40:08 +0000 (18:40 +0000)]
Merged revisions 65828 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65828 | benjamin.peterson | 2008-08-18 13:31:58 -0500 (Mon, 18 Aug 2008) | 1 line

  patch up multiprocessing until it's API can be changed too
........

16 years agoMerged revisions 65826 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 18:16:46 +0000 (18:16 +0000)]
Merged revisions 65826 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65826 | benjamin.peterson | 2008-08-18 13:13:17 -0500 (Mon, 18 Aug 2008) | 1 line

  bring back the old API
........

16 years agoMerged revisions 65824 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 18:09:21 +0000 (18:09 +0000)]
Merged revisions 65824 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65824 | benjamin.peterson | 2008-08-18 13:01:43 -0500 (Mon, 18 Aug 2008) | 1 line

  change a few uses of the threading APIs
........

16 years agoBlocked revisions 65822 via svnmerge
Benjamin Peterson [Mon, 18 Aug 2008 17:52:22 +0000 (17:52 +0000)]
Blocked revisions 65822 via svnmerge

........
  r65822 | benjamin.peterson | 2008-08-18 12:45:09 -0500 (Mon, 18 Aug 2008) | 1 line

  backport threading property changes
........

16 years agochange is_daemon, set_daemon, get_name, and set_name to properties
Benjamin Peterson [Mon, 18 Aug 2008 17:33:47 +0000 (17:33 +0000)]
change is_daemon, set_daemon, get_name, and set_name to properties

I'm add add warnings and backport this to 2.6 soon

16 years agoBlocked revisions 65814 via svnmerge
Eric Smith [Mon, 18 Aug 2008 17:16:20 +0000 (17:16 +0000)]
Blocked revisions 65814 via svnmerge

........
  r65814 | eric.smith | 2008-08-18 10:27:38 -0400 (Mon, 18 Aug 2008) | 12 lines

  Backport of r63826.

  Optimization of str.format() for cases with str, unicode, int, long,
  and float arguments.  This gives about 30% speed improvement for the
  simplest (but most common) cases.  This patch skips the __format__
  dispatch, and also avoids creating an object to hold the format_spec.

  Unfortunately there's a complication in 2.6 with int, long, and float
  because they always expect str format_specs.  So in the unicode
  version of this optimization, just check for unicode objects.  int,
  float, long, and str can be added later, if needed.
........

16 years agoMerged revisions 65818 via svnmerge from
Benjamin Peterson [Mon, 18 Aug 2008 16:45:31 +0000 (16:45 +0000)]
Merged revisions 65818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65818 | benjamin.peterson | 2008-08-18 11:40:03 -0500 (Mon, 18 Aug 2008) | 4 lines

  change threading.getIdent to a property

  This is new in 2.6 so now need to worry about backwards compatibility :)
........

16 years agofix dependencies after rename
Benjamin Peterson [Mon, 18 Aug 2008 16:08:02 +0000 (16:08 +0000)]
fix dependencies after rename

16 years agoMerged revisions 65810 via svnmerge from
Nick Coghlan [Mon, 18 Aug 2008 13:18:16 +0000 (13:18 +0000)]
Merged revisions 65810 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65810 | nick.coghlan | 2008-08-18 23:14:22 +1000 (Mon, 18 Aug 2008) | 1 line

  Issue 2235: document PyObject_HashNotImplemented
........