]>
granicus.if.org Git - python/log
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.
........
Raymond Hettinger [Mon, 16 Feb 2009 20:50:56 +0000 (20:50 +0000)]
Add GC support to count() objects.
Benjamin Peterson [Mon, 16 Feb 2009 18:22:15 +0000 (18:22 +0000)]
remove another use of cmp()
Benjamin Peterson [Mon, 16 Feb 2009 16:20:10 +0000 (16:20 +0000)]
no 2.3 compat in the py3k lib #3676
Benjamin Peterson [Mon, 16 Feb 2009 16:15:34 +0000 (16:15 +0000)]
raise more generic Exception() instead of RuntimeError() #5281
Facundo Batista [Mon, 16 Feb 2009 15:41:37 +0000 (15:41 +0000)]
Removed message about compatibility with 2.3.
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).
........
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.
Brett Cannon [Mon, 16 Feb 2009 04:18:01 +0000 (04:18 +0000)]
Document importlib.machinery.PathFinder.
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).
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
........
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
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.)
........
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).
Brett Cannon [Sun, 15 Feb 2009 05:46:50 +0000 (05:46 +0000)]
Add a NOTE about the new specific semantics for failed loads.
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
........
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
........
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.
........
Raymond Hettinger [Sat, 14 Feb 2009 04:21:49 +0000 (04:21 +0000)]
Add keyword argument support to itertools.count().
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
........
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
........
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
........
Martin v. Löwis [Fri, 13 Feb 2009 20:27:39 +0000 (20:27 +0000)]
Fix typos in version numbers.
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)
........
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)
........
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.
........
Georg Brandl [Fri, 13 Feb 2009 11:01:07 +0000 (11:01 +0000)]
#3694: fix an "XXX undetected error" leak in struct.
Georg Brandl [Fri, 13 Feb 2009 10:50:01 +0000 (10:50 +0000)]
part of #3613: fix get_host_info() usage of base64.encodestring().
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.
........
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().
........
Georg Brandl [Fri, 13 Feb 2009 10:40:43 +0000 (10:40 +0000)]
#4894: document "newurl" parameter to redirect_request().
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
........
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.
........
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
........
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.
........
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
........
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).
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)
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)
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.
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.
Ronald Oussoren [Thu, 12 Feb 2009 15:18:15 +0000 (15:18 +0000)]
Fix for issue5196, 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
Ronald Oussoren [Thu, 12 Feb 2009 15:01:44 +0000 (15:01 +0000)]
Fix for issue5194, based on a patch by Ned Deily.
Raymond Hettinger [Thu, 12 Feb 2009 12:53:53 +0000 (12:53 +0000)]
One more test.
Raymond Hettinger [Thu, 12 Feb 2009 12:08:18 +0000 (12:08 +0000)]
Add an extra testcase.
Raymond Hettinger [Thu, 12 Feb 2009 10:19:59 +0000 (10:19 +0000)]
Fix spaces/tabs in example.
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).
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.
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.
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.
........
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.
Raymond Hettinger [Wed, 11 Feb 2009 00:20:02 +0000 (00:20 +0000)]
Clean-up named tuple docs.
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.
........
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.
........
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.
........
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.
........
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
........
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
........
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.
........
Guilherme Polo [Tue, 10 Feb 2009 02:20:49 +0000 (02:20 +0000)]
This header was supposed to be committed in r69476
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.
........
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.
........
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.
........
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.
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)
........
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.
........
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
........
Benjamin Peterson [Sun, 8 Feb 2009 21:07:20 +0000 (21:07 +0000)]
fix len() when __len__() returns a non number type #5137
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.
........
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.
........
Benjamin Peterson [Sun, 8 Feb 2009 15:00:52 +0000 (15:00 +0000)]
remove memoryview.__str__ #5182
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
........
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.
Nick Coghlan [Sun, 8 Feb 2009 04:01:00 +0000 (04:01 +0000)]
Fix broken socket.makefile emulation in test_urllib
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
........
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
........
Benjamin Peterson [Sun, 8 Feb 2009 00:29:20 +0000 (00:29 +0000)]
revert 69416; it didn't help much
Benjamin Peterson [Sat, 7 Feb 2009 22:55:24 +0000 (22:55 +0000)]
fix typo and test_urllib failures
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.
Brett Cannon [Sat, 7 Feb 2009 02:33:52 +0000 (02:33 +0000)]
Add the missing importlib.test.extension.util.
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.
........
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.
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.
Brett Cannon [Sat, 7 Feb 2009 02:06:43 +0000 (02:06 +0000)]
Factor out helper code from importlib.test.extension.test_path_hook.
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.
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.
Brett Cannon [Sat, 7 Feb 2009 01:40:19 +0000 (01:40 +0000)]
Move importlib's built-in importer to use rpartition for __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__.
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.
........
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).
Guilherme Polo [Sat, 7 Feb 2009 00:45:10 +0000 (00:45 +0000)]
long -> int
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
........
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.
........
Guilherme Polo [Fri, 6 Feb 2009 23:04:44 +0000 (23:04 +0000)]
Fixing changes from the last merge.
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).
Georg Brandl [Fri, 6 Feb 2009 18:11:01 +0000 (18:11 +0000)]
#5173: StandardError wasn't removed in 2.6.
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.
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
........
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)
........