]> granicus.if.org Git - python/log
python
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)
........

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

........
  r69356 | tarek.ziade | 2009-02-06 09:20:15 +0100 (Fri, 06 Feb 2009) | 1 line

  Fixed #3987 : removed unused import
........

15 years agoMerged revisions 69141,69211-69212 via svnmerge from
Benjamin Peterson [Fri, 6 Feb 2009 03:01:24 +0000 (03:01 +0000)]
Merged revisions 69141,69211-69212 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69141 | benjamin.peterson | 2009-01-31 14:01:48 -0600 (Sat, 31 Jan 2009) | 1 line

  fix indentation
........
  r69211 | guilherme.polo | 2009-02-02 14:23:29 -0600 (Mon, 02 Feb 2009) | 1 line

  Restore the previous geometry before leaving the test
........
  r69212 | guilherme.polo | 2009-02-02 14:28:59 -0600 (Mon, 02 Feb 2009) | 1 line

  Moving to importlib
........

15 years agoInitial, untested stab at writing a common denominator function for __import__
Brett Cannon [Fri, 6 Feb 2009 02:47:33 +0000 (02:47 +0000)]
Initial, untested stab at writing a common denominator function for __import__
and import_module.

15 years agoMerged revisions 69129-69131,69139-69140,69143,69154-69159,69169,69288-69289,69293...
Benjamin Peterson [Fri, 6 Feb 2009 02:40:07 +0000 (02:40 +0000)]
Merged revisions 69129-69131,69139-69140,69143,69154-69159,69169,69288-69289,69293,69297-69301,69348 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69129 | benjamin.peterson | 2009-01-30 19:42:55 -0600 (Fri, 30 Jan 2009) | 1 line

  check the errno in bad fd cases
........
  r69130 | andrew.kuchling | 2009-01-30 20:50:09 -0600 (Fri, 30 Jan 2009) | 1 line

  Add a section
........
  r69131 | andrew.kuchling | 2009-01-30 21:26:02 -0600 (Fri, 30 Jan 2009) | 1 line

  Text edits and markup fixes
........
  r69139 | mark.dickinson | 2009-01-31 10:44:04 -0600 (Sat, 31 Jan 2009) | 2 lines

  Add an extra test for long <-> float hash equivalence.
........
  r69140 | benjamin.peterson | 2009-01-31 10:52:03 -0600 (Sat, 31 Jan 2009) | 1 line

  PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
........
  r69143 | benjamin.peterson | 2009-01-31 15:00:10 -0600 (Sat, 31 Jan 2009) | 1 line

  I believe the intention here was to avoid a global lookup
........
  r69154 | benjamin.peterson | 2009-01-31 16:33:02 -0600 (Sat, 31 Jan 2009) | 1 line

  fix indentation in comment
........
  r69155 | david.goodger | 2009-01-31 16:53:46 -0600 (Sat, 31 Jan 2009) | 1 line

  markup fix
........
  r69156 | gregory.p.smith | 2009-01-31 16:57:30 -0600 (Sat, 31 Jan 2009) | 4 lines

  - Issue #5104: The socket module now raises OverflowError when 16-bit port and
    protocol numbers are supplied outside the allowed 0-65536 range on bind()
    and getservbyport().
........
  r69157 | benjamin.peterson | 2009-01-31 17:43:25 -0600 (Sat, 31 Jan 2009) | 1 line

  add explanatory comment
........
  r69158 | benjamin.peterson | 2009-01-31 17:54:38 -0600 (Sat, 31 Jan 2009) | 1 line

  more flags which only work for function blocks
........
  r69159 | gregory.p.smith | 2009-01-31 18:16:01 -0600 (Sat, 31 Jan 2009) | 2 lines

  Update doc wording as suggested in issue4903.
........
  r69169 | guilherme.polo | 2009-01-31 20:56:16 -0600 (Sat, 31 Jan 2009) | 3 lines

  Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
  related to ttk.
........
  r69288 | georg.brandl | 2009-02-05 04:30:57 -0600 (Thu, 05 Feb 2009) | 1 line

  #5153: fix typo in example.
........
  r69289 | georg.brandl | 2009-02-05 04:37:07 -0600 (Thu, 05 Feb 2009) | 1 line

  #5144: document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path.
........
  r69293 | georg.brandl | 2009-02-05 04:59:28 -0600 (Thu, 05 Feb 2009) | 1 line

  #5059: fix example.
