Brett Cannon
64a3a65c26
Update NOTES for importlib about PathFinder.
2009-02-05 02:53:47 +00:00
Brett Cannon
939ea76b3c
Begin writing tests for importlib.machinery.PathFinder.
2009-02-05 02:53:23 +00:00
Brett Cannon
fa3d1fc6a3
Check in the fact that importlib.machinery.PathFinder now exists.
2009-02-05 02:52:57 +00:00
Brett Cannon
f7e5a8c724
Rename importlib._bootstrap.SysPathFinder to PathFinder and expose off of
...
importlib.machinery. Also make the methods either class or staticmethods.
2009-02-05 02:52:18 +00:00
Benjamin Peterson
be2f57c39a
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.
........
2009-02-05 00:05:45 +00:00
Raymond Hettinger
d04fa31f73
Minor doc fixes.
2009-02-04 19:45:13 +00:00
Raymond Hettinger
1c62dc9d73
Tweak the docs for Counter() objects.
2009-02-04 11:41:45 +00:00
Thomas Heller
d943262390
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.
........
2009-02-03 19:34:18 +00:00
Kristján Valur Jónsson
3bbfba841a
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.
2009-02-03 10:57:52 +00:00
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