Commit Graph

38164 Commits

Author SHA1 Message Date
Brett Cannon
0e974b895f 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.
........
2009-02-03 05:00:53 +00:00
Brett Cannon
e78701a8d6 Add importlib to the Makefile. 2009-02-03 04:57:48 +00:00
Raymond Hettinger
85602268dc The default shelve pickle protocol should have been 3. 2009-02-03 04:19:10 +00:00
Benjamin Peterson
f6e18066be 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
........
2009-02-03 04:08:48 +00:00
Raymond Hettinger
82417ca9b2 Register decimals as numbers.Number 2009-02-03 03:54:28 +00:00
Benjamin Peterson
2fad8016ba 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.
........
2009-02-03 02:30:19 +00:00
Raymond Hettinger
5d65412d35 Validate that __length_hint__ returns a usable result. 2009-02-03 02:12:10 +00:00
Benjamin Peterson
94a45da6be 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.
........
2009-02-03 01:47:16 +00:00
Raymond Hettinger
e8364233ae Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 22:55:09 +00:00
Mark Dickinson
9f9892648f Issue #1717, continued: Doc fixes and other cleanup related
to renaming of tp_compare.
2009-02-02 21:29:40 +00:00
Guilherme Polo
7f42395b6d 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
........
2009-02-02 21:17:09 +00:00
Mark Dickinson
3c16165c43 Change type of tp_reserved from cmpfunc to (void *); remove definition
of cmpfunc.
2009-02-02 21:11:16 +00:00
Mark Dickinson
e94c679df0 Issue #1717: rename tp_compare to tp_reserved. I'll change the
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
2009-02-02 20:36:42 +00:00
Brett Cannon
438cecd3de Add some notes for importlib to package up what is in Python 2.7 as well as modules that can probably get replaced by importlib at some point. 2009-02-02 20:32:29 +00:00
Brett Cannon
1d376687b7 To prevent another screw-up on my part where my prototype gets lost thanks to
an ``svn revert`` (gee, maybe more atomic commits by use of something like a
DVCS would help with this? Wish someone would get on that ...), I am checking
in an untested, work-in-progress meta path finder to handle sys.path.
2009-02-02 19:19:36 +00:00
Kristján Valur Jónsson
7e11b3f522 merging / reimplementing r68532 from the trunk to Py3k
Enable buffering for HTTPResponse's fp.  read() behaves identically for buffered and non-buffered IO.  read(n) also won't block if n bytes are availble on the socket.  There is therefore no reason not to use buffering.  The reason 2.x disables buffering by default, that some clients may be accessing the underlying socket directly and so bypass the buffering buffer, doesn't apply in 3.x with its redesigned IO library.
See issue 4448 and issue 4879
2009-02-02 16:04:04 +00:00
Martin v. Löwis
bc186a87cc Merged revisions 69205 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69205 | martin.v.loewis | 2009-02-02 15:23:16 +0100 (Mo, 02 Feb 2009) | 1 line

  Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.
........
2009-02-02 15:32:22 +00:00
Hirokazu Yamamoto
49db063323 Merged revisions 69200 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69200 | hirokazu.yamamoto | 2009-02-02 17:01:17 +0900 | 1 line

  Set native svn:eol-style property for text files.
........
2009-02-02 09:15:41 +00:00
Brett Cannon
02a6888d91 Note to move __package__ stuff over to rpartition to make Nick happy. Also make
sure that accepting the empty string for top-level modules is okay.
2009-02-02 05:58:30 +00:00
Guilherme Polo
8ec5829910 Recorded merge of revisions 69195 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69195 | guilherme.polo | 2009-02-01 22:38:54 -0200 (Sun, 01 Feb 2009) | 3 lines

  Use a single Tcl interpreter through all these tests, this may help some
  failing buildbots.
........
2009-02-02 01:02:20 +00:00
Mark Dickinson
995d4cdd62 Remove exception for non-NULL tp_compare that was introduced in r69188. 2009-02-01 20:36:08 +00:00
Mark Dickinson
c48d834026 Issue #1717: documentation fixes related to the cmp removal. 2009-02-01 14:18:10 +00:00
Mark Dickinson
c008a176af Issue #1717, continued: remove PyObject_Compare and Py_CmpToRich declarations
from object.h; don't inherit tp_compare slot on subclasses; and raise TypeError
when initializing a type that has a nonzero tp_compare slot.  Fix up
comparison-related comments in object.c and code.h.
2009-02-01 13:59:22 +00:00
Mark Dickinson
f02e0aaafd Issue #1717: remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.
2009-02-01 12:13:56 +00:00
Mark Dickinson
211c625829 Issue #1717, stage 2: remove uses of tp_compare in Modules and most
Objects.
2009-02-01 10:28:51 +00:00
Brett Cannon
776e7014e9 Simplify write_bytecode for importlib. 2009-02-01 06:07:57 +00:00
Brett Cannon
20b56e1a1c Update importlib notes. 2009-02-01 05:55:23 +00:00
Brett Cannon
ba96f0f89a Ditch read_source() and read_bytecode() and replace with *_path() and
get_data().
2009-02-01 05:43:31 +00:00
Brett Cannon
51c502689c Expose source_path and bytecode_path on _PyFileLoader. 2009-02-01 05:33:17 +00:00
Brett Cannon
6c3aaf3276 Remove an outdated todo item from importlib. 2009-02-01 05:04:06 +00:00
Brett Cannon
d720b36248 Move import semantic util code to importlib.test.import_.util. 2009-02-01 04:28:04 +00:00
Brett Cannon
bcb26c53c0 Rename importlib.test.support to importlib.test.util. 2009-02-01 04:00:05 +00:00
Brett Cannon
ae9ad186d0 Do not execute the .pyc/.pyo files as well as the .py files. 2009-02-01 03:51:54 +00:00
Brett Cannon
4ee2cdaf65 Split out support code that is specific to source tests out of
importlib.test.support to importlib.test.source.util.
2009-02-01 03:08:31 +00:00
Brett Cannon
30b047dc35 Move source loader tests (including reload tests) over to
importlib.test.abc.LoaderTests.
2009-02-01 02:05:11 +00:00
Brett Cannon
223a19d8b1 Fix importlib.machinery.FrozenImporter.load_module() to set __package__
properly. Discovered by also moving the loader tests over to
importlib.test.abc.LoaderTests.
2009-02-01 01:34:13 +00:00
Brett Cannon
e70485e7c1 Move extension module loader tests over to importlib.test.abc.LoaderTests. 2009-02-01 00:49:41 +00:00
Brett Cannon
d98a6a014d Move built-in loader tests to importlib.test.abc.LoaderTests. 2009-02-01 00:37:13 +00:00
Gregory P. Smith
fa6cf39e70 documentation wording fix for issue4903 2009-02-01 00:30:50 +00:00
Benjamin Peterson
548a4cb1f9 Blocked revisions 69146,69149 via svnmerge
........
  r69146 | benjamin.peterson | 2009-01-31 15:47:42 -0600 (Sat, 31 Jan 2009) | 1 line

  fix indentation