........
  r69297 | georg.brandl | 2009-02-05 05:32:18 -0600 (Thu, 05 Feb 2009) | 1 line

  #5015: document PythonHome API functions.
........
  r69298 | georg.brandl | 2009-02-05 05:33:21 -0600 (Thu, 05 Feb 2009) | 1 line

  #4827: fix callback example.
........
  r69299 | georg.brandl | 2009-02-05 05:35:28 -0600 (Thu, 05 Feb 2009) | 1 line

  #4820: use correct module for ctypes.util.
........
  r69300 | georg.brandl | 2009-02-05 05:38:23 -0600 (Thu, 05 Feb 2009) | 1 line

  #4563: disable alpha and roman lists, fixes wrong formatting of contributor list.
........
  r69301 | georg.brandl | 2009-02-05 05:40:35 -0600 (Thu, 05 Feb 2009) | 1 line

  #5031: fix Thread.daemon property docs.
........
  r69348 | benjamin.peterson | 2009-02-05 19:47:31 -0600 (Thu, 05 Feb 2009) | 1 line

  fix download link
........

15 years agoBlocked revisions 69240,69242,69252-69253,69257,69262,69271-69273,69302-69305,69315...
Benjamin Peterson [Fri, 6 Feb 2009 02:02:07 +0000 (02:02 +0000)]
Blocked revisions 69240,69242,69252-69253,69257,69262,69271-69273,69302-69305,69315,69322 via svnmerge

........
  r69240 | raymond.hettinger | 2009-02-02 21:18:14 -0600 (Mon, 02 Feb 2009) | 1 line

  Record operator deprecations in docs.
........
  r69242 | raymond.hettinger | 2009-02-02 21:37:03 -0600 (Mon, 02 Feb 2009) | 1 line

  Register decimals as numbers.Number
........
  r69252 | brett.cannon | 2009-02-02 22:58:29 -0600 (Mon, 02 Feb 2009) | 3 lines

  Make importlib a package. This allows using svn:externals in the sandbox to
  package up the code for separate distribution.
........
  r69253 | brett.cannon | 2009-02-02 22:59:58 -0600 (Mon, 02 Feb 2009) | 1 line

  Ignore bytecode files in importlib.
........
  r69257 | brett.cannon | 2009-02-02 23:08:22 -0600 (Mon, 02 Feb 2009) | 1 line

  Backport importlib to at least Python 2.5 by getting rid of use of str.format.
........
  r69262 | brett.cannon | 2009-02-03 15:13:05 -0600 (Tue, 03 Feb 2009) | 5 lines

  Make importlib backwards-compatible to Python 2.2 (but this is not promised to
  last; just doing it to be nice).

  Also fix a message for an exception.
........
  r69271 | raymond.hettinger | 2009-02-04 04:52:32 -0600 (Wed, 04 Feb 2009) | 1 line

  Minor doc fixups.
........
  r69272 | raymond.hettinger | 2009-02-04 05:14:18 -0600 (Wed, 04 Feb 2009) | 1 line

  Doc fixes. Remove overbroad, redundant warnings.  Fixup example code.
........
  r69273 | raymond.hettinger | 2009-02-04 05:31:30 -0600 (Wed, 04 Feb 2009) | 1 line

  Tweak the docs for Counter() objects.
........
  r69302 | neil.schemenauer | 2009-02-05 10:14:39 -0600 (Thu, 05 Feb 2009) | 3 lines

  Fix get_python_inc() to work when building in a directory separate from
  the source.  Also, define 'srcdir' on non-posix platforms.
........
  r69303 | neil.schemenauer | 2009-02-05 10:19:05 -0600 (Thu, 05 Feb 2009) | 4 lines

  Since sysconfig.get_python_inc() now works when building in a
  directory other than the source directory, simplify the test code in
  test_sysconfig.py.
........
  r69304 | neil.schemenauer | 2009-02-05 10:25:16 -0600 (Thu, 05 Feb 2009) | 4 lines

  Fix test_build_ext.py to work when building in a separate directory.
  Since "srcdir" should now be defined on all platforms, use it to
  find the module source.
........
  r69305 | neil.schemenauer | 2009-02-05 10:32:29 -0600 (Thu, 05 Feb 2009) | 4 lines

  Make setup.py work when building in a directory other than the
  source directory.  Mainly use 'srcdir' rather than os.getcwd() or
  '.'.
