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.
........
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.
........
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.
Brett Cannon [Mon, 2 Feb 2009 19:19:36 +0000 (19:19 +0000)]
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.
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
Mark Dickinson [Sun, 1 Feb 2009 13:59:22 +0000 (13:59 +0000)]
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.
Brett Cannon [Sun, 1 Feb 2009 01:34:13 +0000 (01:34 +0000)]
Fix importlib.machinery.FrozenImporter.load_module() to set __package__
properly. Discovered by also moving the loader tests over to
importlib.test.abc.LoaderTests.
Issue #2047: shutil.move() could believe that its destination path was
inside its source path if it began with the same letters (e.g. "src" vs.
"src.new").
........
Issue 4920: Fixed next() vs __next__() issues in the ABCs
for Iterator and MutableSet. Also added thorough test for
required abstractmethods.
........
r69074 | raymond.hettinger | 2009-01-28 17:58:16 -0600 (Wed, 28 Jan 2009) | 1 line
Correct docs for ABCs (MutableSequence was missing __setiem). Simplify the table by taking out inherited requirements for abstract methods.
........
Added support for collecting tests only from specific packages.
........
r69061 | guilherme.polo | 2009-01-28 17:28:04 -0200 (Wed, 28 Jan 2009) | 4 lines
* Renaming test_tk_* to test_ttk_* since that is what they are testing.
* Added ttk tests to the expected skips mapping just like where test_tcl
was expected to be skipped too.
........
r69062 | guilherme.polo | 2009-01-28 18:02:01 -0200 (Wed, 28 Jan 2009) | 1 line
Make sure the root windows gets destroyed
........
r69063 | guilherme.polo | 2009-01-28 18:03:26 -0200 (Wed, 28 Jan 2009) | 2 lines
Issue #5083: New 'gui' resource for regrtest.
........
On Windows, use the Python 'Activation Context' when loading extensions
to avoid problems loading the CRT from a private assembly. Via bug 4566.
........
Blocked revisions 69001,69010,69012,69014,69018,69023 via svnmerge
........
r69001 | raymond.hettinger | 2009-01-26 20:58:49 -0600 (Mon, 26 Jan 2009) | 1 line
Promote combinations_with_replacement() from a recipe to a regular itertool.
........
r69010 | raymond.hettinger | 2009-01-27 03:33:06 -0600 (Tue, 27 Jan 2009) | 1 line
Add tests to verify combinatoric relationships.
........
r69012 | raymond.hettinger | 2009-01-27 03:52:35 -0600 (Tue, 27 Jan 2009) | 1 line
Stronger tests for combinatoric relationships.
........
r69014 | raymond.hettinger | 2009-01-27 04:03:04 -0600 (Tue, 27 Jan 2009) | 1 line
Issue 5021: doctest.testfile should set __name__
........
r69018 | raymond.hettinger | 2009-01-27 04:36:14 -0600 (Tue, 27 Jan 2009) | 1 line
More exhaustive combinatoric checks.
........
r69023 | raymond.hettinger | 2009-01-27 07:26:35 -0600 (Tue, 27 Jan 2009) | 1 line
Add more tests for the powerset() recipe.
........