]> granicus.if.org Git - python/log
python
15 years agoBlocked revisions 69685 via svnmerge
Benjamin Peterson [Mon, 16 Feb 2009 21:02:16 +0000 (21:02 +0000)]
Blocked revisions 69685 via svnmerge

........
  r69685 | raymond.hettinger | 2009-02-16 14:39:12 -0600 (Mon, 16 Feb 2009) | 1 line

  Add GC support to count() objects.  Backport candidate.
........

15 years agoAdd GC support to count() objects.
Raymond Hettinger [Mon, 16 Feb 2009 20:50:56 +0000 (20:50 +0000)]
Add GC support to count() objects.

15 years agoremove another use of cmp()
Benjamin Peterson [Mon, 16 Feb 2009 18:22:15 +0000 (18:22 +0000)]
remove another use of cmp()

15 years agono 2.3 compat in the py3k lib #3676
Benjamin Peterson [Mon, 16 Feb 2009 16:20:10 +0000 (16:20 +0000)]
no 2.3 compat in the py3k lib #3676

15 years agoraise more generic Exception() instead of RuntimeError() #5281
Benjamin Peterson [Mon, 16 Feb 2009 16:15:34 +0000 (16:15 +0000)]
raise more generic Exception() instead of RuntimeError() #5281

15 years agoRemoved message about compatibility with 2.3.
Facundo Batista [Mon, 16 Feb 2009 15:41:37 +0000 (15:41 +0000)]
Removed message about compatibility with 2.3.

15 years agoMerged revisions 69666 via svnmerge from
Eric Smith [Mon, 16 Feb 2009 12:37:11 +0000 (12:37 +0000)]
Merged revisions 69666 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69666 | eric.smith | 2009-02-16 04:56:39 -0500 (Mon, 16 Feb 2009) | 1 line

  Added Ross Light to ACKS, for bug 4285 (r69331).
........

15 years agoIssue #5249: time.strftime returned malformed string when format string
Hirokazu Yamamoto [Mon, 16 Feb 2009 09:13:20 +0000 (09:13 +0000)]
Issue #5249: time.strftime returned malformed string when format string
contained non ascii character on windows.

15 years agoDocument importlib.machinery.PathFinder.
Brett Cannon [Mon, 16 Feb 2009 04:18:01 +0000 (04:18 +0000)]
Document importlib.machinery.PathFinder.

15 years agoFix more places in Objects/longobject.c where it's silently assumed that
Mark Dickinson [Sun, 15 Feb 2009 17:27:41 +0000 (17:27 +0000)]
Fix more places in Objects/longobject.c where it's silently assumed that
sizeof(digit) < sizeof(int).

15 years agoBlocked revisions 69639 via svnmerge
Mark Dickinson [Sun, 15 Feb 2009 15:49:16 +0000 (15:49 +0000)]
Blocked revisions 69639 via svnmerge

........
  r69639 | mark.dickinson | 2009-02-15 15:48:39 +0000 (Sun, 15 Feb 2009) | 2 lines

  A few more minor fixed in longobject.c
........

15 years agoA few more type fixes for py3k that were missed in r69635
Mark Dickinson [Sun, 15 Feb 2009 15:14:57 +0000 (15:14 +0000)]
A few more type fixes for py3k that were missed in r69635

15 years agoMerged revisions 69634 via svnmerge from
Mark Dickinson [Sun, 15 Feb 2009 11:04:38 +0000 (11:04 +0000)]
Merged revisions 69634 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69634 | mark.dickinson | 2009-02-15 10:13:41 +0000 (Sun, 15 Feb 2009) | 6 lines

  Issue #5260: Various portability and standards compliance fixes, optimizations
  and cleanups in Objects/longobject.c.  The most significant change is that
  longs now use less memory:  average savings are 2 bytes per long on 32-bit
  systems and 6 bytes per long on 64-bit systems.  (This memory saving already
  exists in py3k.)
........