........
  r69315 | neil.schemenauer | 2009-02-05 16:14:04 -0600 (Thu, 05 Feb 2009) | 2 lines

  Oops, Mac build needs the 'incdirlist' variable so restore it.
........
  r69322 | neil.schemenauer | 2009-02-05 18:21:55 -0600 (Thu, 05 Feb 2009) | 2 lines

  Distutils apparently requires an absolute path so provide one.
........

15 years agoMerged revisions 69331 via svnmerge from
Eric Smith [Fri, 6 Feb 2009 01:32:42 +0000 (01:32 +0000)]
Merged revisions 69331 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69331 | eric.smith | 2009-02-05 19:48:26 -0500 (Thu, 05 Feb 2009) | 2 lines

  Implement issue #4285, convert sys.version_info to a named
  tuple. Patch by Ross Light.
........

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

........
  r69342 | tarek.ziade | 2009-02-06 02:15:51 +0100 (Fri, 06 Feb 2009) | 1 line

  fixed #1520877: now distutils reads Read  from the environment/Makefile
........

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

........
  r69332 | tarek.ziade | 2009-02-06 01:49:45 +0100 (Fri, 06 Feb 2009) | 1 line

  using >= so setting verbose to 2 will work as well
........

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

........
  r69330 | tarek.ziade | 2009-02-06 01:46:57 +0100 (Fri, 06 Feb 2009) | 1 line

  README now reflects the current state
........

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

........
  r69324 | tarek.ziade | 2009-02-06 01:31:59 +0100 (Fri, 06 Feb 2009) | 1 line

  Fixed #1276768: verbose option was not used in the code.
........

15 years agoDistutils apparently requires an absolute path so provide one.
Neil Schemenauer [Fri, 6 Feb 2009 00:27:50 +0000 (00:27 +0000)]
Distutils apparently requires an absolute path so provide one.

15 years agoFinish implementing tests for importlib.machinery.PathFinder by testing that
Brett Cannon [Fri, 6 Feb 2009 00:07:49 +0000 (00:07 +0000)]
Finish implementing tests for importlib.machinery.PathFinder by testing that
implicit hooks are handled properly.

15 years agoAdd tests for using sys.path_hooks by importlib.machinery.PathFinder.
Brett Cannon [Thu, 5 Feb 2009 23:36:02 +0000 (23:36 +0000)]
Add tests for using sys.path_hooks by importlib.machinery.PathFinder.

15 years agoMerged revisions 69316 via svnmerge from
Tarek Ziadé [Thu, 5 Feb 2009 22:56:14 +0000 (22:56 +0000)]
Merged revisions 69316 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69316 | tarek.ziade | 2009-02-05 23:52:52 +0100 (Thu, 05 Feb 2009) | 1 line

  Fixed #5132: enable extensions to link on Solaris
........

15 years agoImplement test for sys.path_importer_cache having None for
Brett Cannon [Thu, 5 Feb 2009 22:02:03 +0000 (22:02 +0000)]
Implement test for sys.path_importer_cache having None for
importlib.machinery.PathFinder.

15 years agoMake setup.py work when building in a directory other than the
Neil Schemenauer [Thu, 5 Feb 2009 16:35:45 +0000 (16:35 +0000)]
Make setup.py work when building in a directory other than the
source directory.  Mainly, use 'srcdir' rather than os.getcwd() or
'.'.

15 years agoSince sysconfig.get_python_inc() now works when building in a
Neil Schemenauer [Thu, 5 Feb 2009 16:35:04 +0000 (16:35 +0000)]
Since sysconfig.get_python_inc() now works when building in a
directory other than the source directory, simplify the test code in
test_sysconfig.py.

15 years agoFix get_python_inc() to work when building in a directory separate from
Neil Schemenauer [Thu, 5 Feb 2009 16:33:41 +0000 (16:33 +0000)]
Fix get_python_inc() to work when building in a directory separate from
the source.  Also, define 'srcdir' on non-posix platforms.

15 years agoBlocked revisions 69295 via svnmerge
Georg Brandl [Thu, 5 Feb 2009 11:24:04 +0000 (11:24 +0000)]
Blocked revisions 69295 via svnmerge

........
  r69295 | georg.brandl | 2009-02-05 12:23:47 +0100 (Do, 05 Feb 2009) | 1 line

  PyErr_PrintEx is also in 2.x...