........
  r69149 | benjamin.peterson | 2009-01-31 16:03:19 -0600 (Sat, 31 Jan 2009) | 1 line

  fix indentation; looks like all I managed to do the first time is make things uglier
........
2009-01-31 22:17:25 +00:00
Benjamin Peterson
29060641ca fix indentation again 2009-01-31 22:14:21 +00:00
Benjamin Peterson
e1c3729b8c Blocked revisions 69134 via svnmerge
........
  r69134 | benjamin.peterson | 2009-01-31 10:29:18 -0600 (Sat, 31 Jan 2009) | 1 line

  completely detabify unicodeobject.c
........
2009-01-31 16:41:58 +00:00
Benjamin Peterson
14339b6d34 detabify Objects/unicodeobject.c 2009-01-31 16:36:08 +00:00
Mark Dickinson
72ead17c8a Make Python/makeopcodetargets runnable with Python 2.3. With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.
2009-01-31 12:12:41 +00:00
Benjamin Peterson
e9deddbf8c comprehrensions now have proper scoping #5106 2009-01-31 03:57:19 +00:00
Benjamin Peterson
1010bf3e26 Merged revisions 68840,68881,68943,68945 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68840 | andrew.kuchling | 2009-01-20 20:15:43 -0600 (Tue, 20 Jan 2009) | 1 line

  Add some items
........
  r68881 | andrew.kuchling | 2009-01-23 21:28:18 -0600 (Fri, 23 Jan 2009) | 1 line

  Add various items
........
  r68943 | tarek.ziade | 2009-01-25 16:09:10 -0600 (Sun, 25 Jan 2009) | 1 line

  Issue #5052: removed backward compatibility information (out of date)
........
  r68945 | tarek.ziade | 2009-01-25 16:11:04 -0600 (Sun, 25 Jan 2009) | 1 line

  added missing module docstring
........
2009-01-30 04:00:29 +00:00
Benjamin Peterson
c4bbc8d7dc Merged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68884 | kristjan.jonsson | 2009-01-24 04:52:26 -0600 (Sat, 24 Jan 2009) | 1 line

  Add a test for UNC import paths, see issue 3677
........
  r68973 | georg.brandl | 2009-01-26 15:29:38 -0600 (Mon, 26 Jan 2009) | 2 lines

  Copy over docs on advanced role features from Sphinx docs.
........
  r68978 | mark.dickinson | 2009-01-26 15:51:56 -0600 (Mon, 26 Jan 2009) | 3 lines

  Issue #5073: Fix occasional failure of bsddb/test/test_lock.py.  Thanks
  Hirokazu Yamamoto for the patch.
........
  r69003 | benjamin.peterson | 2009-01-26 21:07:53 -0600 (Mon, 26 Jan 2009) | 1 line

  excellent place to use a set() #5069
........
  r69083 | benjamin.peterson | 2009-01-28 21:03:00 -0600 (Wed, 28 Jan 2009) | 1 line

  fix download url
........
  r69112 | benjamin.peterson | 2009-01-29 20:02:25 -0600 (Thu, 29 Jan 2009) | 1 line

  pep8tify conditionals
........
  r69113 | benjamin.peterson | 2009-01-29 20:24:39 -0600 (Thu, 29 Jan 2009) | 1 line

  make _tkinter._flatten check the result of PySequence_Size for errors #3880
........
2009-01-30 03:39:35 +00:00
Hirokazu Yamamoto
90eaaf623a Issue #5041: Fixed memory leak. 2009-01-30 03:15:05 +00:00
Benjamin Peterson
5276c6417d Blocked revisions 68772,68892,69039 via svnmerge
........
  r68772 | benjamin.peterson | 2009-01-19 09:42:23 -0600 (Mon, 19 Jan 2009) | 1 line

  add a note about the ftruncate change
........
  r68892 | martin.v.loewis | 2009-01-24 09:45:18 -0600 (Sat, 24 Jan 2009) | 2 lines

  Add heading for 2.7a0.
........
  r69039 | benjamin.peterson | 2009-01-27 17:15:48 -0600 (Tue, 27 Jan 2009) | 1 line

  use True and False
........
2009-01-30 03:01:08 +00:00
Benjamin Peterson
e8fcbf689b fix a case of set_daemon #5087 2009-01-30 02:29:43 +00:00