15 years agoChange importlib.machinery.PathFinder to not have implicit semantics (that's
Brett Cannon [Sun, 15 Feb 2009 05:48:13 +0000 (05:48 +0000)]
Change importlib.machinery.PathFinder to not have implicit semantics (that's
not handled by importlib._bootstrap._DefaultPathFinder).

15 years agoAdd a NOTE about the new specific semantics for failed loads.
Brett Cannon [Sun, 15 Feb 2009 05:46:50 +0000 (05:46 +0000)]
Add a NOTE about the new specific semantics for failed loads.

15 years agoMerged revisions 69617 via svnmerge from
Benjamin Peterson [Sat, 14 Feb 2009 17:00:16 +0000 (17:00 +0000)]
Merged revisions 69617 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69617 | benjamin.peterson | 2009-02-14 10:51:03 -0600 (Sat, 14 Feb 2009) | 1 line

  we're no longer using CVS, so this doesn't have to be binary
........

15 years agoBlocked revisions 69610 via svnmerge
Tarek Ziadé [Sat, 14 Feb 2009 14:36:38 +0000 (14:36 +0000)]
Blocked revisions 69610 via svnmerge

........
  r69610 | tarek.ziade | 2009-02-14 15:12:30 +0100 (Sat, 14 Feb 2009) | 1 line

  Replace variable
........

15 years agoMerged revisions 69609 via svnmerge from
Tarek Ziadé [Sat, 14 Feb 2009 14:35:51 +0000 (14:35 +0000)]
Merged revisions 69609 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69609 | tarek.ziade | 2009-02-14 15:10:23 +0100 (Sat, 14 Feb 2009) | 1 line

  Fix for #5257: refactored all tests in distutils, so they use a temporary directory.
........

15 years agoAdd keyword argument support to itertools.count().
Raymond Hettinger [Sat, 14 Feb 2009 04:21:49 +0000 (04:21 +0000)]
Add keyword argument support to itertools.count().

15 years agoMerged revisions 69602 via svnmerge from
Tarek Ziadé [Fri, 13 Feb 2009 23:48:11 +0000 (23:48 +0000)]
Merged revisions 69602 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69602 | tarek.ziade | 2009-02-14 00:41:57 +0100 (Sat, 14 Feb 2009) | 1 line

  fix the environ for distutils test_util
........

15 years agoMerged revisions 69598 via svnmerge from
Tarek Ziadé [Fri, 13 Feb 2009 23:04:17 +0000 (23:04 +0000)]
Merged revisions 69598 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69598 | tarek.ziade | 2009-02-14 00:00:43 +0100 (Sat, 14 Feb 2009) | 1 line

  Fixed #4524: distutils build_script command failed with --with-suffix=3
........

15 years agoMerged revisions 69594 via svnmerge from
Tarek Ziadé [Fri, 13 Feb 2009 22:26:15 +0000 (22:26 +0000)]
Merged revisions 69594 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69594 | tarek.ziade | 2009-02-13 23:22:03 +0100 (Fri, 13 Feb 2009) | 1 line

  Issue #2461: added tests for distutils.util
........

15 years agoFix typos in version numbers.
Martin v. Löwis [Fri, 13 Feb 2009 20:27:39 +0000 (20:27 +0000)]
Fix typos in version numbers.

15 years agoMerged revisions 69585 via svnmerge from
Tarek Ziadé [Fri, 13 Feb 2009 16:23:57 +0000 (16:23 +0000)]
Merged revisions 69585 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69585 | tarek.ziade | 2009-02-13 17:13:16 +0100 (Fri, 13 Feb 2009) | 1 line

  reverted leak fix, to use the one done in py3k branch (r67382)
........

15 years agoMerged revisions 69582-69583 via svnmerge from
Antoine Pitrou [Fri, 13 Feb 2009 14:01:05 +0000 (14:01 +0000)]
Merged revisions 69582-69583 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69582 | antoine.pitrou | 2009-02-13 14:52:33 +0100 (ven., 13 févr. 2009) | 4 lines

  Issue #5186: Reduce hash collisions for objects with no __hash__ method by
  rotating the object pointer by 4 bits to the right.
........
  r69583 | antoine.pitrou | 2009-02-13 14:57:40 +0100 (ven., 13 févr. 2009) | 3 lines

  Fix compiler warning (gcc)
........

15 years agoBlocked revisions 69578 via svnmerge
Georg Brandl [Fri, 13 Feb 2009 11:10:15 +0000 (11:10 +0000)]
Blocked revisions 69578 via svnmerge

........
  r69578 | georg.brandl | 2009-02-13 12:03:59 +0100 (Fr, 13 Feb 2009) | 1 line

  #3694: add test for fix committed in r66693.
........

15 years ago#3694: fix an "XXX undetected error" leak in struct.
Georg Brandl [Fri, 13 Feb 2009 11:01:07 +0000 (11:01 +0000)]
#3694: fix an "XXX undetected error" leak in struct.

15 years agopart of #3613: fix get_host_info() usage of base64.encodestring().
Georg Brandl [Fri, 13 Feb 2009 10:50:01 +0000 (10:50 +0000)]
part of #3613: fix get_host_info() usage of base64.encodestring().

15 years agoBlocked revisions 69573 via svnmerge
Georg Brandl [Fri, 13 Feb 2009 10:44:28 +0000 (10:44 +0000)]
Blocked revisions 69573 via svnmerge

........
  r69573 | georg.brandl | 2009-02-13 11:44:17 +0100 (Fr, 13 Feb 2009) | 1 line

  #3734: document complex coercing behavior better.
........

15 years agoBlocked revisions 69570 via svnmerge
Georg Brandl [Fri, 13 Feb 2009 10:42:52 +0000 (10:42 +0000)]
Blocked revisions 69570 via svnmerge

........
  r69570 | georg.brandl | 2009-02-13 11:40:14 +0100 (Fr, 13 Feb 2009) | 1 line

  #4894: document "newurl" parameter to redirect_request().
........

15 years ago#4894: document "newurl" parameter to redirect_request().
Georg Brandl [Fri, 13 Feb 2009 10:40:43 +0000 (10:40 +0000)]
#4894: document "newurl" parameter to redirect_request().

15 years agoMerged revisions 69566 via svnmerge from
Tarek Ziadé [Fri, 13 Feb 2009 09:15:20 +0000 (09:15 +0000)]
Merged revisions 69566 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69566 | tarek.ziade | 2009-02-13 10:12:33 +0100 (Fri, 13 Feb 2009) | 1 line

  #5158: added documentation on the depends option in distutils extensions
........

15 years agoMerged revisions 69562 via svnmerge from
Georg Brandl [Fri, 13 Feb 2009 09:11:32 +0000 (09:11 +0000)]
Merged revisions 69562 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69562 | georg.brandl | 2009-02-13 10:08:34 +0100 (Fr, 13 Feb 2009) | 2 lines

  Add links to the other versions we have in stock.
........

15 years agoMerged revisions 69364-69365,69409-69410,69413,69417,69435,69442,69447,69495,69519...
Benjamin Peterson [Fri, 13 Feb 2009 02:50:59 +0000 (02:50 +0000)]
Merged revisions 69364-69365,69409-69410,69413,69417,69435,69442,69447,69495,69519-69521 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69364 | kristjan.jonsson | 2009-02-06 04:17:34 -0600 (Fri, 06 Feb 2009) | 1 line

  Fix a number of Win32ErrorTests error cases.  chmod wasn't being tested.  'access' never raises an error.
........
  r69365 | armin.rigo | 2009-02-06 05:46:26 -0600 (Fri, 06 Feb 2009) | 2 lines

  Ivan on IRC in #twisted reported this crasher.
........
  r69409 | georg.brandl | 2009-02-07 06:21:17 -0600 (Sat, 07 Feb 2009) | 1 line

  #5174: fix wrong file closing in example.
........
  r69410 | neil.schemenauer | 2009-02-07 08:53:31 -0600 (Sat, 07 Feb 2009) | 4 lines

  Fix broken test in test_hotshot.  Treating the current directory as an
  empty file is sloppy and non-portable.  Use NamedTemporaryFile to make
  an empty file.
........
  r69413 | neil.schemenauer | 2009-02-07 12:35:16 -0600 (Sat, 07 Feb 2009) | 2 lines

  Add test for issue #999042, explict global statement works.
........
  r69417 | benjamin.peterson | 2009-02-07 17:01:19 -0600 (Sat, 07 Feb 2009) | 1 line

  document individual 2to3 fixers
........
  r69435 | benjamin.peterson | 2009-02-08 08:38:13 -0600 (Sun, 08 Feb 2009) | 1 line

  document numliterals fixer
........
  r69442 | benjamin.peterson | 2009-02-08 09:14:57 -0600 (Sun, 08 Feb 2009) | 1 line

  a few edits and typos
........
  r69447 | vinay.sajip | 2009-02-08 13:06:08 -0600 (Sun, 08 Feb 2009) | 2 lines

  Issue #5170: Fixed Unicode output bug in logging and added test case. This is a regression which did not occur in 2.5.
........
  r69495 | kristjan.jonsson | 2009-02-10 07:32:24 -0600 (Tue, 10 Feb 2009) | 1 line

  Issue 4804.  Add a function to test the validity of file descriptors on Windows, and stop using global runtime settings to silence the warnings / assertions.
........
  r69519 | gregory.p.smith | 2009-02-11 17:45:25 -0600 (Wed, 11 Feb 2009) | 3 lines

  Issue #1008086: Fixes socket.inet_aton() to always return 4 bytes even
  on LP64 platforms (most 64-bit Linux, bsd, unix systems).
........
  r69520 | benjamin.peterson | 2009-02-11 21:50:00 -0600 (Wed, 11 Feb 2009) | 1 line

  os.fsync() should be used to ensure that data is written to disk
........
  r69521 | benjamin.peterson | 2009-02-11 22:17:04 -0600 (Wed, 11 Feb 2009) | 1 line

  no need for this __bases__ trick anymore
........

15 years agoBlocked revisions 69522,69525,69528,69530,69546 via svnmerge
Benjamin Peterson [Fri, 13 Feb 2009 01:35:28 +0000 (01:35 +0000)]
Blocked revisions 69522,69525,69528,69530,69546 via svnmerge

........
  r69522 | raymond.hettinger | 2009-02-11 23:39:46 -0600 (Wed, 11 Feb 2009) | 3 lines

  Issue 5032:  added a step argument to itertools.count() and allowed non-integer arguments.
........
  r69525 | raymond.hettinger | 2009-02-12 04:16:19 -0600 (Thu, 12 Feb 2009) | 1 line

  Fix spaces/tabs in example.
........
  r69528 | raymond.hettinger | 2009-02-12 06:04:26 -0600 (Thu, 12 Feb 2009) | 1 line

  Add an extra testcase.
........
  r69530 | raymond.hettinger | 2009-02-12 06:43:01 -0600 (Thu, 12 Feb 2009) | 1 line

  One more test.
........
  r69546 | mark.dickinson | 2009-02-12 11:55:42 -0600 (Thu, 12 Feb 2009) | 2 lines

  Typo fix.
........

15 years agoMerged revisions 69551 via svnmerge from
Tarek Ziadé [Thu, 12 Feb 2009 21:02:07 +0000 (21:02 +0000)]
Merged revisions 69551 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69551 | tarek.ziade | 2009-02-12 21:56:21 +0100 (Thu, 12 Feb 2009) | 1 line

  fixing the leak introduced in r69304
........

15 years agoIssue 4998: restore utility of __slots__ on Fraction.
Mark Dickinson [Thu, 12 Feb 2009 17:58:36 +0000 (17:58 +0000)]
Issue 4998: restore utility of __slots__ on Fraction.
(forward merge of r68813).

15 years agoFix for issue5224 ("Update Shell Profile.command" contains wrong Python version on...
Ronald Oussoren [Thu, 12 Feb 2009 16:08:14 +0000 (16:08 +0000)]
Fix for issue5224 ("Update Shell Profile.command" contains wrong Python version on OSX)

15 years agoThis fixes issue3883 (text on the buttons in the preferences panel for IDLE doesn...
Ronald Oussoren [Thu, 12 Feb 2009 16:02:11 +0000 (16:02 +0000)]
This fixes issue3883 (text on the buttons in the preferences panel for IDLE doesn't fit on OSX)

15 years agoThis fixes issue5143 and includes a test.
Ronald Oussoren [Thu, 12 Feb 2009 15:55:38 +0000 (15:55 +0000)]
This fixes issue5143 and includes a test.

Issue5143 notes that getpath.c and main.c pass a 'char*' where
a 'wchar_t*' is expected on OSX.

15 years agoUpdate the ReadMe and Welcome files that are used by the OSX binary
Ronald Oussoren [Thu, 12 Feb 2009 15:24:51 +0000 (15:24 +0000)]
Update the ReadMe and Welcome files that are used by the OSX binary
installer. Fixes issue5226. Patch by Ned Deily.

15 years agoFix for issue5196, patch by Ned Deily.
Ronald Oussoren [Thu, 12 Feb 2009 15:18:15 +0000 (15:18 +0000)]
Fix for issue5196, patch by Ned Deily.

15 years agoFix for issue5195, a patch by Ned Deily
Ronald Oussoren [Thu, 12 Feb 2009 15:12:03 +0000 (15:12 +0000)]
Fix for issue5195, a patch by Ned Deily

15 years agoFix for issue5194, based on a patch by Ned Deily.
Ronald Oussoren [Thu, 12 Feb 2009 15:01:44 +0000 (15:01 +0000)]
Fix for issue5194, based on a patch by Ned Deily.

15 years agoOne more test.
Raymond Hettinger [Thu, 12 Feb 2009 12:53:53 +0000 (12:53 +0000)]
One more test.

15 years agoAdd an extra testcase.
Raymond Hettinger [Thu, 12 Feb 2009 12:08:18 +0000 (12:08 +0000)]
Add an extra testcase.

15 years agoFix spaces/tabs in example.
Raymond Hettinger [Thu, 12 Feb 2009 10:19:59 +0000 (10:19 +0000)]
Fix spaces/tabs in example.

15 years agoFixes Issue #3745: Fix hashlib to always reject unicode and non
Gregory P. Smith [Thu, 12 Feb 2009 07:35:29 +0000 (07:35 +0000)]
Fixes Issue #3745: Fix hashlib to always reject unicode and non
buffer-api supporting objects as input no matter how it was compiled
(built in implementations or external openssl library).

15 years agoIssue 5032: added a step argument to itertools.count() and allowed non-integer argum...
Raymond Hettinger [Thu, 12 Feb 2009 06:28:27 +0000 (06:28 +0000)]
Issue 5032:  added a step argument to itertools.count() and allowed non-integer arguments.

15 years agoIssue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.
Mark Dickinson [Wed, 11 Feb 2009 17:04:37 +0000 (17:04 +0000)]
Issue #4910:  PyNumber_Int is deprecated in 3.0.1; will be removed in 3.1.

15 years agoBlocked revisions 69509 via svnmerge
Benjamin Peterson [Wed, 11 Feb 2009 04:10:53 +0000 (04:10 +0000)]
Blocked revisions 69509 via svnmerge

........
  r69509 | raymond.hettinger | 2009-02-10 18:06:17 -0600 (Tue, 10 Feb 2009) | 1 line

  Clean-up named tuple docs.
........

15 years agoIssue #4631: Fix urlopen() result when an HTTP response uses chunked encoding.
Antoine Pitrou [Wed, 11 Feb 2009 00:39:14 +0000 (00:39 +0000)]
Issue #4631: Fix urlopen() result when an HTTP response uses chunked encoding.

15 years agoClean-up named tuple docs.
Raymond Hettinger [Wed, 11 Feb 2009 00:20:02 +0000 (00:20 +0000)]
Clean-up named tuple docs.

15 years ago(The fix has been slightly adjusted.)
Thomas Heller [Tue, 10 Feb 2009 18:59:04 +0000 (18:59 +0000)]
(The fix has been slightly adjusted.)

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

........
  r69505 | thomas.heller | 2009-02-10 19:43:01 +0100 (Di, 10 Feb 2009) | 3 lines

  Issue#5203: ctypes segfaults when passing a unicode string to a
  function without argtypes, if HAVE_USABLE_WCHAR_T is false.
........

15 years agoMerged revisions 69500 via svnmerge from
Mark Dickinson [Tue, 10 Feb 2009 16:18:22 +0000 (16:18 +0000)]
Merged revisions 69500 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69500 | mark.dickinson | 2009-02-10 16:17:16 +0000 (Tue, 10 Feb 2009) | 4 lines

  _testcapi depends on testcapi_long.h

  Thanks Lisandro Dalcin.
........

15 years agoMerged revisions 69498 via svnmerge from
Mark Dickinson [Tue, 10 Feb 2009 16:13:25 +0000 (16:13 +0000)]
Merged revisions 69498 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69498 | mark.dickinson | 2009-02-10 15:46:50 +0000 (Tue, 10 Feb 2009) | 6 lines

  Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for
  negative arguments.  Previously, it raised TypeError.

  Thanks Lisandro Dalcin.
........

15 years agoMerged revisions 69494 via svnmerge from
Hirokazu Yamamoto [Tue, 10 Feb 2009 14:27:19 +0000 (14:27 +0000)]
Merged revisions 69494 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69494 | hirokazu.yamamoto | 2009-02-10 22:31:28 +0900 | 1 line

  Fixed svn:eol-style.
........

15 years agoMerged revisions 69489-69490 via svnmerge from
Martin v. Löwis [Tue, 10 Feb 2009 13:13:30 +0000 (13:13 +0000)]
Merged revisions 69489-69490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69489 | martin.v.loewis | 2009-02-10 14:09:19 +0100 (Di, 10 Feb 2009) | 1 line

  Issue #5134: Silence compiler warnings when compiling sqlite with VC++.
........
  r69490 | martin.v.loewis | 2009-02-10 14:12:12 +0100 (Di, 10 Feb 2009) | 1 line

  Set eol-style to native
........

15 years agoMerged revisions 69485 via svnmerge from
Tarek Ziadé [Tue, 10 Feb 2009 12:36:33 +0000 (12:36 +0000)]
Merged revisions 69485 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69485 | tarek.ziade | 2009-02-10 13:31:09 +0100 (Tue, 10 Feb 2009) | 1 line

  Fixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib
........

15 years agoMerged revisions 69466,69480 via svnmerge from
Benjamin Peterson [Tue, 10 Feb 2009 02:41:10 +0000 (02:41 +0000)]
Merged revisions 69466,69480 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69466 | raymond.hettinger | 2009-02-09 12:39:41 -0600 (Mon, 09 Feb 2009) | 3 lines

  Issue 5171: itertools.product docstring missing 'repeat' argument
........
  r69480 | raymond.hettinger | 2009-02-09 19:24:05 -0600 (Mon, 09 Feb 2009) | 1 line

  Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames.
........

15 years agoThis header was supposed to be committed in r69476
Guilherme Polo [Tue, 10 Feb 2009 02:20:49 +0000 (02:20 +0000)]
This header was supposed to be committed in r69476

15 years agoMerged revisions 69481 via svnmerge from
Brett Cannon [Tue, 10 Feb 2009 02:10:16 +0000 (02:10 +0000)]
Merged revisions 69481 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69481 | brett.cannon | 2009-02-09 18:07:38 -0800 (Mon, 09 Feb 2009) | 4 lines

  compileall used the ctime of bytecode and source to determine if the bytecode
  should be recreated. This created a timing hole. Fixed by just doing what
  import does; check the mtime and magic number.
........

15 years agoMerged revisions 69474 via svnmerge from
Guilherme Polo [Mon, 9 Feb 2009 22:35:27 +0000 (22:35 +0000)]
Merged revisions 69474 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69474 | guilherme.polo | 2009-02-09 18:57:45 -0200 (Mon, 09 Feb 2009) | 1 line

  Enforcing Tk 8.3.1 requirement.
........

15 years agoMerged revisions 69473 via svnmerge from
Guilherme Polo [Mon, 9 Feb 2009 22:33:59 +0000 (22:33 +0000)]
Merged revisions 69473 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69473 | guilherme.polo | 2009-02-09 18:50:27 -0200 (Mon, 09 Feb 2009) | 3 lines

  Fixed issue #5122: Synchronize tk load failure check to prevent a
  potential deadlock.
........

15 years agoAdd a NOTE that alternative VMs should be supported by importlib in a nicer
Brett Cannon [Mon, 9 Feb 2009 21:51:29 +0000 (21:51 +0000)]
Add a NOTE that alternative VMs should be supported by importlib in a nicer
fashion by factoring out bytecode support.

15 years agoMerged revisions 69460,69467,69470 via svnmerge from
Guilherme Polo [Mon, 9 Feb 2009 20:40:42 +0000 (20:40 +0000)]
Merged revisions 69460,69467,69470 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69460 | guilherme.polo | 2009-02-09 14:09:17 -0200 (Mon, 09 Feb 2009) | 1 line

  Turned setup_master public
........
  r69467 | guilherme.polo | 2009-02-09 17:21:21 -0200 (Mon, 09 Feb 2009) | 2 lines

  Some tests for Tkinter.Text.search
........
  r69470 | guilherme.polo | 2009-02-09 17:57:04 -0200 (Mon, 09 Feb 2009) | 1 line

  Checking for tk availability before continuing (basically the same that is done in test_ttk_guionly)
........

15 years agoMerged revisions 69459 via svnmerge from
Mark Dickinson [Mon, 9 Feb 2009 17:15:59 +0000 (17:15 +0000)]
Merged revisions 69459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69459 | mark.dickinson | 2009-02-09 14:18:43 +0000 (Mon, 09 Feb 2009) | 3 lines

  Issue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.
  It now forces its argument to double before testing for infinity.
........

15 years agoMerged revisions 69461 via svnmerge from
Guilherme Polo [Mon, 9 Feb 2009 16:44:24 +0000 (16:44 +0000)]
Merged revisions 69461 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69461 | guilherme.polo | 2009-02-09 14:41:09 -0200 (Mon, 09 Feb 2009) | 3 lines

  Fixed issue #4890: Handle empty text search pattern in
  Tkinter.Text.search
........

15 years agofix len() when __len__() returns a non number type #5137
Benjamin Peterson [Sun, 8 Feb 2009 21:07:20 +0000 (21:07 +0000)]
fix len() when __len__() returns a non number type #5137

15 years agoBlocked revisions 69443 via svnmerge
Mark Dickinson [Sun, 8 Feb 2009 17:39:43 +0000 (17:39 +0000)]
Blocked revisions 69443 via svnmerge

........
  r69443 | mark.dickinson | 2009-02-08 17:33:11 +0000 (Sun, 08 Feb 2009) | 2 lines

  Silence 'arg may be used uninitialized in this function' warning from gcc.
........

15 years agoMerged revisions 69436 via svnmerge from
Mark Dickinson [Sun, 8 Feb 2009 15:09:21 +0000 (15:09 +0000)]
Merged revisions 69436 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69436 | mark.dickinson | 2009-02-08 14:42:28 +0000 (Sun, 08 Feb 2009) | 10 lines

  Issue #789290: make sure that hash(2**63) == hash(2.**63) on 64-bit
  platforms.  The previous code was fragile, depending on the twin
  accidents that:

    (1) in C, casting the double value 2.**63 to long returns the integer
        value -2**63, and
    (2) in Python, hash(-2**63) == hash(2**63).

  There's already a test for this in test_hash.
........

15 years agoremove memoryview.__str__ #5182
Benjamin Peterson [Sun, 8 Feb 2009 15:00:52 +0000 (15:00 +0000)]
remove memoryview.__str__ #5182

15 years agoBlocked revisions 69433 via svnmerge
Mark Dickinson [Sun, 8 Feb 2009 14:00:21 +0000 (14:00 +0000)]
Blocked revisions 69433 via svnmerge

........
  r69433 | mark.dickinson | 2009-02-08 13:58:10 +0000 (Sun, 08 Feb 2009) | 2 lines

  Remove redundant assignment in _PyObject_LengthHint
........

15 years agoIssue #1717: add a DeprecationWarning in 3.x on type initialization
Mark Dickinson [Sun, 8 Feb 2009 11:02:10 +0000 (11:02 +0000)]
Issue #1717: add a DeprecationWarning in 3.x on type initialization
for types that implement tp_reserved (formerly tp_compare) but
not tp_richcompare.

15 years agoFix broken socket.makefile emulation in test_urllib
Nick Coghlan [Sun, 8 Feb 2009 04:01:00 +0000 (04:01 +0000)]
Fix broken socket.makefile emulation in test_urllib

15 years agoMerged revisions 69425 via svnmerge from
Nick Coghlan [Sun, 8 Feb 2009 03:37:27 +0000 (03:37 +0000)]
Merged revisions 69425 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69425 | nick.coghlan | 2009-02-08 13:17:00 +1000 (Sun, 08 Feb 2009) | 1 line

  Issue #4512 closeout: Make ZipImport.get_filename() a public method
........

15 years agoMerged revisions 69419-69420 via svnmerge from
Nick Coghlan [Sun, 8 Feb 2009 01:58:26 +0000 (01:58 +0000)]
Merged revisions 69419-69420 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69419 | nick.coghlan | 2009-02-08 11:26:34 +1000 (Sun, 08 Feb 2009) | 1 line

  Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda)
........
  r69420 | nick.coghlan | 2009-02-08 11:46:01 +1000 (Sun, 08 Feb 2009) | 1 line

  Mention patch submitter in NEWS entry for r69419
........

15 years agorevert 69416; it didn't help much
Benjamin Peterson [Sun, 8 Feb 2009 00:29:20 +0000 (00:29 +0000)]
revert 69416; it didn't help much

15 years agofix typo and test_urllib failures
Benjamin Peterson [Sat, 7 Feb 2009 22:55:24 +0000 (22:55 +0000)]
fix typo and test_urllib failures

15 years agoIssue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
Antoine Pitrou [Sat, 7 Feb 2009 17:13:31 +0000 (17:13 +0000)]
Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
and make it 2.6-compatible.

15 years agoAdd the missing importlib.test.extension.util.
Brett Cannon [Sat, 7 Feb 2009 02:33:52 +0000 (02:33 +0000)]
Add the missing importlib.test.extension.util.

15 years agoMerged revisions 69404 via svnmerge from
Guilherme Polo [Sat, 7 Feb 2009 02:33:47 +0000 (02:33 +0000)]
Merged revisions 69404 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69404 | guilherme.polo | 2009-02-07 00:20:29 -0200 (Sat, 07 Feb 2009) | 2 lines

  Eliminated the need to use ttk.__loadtk__ and the problems related it.
........

15 years agoUpdate NOTES for importlib now that a replacement for functools.wraps is
Brett Cannon [Sat, 7 Feb 2009 02:14:07 +0000 (02:14 +0000)]
Update NOTES for importlib now that a replacement for functools.wraps is
available.

15 years agoCreate a simple substitute for functools.wraps to use in importlib._bootstrap.
Brett Cannon [Sat, 7 Feb 2009 02:13:28 +0000 (02:13 +0000)]
Create a simple substitute for functools.wraps to use in importlib._bootstrap.

15 years agoFactor out helper code from importlib.test.extension.test_path_hook.
Brett Cannon [Sat, 7 Feb 2009 02:06:43 +0000 (02:06 +0000)]
Factor out helper code from importlib.test.extension.test_path_hook.

15 years agoAdd a note for importlib about backporting some of functools.wraps functionality.
Brett Cannon [Sat, 7 Feb 2009 01:57:14 +0000 (01:57 +0000)]
Add a note for importlib about backporting some of functools.wraps functionality.

15 years agoMove importlib completely over to using rpartition and accepting the empty
Brett Cannon [Sat, 7 Feb 2009 01:52:25 +0000 (01:52 +0000)]
Move importlib completely over to using rpartition and accepting the empty
string for top-level modules.

15 years agoMove importlib's built-in importer to use rpartition for __package__.
Brett Cannon [Sat, 7 Feb 2009 01:40:19 +0000 (01:40 +0000)]
Move importlib's built-in importer to use rpartition for __package__.

15 years agoMove importlib's frozen importer over to rpartition for setting __package__.
Brett Cannon [Sat, 7 Feb 2009 01:38:38 +0000 (01:38 +0000)]
Move importlib's frozen importer over to rpartition for setting __package__.

15 years agoBlocked revisions 69373-69374,69389,69394 via svnmerge
Benjamin Peterson [Sat, 7 Feb 2009 01:35:08 +0000 (01:35 +0000)]
Blocked revisions 69373-69374,69389,69394 via svnmerge

........
  r69373 | neil.schemenauer | 2009-02-06 15:08:52 -0600 (Fri, 06 Feb 2009) | 5 lines

  Overhaul Lib/compiler block ordering.  The previous code was filled with
  hacks.  The new code is based on issue #2472 posted by Antoine Pitrou.  I
  did some further cleanups of the pyassem code and optimized the block
  ordering pass.
........
  r69374 | neil.schemenauer | 2009-02-06 15:33:45 -0600 (Fri, 06 Feb 2009) | 6 lines

  Convert "srcdir" into an absolute path if that seems prudent.  Currrently
  the only user of this is Lib/distutils/tests/test_build_ext.py (in order
  to find the source for xxmodule.c).  I'm not sure if other platforms
  need similar tweaks, I'm not brave enough to attempt it without being
  able to test.
........
  r69389 | neil.schemenauer | 2009-02-06 18:13:39 -0600 (Fri, 06 Feb 2009) | 2 lines

  Make names generated for 'with' variables match the built-in compiler.
........
  r69394 | neil.schemenauer | 2009-02-06 18:54:41 -0600 (Fri, 06 Feb 2009) | 4 lines

  Issue #999042: The Python compiler now handles explict global statements
  correctly (should be assigned using STORE_GLOBAL opcode).  This was done by
  having the system table differentiate between explict and implicit globals.
........

15 years agoRewrite the code implementing __import__ for importlib. Now it is much simpler
Brett Cannon [Sat, 7 Feb 2009 01:15:27 +0000 (01:15 +0000)]
Rewrite the code implementing __import__ for importlib. Now it is much simpler
and relies much more on meta path finders to abstract out various parts of
import.

As part of this the semantics for import_module tightened up and now follow
__import__ much more closely (biggest thing is that the 'package' argument must
now already be imported, else a SystemError is raised).

15 years agolong -> int
Guilherme Polo [Sat, 7 Feb 2009 00:45:10 +0000 (00:45 +0000)]
long -> int

15 years agoMerged revisions 69385 via svnmerge from
Tarek Ziadé [Sat, 7 Feb 2009 00:10:48 +0000 (00:10 +0000)]
Merged revisions 69385 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69385 | tarek.ziade | 2009-02-07 01:05:39 +0100 (Sat, 07 Feb 2009) | 1 line

  #3986 replacing string and types call (like in the Py3k branch), and put exec_msg call at the right place
........

15 years agoMerged revisions 69376-69377 via svnmerge from
Guilherme Polo [Fri, 6 Feb 2009 23:16:11 +0000 (23:16 +0000)]
Merged revisions 69376-69377 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69376 | guilherme.polo | 2009-02-06 20:26:22 -0200 (Fri, 06 Feb 2009) | 3 lines

  Partial fix to issue #1731706: memory leak in Tkapp_Call when calling
  from a thread different than the one that created the Tcl interpreter.
........
  r69377 | guilherme.polo | 2009-02-06 20:48:07 -0200 (Fri, 06 Feb 2009) | 5 lines

  Issue #1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that will
  not be used again (this requires Tcl/Tk 8.3.1), also fix a memory
  leak in Tkapp_Call when calling from a thread different than the one that
  created the Tcl interpreter.
........

15 years agoFixing changes from the last merge.
Guilherme Polo [Fri, 6 Feb 2009 23:04:44 +0000 (23:04 +0000)]
Fixing changes from the last merge.

15 years agoMake test_build_ext.py use sysconfig "srcdir" to find the source for
Neil Schemenauer [Fri, 6 Feb 2009 21:42:05 +0000 (21:42 +0000)]
Make test_build_ext.py use sysconfig "srcdir" to find the source for
xxmodule.c.  Have sysconfig make the srcdir path absolute if that seems
necessary (running non-installed Python outside the build directory).

15 years ago#5173: StandardError wasn't removed in 2.6.
Georg Brandl [Fri, 6 Feb 2009 18:11:01 +0000 (18:11 +0000)]
#5173: StandardError wasn't removed in 2.6.

15 years agoReplace references to python-3000 mailing list with python-dev in
Mark Dickinson [Fri, 6 Feb 2009 16:39:11 +0000 (16:39 +0000)]
Replace references to python-3000 mailing list with python-dev in
README.

15 years agoMerged revisions 69366 via svnmerge from
Tarek Ziadé [Fri, 6 Feb 2009 13:33:47 +0000 (13:33 +0000)]
Merged revisions 69366 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69366 | tarek.ziade | 2009-02-06 14:27:38 +0100 (Fri, 06 Feb 2009) | 1 line

  Fixed #5167: test_customize_compiler does not apply under non unix compilers
........

15 years agoMerged revisions 69360 via svnmerge from
Tarek Ziadé [Fri, 6 Feb 2009 09:03:10 +0000 (09:03 +0000)]
Merged revisions 69360 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69360 | tarek.ziade | 2009-02-06 09:55:23 +0100 (Fri, 06 Feb 2009) | 1 line

  removed types usage and added test coverage (work for #3986)
........