........

15 years ago#4992: next() method -> next() function.
Georg Brandl [Thu, 5 Feb 2009 11:01:54 +0000 (11:01 +0000)]
#4992: next() method -> next() function.

15 years ago#5096: document PyErr_PrintEx().
Georg Brandl [Thu, 5 Feb 2009 10:56:37 +0000 (10:56 +0000)]
#5096: document PyErr_PrintEx().

15 years ago#5107: document that default encoding is the same as locale.getpreferredencoding().
Georg Brandl [Thu, 5 Feb 2009 10:47:16 +0000 (10:47 +0000)]
#5107: document that default encoding is the same as locale.getpreferredencoding().

15 years ago#5130: replace "unicode" by "bytes" in examples for sequence types.
Georg Brandl [Thu, 5 Feb 2009 10:40:48 +0000 (10:40 +0000)]
#5130: replace "unicode" by "bytes" in examples for sequence types.

15 years agoMerged revisions 69285 via svnmerge from
Tarek Ziadé [Thu, 5 Feb 2009 09:08:59 +0000 (09:08 +0000)]
Merged revisions 69285 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69285 | tarek.ziade | 2009-02-05 10:06:23 +0100 (Thu, 05 Feb 2009) | 1 line

  Fix comment for #1835
........

15 years agoUpdate NOTES for importlib about PathFinder.
Brett Cannon [Thu, 5 Feb 2009 02:53:47 +0000 (02:53 +0000)]
Update NOTES for importlib about PathFinder.

15 years agoBegin writing tests for importlib.machinery.PathFinder.
Brett Cannon [Thu, 5 Feb 2009 02:53:23 +0000 (02:53 +0000)]
Begin writing tests for importlib.machinery.PathFinder.

15 years agoCheck in the fact that importlib.machinery.PathFinder now exists.
Brett Cannon [Thu, 5 Feb 2009 02:52:57 +0000 (02:52 +0000)]
Check in the fact that importlib.machinery.PathFinder now exists.

15 years agoRename importlib._bootstrap.SysPathFinder to PathFinder and expose off of
Brett Cannon [Thu, 5 Feb 2009 02:52:18 +0000 (02:52 +0000)]
Rename importlib._bootstrap.SysPathFinder to PathFinder and expose off of
importlib.machinery. Also make the methods either class or staticmethods.

15 years agoBlocked revisions 69276 via svnmerge
Benjamin Peterson [Thu, 5 Feb 2009 00:05:45 +0000 (00:05 +0000)]
Blocked revisions 69276 via svnmerge

........
  r69276 | raymond.hettinger | 2009-02-04 13:25:17 -0600 (Wed, 04 Feb 2009) | 1 line

  Clarify that named tuples do not have to subclass tuple.
........

15 years agoMinor doc fixes.
Raymond Hettinger [Wed, 4 Feb 2009 19:45:13 +0000 (19:45 +0000)]
Minor doc fixes.

15 years agoTweak the docs for Counter() objects.
Raymond Hettinger [Wed, 4 Feb 2009 11:41:45 +0000 (11:41 +0000)]
Tweak the docs for Counter() objects.

15 years agoMerged revisions 69260 via svnmerge from
Thomas Heller [Tue, 3 Feb 2009 19:34:18 +0000 (19:34 +0000)]
Merged revisions 69260 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69260 | thomas.heller | 2009-02-03 18:07:40 +0100 (Di, 03 Feb 2009) | 9 lines

  This refactoring should make it easier to add new calling conventions.

  Replace ffi_call_STDCALL and ffi_call_SYSV by a ffi_call_x86 function
  that cleans up the stack when FFI_SYSV is used, and does nothing for
  FFI_STDCALL.

  Remove libffi_msvc\win32.S, which is out of date and also unused; it
  was only used for building ctypes with the MingW compiler.
........

15 years agor69209 caused the fp of HTTPResponse objects to be a io.BufferedReader instead of...
Kristján Valur Jónsson [Tue, 3 Feb 2009 10:57:52 +0000 (10:57 +0000)]
r69209 caused the fp of HTTPResponse objects to be a io.BufferedReader instead of a socket.SocketIO.  This moves the underlying socket.socket object from r.fp._sock to r.fp.raw._sock.  Since _sock is an internal object, this should be ok. The change is for the testsuite only, to assert socket state.

15 years agoBlocked revisions 69252 via svnmerge
Brett Cannon [Tue, 3 Feb 2009 05:00:53 +0000 (05:00 +0000)]
Blocked revisions 69252 via svnmerge

........
  r69252 | brett.cannon | 2009-02-02 20:58:29 -0800 (Mon, 02 Feb 2009) | 3 lines

  Make importlib a package. This allows using svn:externals in the sandbox to
  package up the code for separate distribution.
........

15 years agoAdd importlib to the Makefile.
Brett Cannon [Tue, 3 Feb 2009 04:57:48 +0000 (04:57 +0000)]
Add importlib to the Makefile.

15 years agoThe default shelve pickle protocol should have been 3.
Raymond Hettinger [Tue, 3 Feb 2009 04:19:10 +0000 (04:19 +0000)]
The default shelve pickle protocol should have been 3.

15 years agoBlocked revisions 69242 via svnmerge
Benjamin Peterson [Tue, 3 Feb 2009 04:08:48 +0000 (04:08 +0000)]
Blocked revisions 69242 via svnmerge

........
  r69242 | raymond.hettinger | 2009-02-02 21:37:03 -0600 (Mon, 02 Feb 2009) | 1 line

  Register decimals as numbers.Number
........

15 years agoRegister decimals as numbers.Number
Raymond Hettinger [Tue, 3 Feb 2009 03:54:28 +0000 (03:54 +0000)]
Register decimals as numbers.Number

15 years agoBlocked revisions 69237 via svnmerge
Benjamin Peterson [Tue, 3 Feb 2009 02:30:19 +0000 (02:30 +0000)]
Blocked revisions 69237 via svnmerge

........
  r69237 | raymond.hettinger | 2009-02-02 20:23:19 -0600 (Mon, 02 Feb 2009) | 1 line

  Validate that __length_hint__ returns a usable result.
........

15 years agoValidate that __length_hint__ returns a usable result.
Raymond Hettinger [Tue, 3 Feb 2009 02:12:10 +0000 (02:12 +0000)]
Validate that __length_hint__ returns a usable result.

15 years agoBlocked revisions 68532,69161,69227 via svnmerge
Benjamin Peterson [Tue, 3 Feb 2009 01:47:16 +0000 (01:47 +0000)]
Blocked revisions 68532,69161,69227 via svnmerge

........
  r68532 | kristjan.jonsson | 2009-01-11 10:23:37 -0600 (Sun, 11 Jan 2009) | 1 line

  Issue 4879: Allow buffering for HTTPResponse
........
  r69161 | gregory.p.smith | 2009-01-31 18:24:21 -0600 (Sat, 31 Jan 2009) | 2 lines

  wording for for issue4903.
........
  r69227 | raymond.hettinger | 2009-02-02 15:50:13 -0600 (Mon, 02 Feb 2009) | 1 line

  Issue 1242657: list(obj) can swallow KeyboardInterrupt.
........

15 years agoIssue 1242657: list(obj) can swallow KeyboardInterrupt.
Raymond Hettinger [Mon, 2 Feb 2009 22:55:09 +0000 (22:55 +0000)]
Issue 1242657: list(obj) can swallow KeyboardInterrupt.

15 years agoIssue #1717, continued: Doc fixes and other cleanup related
Mark Dickinson [Mon, 2 Feb 2009 21:29:40 +0000 (21:29 +0000)]
Issue #1717, continued: Doc fixes and other cleanup related
to renaming of tp_compare.

15 years agoMerged revisions 69217,69219 via svnmerge from
Guilherme Polo [Mon, 2 Feb 2009 21:17:09 +0000 (21:17 +0000)]
Merged revisions 69217,69219 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69217 | guilherme.polo | 2009-02-02 19:08:32 -0200 (Mon, 02 Feb 2009) | 1 line

  Fix for issue #1581476
........
  r69219 | guilherme.polo | 2009-02-02 19:14:14 -0200 (Mon, 02 Feb 2009) | 1 line

  NEWS entry for issue #1581476
........

15 years agoChange type of tp_reserved from cmpfunc to (void *); remove definition
Mark Dickinson [Mon, 2 Feb 2009 21:11:16 +0000 (21:11 +0000)]
Change type of tp_reserved from cmpfunc to (void *);  remove definition
of cmpfunc.