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

15 years agoIssue #1717: rename tp_compare to tp_reserved. I'll change the
Mark Dickinson [Mon, 2 Feb 2009 20:36:42 +0000 (20:36 +0000)]
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.

15 years agoAdd some notes for importlib to package up what is in Python 2.7 as well as modules...
Brett Cannon [Mon, 2 Feb 2009 20:32:29 +0000 (20:32 +0000)]
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.

15 years agoTo prevent another screw-up on my part where my prototype gets lost thanks to
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.

15 years agomerging / reimplementing r68532 from the trunk to Py3k
Kristján Valur Jónsson [Mon, 2 Feb 2009 16:04:04 +0000 (16:04 +0000)]
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

15 years agoMerged revisions 69205 via svnmerge from
Martin v. Löwis [Mon, 2 Feb 2009 15:32:22 +0000 (15:32 +0000)]
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.
........

15 years agoMerged revisions 69200 via svnmerge from
Hirokazu Yamamoto [Mon, 2 Feb 2009 09:15:41 +0000 (09:15 +0000)]
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.
........

15 years agoNote to move __package__ stuff over to rpartition to make Nick happy. Also make
Brett Cannon [Mon, 2 Feb 2009 05:58:30 +0000 (05:58 +0000)]
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.

15 years agoRecorded merge of revisions 69195 via svnmerge from
Guilherme Polo [Mon, 2 Feb 2009 01:02:20 +0000 (01:02 +0000)]
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.
........

15 years agoRemove exception for non-NULL tp_compare that was introduced in r69188.
Mark Dickinson [Sun, 1 Feb 2009 20:36:08 +0000 (20:36 +0000)]
Remove exception for non-NULL tp_compare that was introduced in r69188.

15 years agoIssue #1717: documentation fixes related to the cmp removal.
Mark Dickinson [Sun, 1 Feb 2009 14:18:10 +0000 (14:18 +0000)]
Issue #1717: documentation fixes related to the cmp removal.

15 years agoIssue #1717, continued: remove PyObject_Compare and Py_CmpToRich declarations
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.

15 years agoIssue #1717: remove the cmp builtin function, the C-API functions
Mark Dickinson [Sun, 1 Feb 2009 12:13:56 +0000 (12:13 +0000)]
Issue #1717:  remove the cmp builtin function, the C-API functions
PyObject_Cmp, PyObject_Compare, and various support functions.

15 years agoIssue #1717, stage 2: remove uses of tp_compare in Modules and most
Mark Dickinson [Sun, 1 Feb 2009 10:28:51 +0000 (10:28 +0000)]
Issue #1717, stage 2: remove uses of tp_compare in Modules and most
Objects.

15 years agoSimplify write_bytecode for importlib.
Brett Cannon [Sun, 1 Feb 2009 06:07:57 +0000 (06:07 +0000)]
Simplify write_bytecode for importlib.

15 years agoUpdate importlib notes.
Brett Cannon [Sun, 1 Feb 2009 05:55:23 +0000 (05:55 +0000)]
Update importlib notes.

15 years agoDitch read_source() and read_bytecode() and replace with *_path() and
Brett Cannon [Sun, 1 Feb 2009 05:43:31 +0000 (05:43 +0000)]
Ditch read_source() and read_bytecode() and replace with *_path() and
get_data().

15 years agoExpose source_path and bytecode_path on _PyFileLoader.
Brett Cannon [Sun, 1 Feb 2009 05:33:17 +0000 (05:33 +0000)]
Expose source_path and bytecode_path on _PyFileLoader.

15 years agoRemove an outdated todo item from importlib.
Brett Cannon [Sun, 1 Feb 2009 05:04:06 +0000 (05:04 +0000)]
Remove an outdated todo item from importlib.

15 years agoMove import semantic util code to importlib.test.import_.util.
Brett Cannon [Sun, 1 Feb 2009 04:28:04 +0000 (04:28 +0000)]
Move import semantic util code to importlib.test.import_.util.

15 years agoRename importlib.test.support to importlib.test.util.
Brett Cannon [Sun, 1 Feb 2009 04:00:05 +0000 (04:00 +0000)]
Rename importlib.test.support to importlib.test.util.

15 years agoDo not execute the .pyc/.pyo files as well as the .py files.
Brett Cannon [Sun, 1 Feb 2009 03:51:54 +0000 (03:51 +0000)]
Do not execute the .pyc/.pyo files as well as the .py files.

15 years agoSplit out support code that is specific to source tests out of
Brett Cannon [Sun, 1 Feb 2009 03:08:31 +0000 (03:08 +0000)]
Split out support code that is specific to source tests out of
importlib.test.support to importlib.test.source.util.

15 years agoMove source loader tests (including reload tests) over to
Brett Cannon [Sun, 1 Feb 2009 02:05:11 +0000 (02:05 +0000)]
Move source loader tests (including reload tests) over to
importlib.test.abc.LoaderTests.

15 years agoFix importlib.machinery.FrozenImporter.load_module() to set __package__
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.

15 years agoMove extension module loader tests over to importlib.test.abc.LoaderTests.
Brett Cannon [Sun, 1 Feb 2009 00:49:41 +0000 (00:49 +0000)]
Move extension module loader tests over to importlib.test.abc.LoaderTests.

15 years agoMove built-in loader tests to importlib.test.abc.LoaderTests.
Brett Cannon [Sun, 1 Feb 2009 00:37:13 +0000 (00:37 +0000)]
Move built-in loader tests to importlib.test.abc.LoaderTests.

15 years agodocumentation wording fix for issue4903
Gregory P. Smith [Sun, 1 Feb 2009 00:30:50 +0000 (00:30 +0000)]
documentation wording fix for issue4903

15 years agoBlocked revisions 69146,69149 via svnmerge
Benjamin Peterson [Sat, 31 Jan 2009 22:17:25 +0000 (22:17 +0000)]
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
........

15 years agofix indentation again
Benjamin Peterson [Sat, 31 Jan 2009 22:14:21 +0000 (22:14 +0000)]
fix indentation again

15 years agoBlocked revisions 69134 via svnmerge
Benjamin Peterson [Sat, 31 Jan 2009 16:41:58 +0000 (16:41 +0000)]
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
........

15 years agodetabify Objects/unicodeobject.c
Benjamin Peterson [Sat, 31 Jan 2009 16:36:08 +0000 (16:36 +0000)]
detabify Objects/unicodeobject.c

15 years agoMake Python/makeopcodetargets runnable with Python 2.3. With any luck, this
Mark Dickinson [Sat, 31 Jan 2009 12:12:41 +0000 (12:12 +0000)]
Make Python/makeopcodetargets runnable with Python 2.3.  With any luck, this
should solve the 'failed compile' on the x86 gentoo 3.x buildbot.

15 years agocomprehrensions now have proper scoping #5106
Benjamin Peterson [Sat, 31 Jan 2009 03:57:19 +0000 (03:57 +0000)]
comprehrensions now have proper scoping #5106

15 years agoMerged revisions 68840,68881,68943,68945 via svnmerge from
Benjamin Peterson [Fri, 30 Jan 2009 04:00:29 +0000 (04:00 +0000)]
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
........

15 years agoMerged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from
Benjamin Peterson [Fri, 30 Jan 2009 03:39:35 +0000 (03:39 +0000)]
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
........

15 years agoIssue #5041: Fixed memory leak.
Hirokazu Yamamoto [Fri, 30 Jan 2009 03:15:05 +0000 (03:15 +0000)]
Issue #5041: Fixed memory leak.

15 years agoBlocked revisions 68772,68892,69039 via svnmerge
Benjamin Peterson [Fri, 30 Jan 2009 03:01:08 +0000 (03:01 +0000)]
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
........

15 years agofix a case of set_daemon #5087
Benjamin Peterson [Fri, 30 Jan 2009 02:29:43 +0000 (02:29 +0000)]
fix a case of set_daemon #5087

15 years agoThe trace module was trying to turn ints into ints since co_lnotab was changed
Brett Cannon [Fri, 30 Jan 2009 01:31:34 +0000 (01:31 +0000)]
The trace module was trying to turn ints into ints since co_lnotab was changed
to a bytes object.

15 years agoMerge testing ABCs for importlib into importlib.test.abc.
Brett Cannon [Fri, 30 Jan 2009 00:22:35 +0000 (00:22 +0000)]
Merge testing ABCs for importlib into importlib.test.abc.

15 years agoMerged revisions 69106 via svnmerge from
Tarek Ziadé [Thu, 29 Jan 2009 23:54:06 +0000 (23:54 +0000)]
Merged revisions 69106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69106 | tarek.ziade | 2009-01-30 00:49:17 +0100 (Fri, 30 Jan 2009) | 1 line

  fixed test_make_distribution so it runs on any platform, as long as tar an gzip are available
........

15 years agoFix error in docs. The source says proto 2 is the default.
Raymond Hettinger [Thu, 29 Jan 2009 22:26:20 +0000 (22:26 +0000)]
Fix error in docs.  The source says proto 2 is the default.

15 years agoMerged revisions 69100 via svnmerge from
Antoine Pitrou [Thu, 29 Jan 2009 20:26:59 +0000 (20:26 +0000)]
Merged revisions 69100 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69100 | antoine.pitrou | 2009-01-29 21:19:34 +0100 (jeu., 29 janv. 2009) | 5 lines

  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").
........

15 years agoFix issue5076: bdist_wininst fails on py3k
Mark Hammond [Thu, 29 Jan 2009 13:08:01 +0000 (13:08 +0000)]
Fix issue5076: bdist_wininst fails on py3k

15 years agoMerged revisions 69094 via svnmerge from
Mark Hammond [Thu, 29 Jan 2009 12:36:50 +0000 (12:36 +0000)]
Merged revisions 69094 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69094 | mark.hammond | 2009-01-29 23:13:31 +1100 (Thu, 29 Jan 2009) | 2 lines

  Fix issue5075: bdist_wininst should not depend on the vc runtime?
........

15 years agoMerged revisions 69078-69080 via svnmerge from
Brett Cannon [Thu, 29 Jan 2009 04:10:21 +0000 (04:10 +0000)]
Merged revisions 69078-69080 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69078 | brett.cannon | 2009-01-28 16:54:11 -0800 (Wed, 28 Jan 2009) | 2 lines

  Clarify some __del__ stuff.
........
  r69079 | brett.cannon | 2009-01-28 16:54:32 -0800 (Wed, 28 Jan 2009) | 2 lines

  Minor spelling mistake in datetime docs.
........
  r69080 | brett.cannon | 2009-01-28 16:55:33 -0800 (Wed, 28 Jan 2009) | 2 lines

  Ignore .pyc and .pyo files.
........

15 years agoBlocked revisions 69085,69087 via svnmerge
Benjamin Peterson [Thu, 29 Jan 2009 03:52:26 +0000 (03:52 +0000)]
Blocked revisions 69085,69087 via svnmerge

........
  r69085 | raymond.hettinger | 2009-01-28 21:21:42 -0600 (Wed, 28 Jan 2009) | 1 line

  Update itertools.__doc__ to include all tools.
........
  r69087 | raymond.hettinger | 2009-01-28 21:43:44 -0600 (Wed, 28 Jan 2009) | 1 line

  Fix typo.
........

15 years agoFix typo.
Raymond Hettinger [Thu, 29 Jan 2009 03:48:02 +0000 (03:48 +0000)]
Fix typo.

15 years agoUpdate itertools.__doc__ to include all tools.
Raymond Hettinger [Thu, 29 Jan 2009 03:41:55 +0000 (03:41 +0000)]
Update itertools.__doc__ to include all tools.

15 years agoBlocked revisions 68521 via svnmerge
Benjamin Peterson [Thu, 29 Jan 2009 02:14:30 +0000 (02:14 +0000)]
Blocked revisions 68521 via svnmerge

........
  r68521 | hirokazu.yamamoto | 2009-01-10 21:28:13 -0600 (Sat, 10 Jan 2009) | 1 line

  Fixed version number in build_ssl.bat.
........

15 years agoBlocked revisions 69070,69074 via svnmerge
Benjamin Peterson [Thu, 29 Jan 2009 01:59:38 +0000 (01:59 +0000)]
Blocked revisions 69070,69074 via svnmerge

........
  r69070 | raymond.hettinger | 2009-01-28 17:02:26 -0600 (Wed, 28 Jan 2009) | 6 lines

  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.
........

15 years agoCorrect docs for ABCs (MutableSequence was missing __setiem). Simplify the table...
Raymond Hettinger [Thu, 29 Jan 2009 00:01:27 +0000 (00:01 +0000)]
Correct docs for ABCs (MutableSequence was missing __setiem).  Simplify the table by taking out inherited requirements for abstract methods.

15 years agoBeef-up tests for collections ABCs.
Raymond Hettinger [Wed, 28 Jan 2009 23:33:59 +0000 (23:33 +0000)]
Beef-up tests for collections ABCs.

15 years agoIssue #4707: round(x, n) now returns an integer when x is an integer.
Mark Dickinson [Wed, 28 Jan 2009 21:25:58 +0000 (21:25 +0000)]
Issue #4707: round(x, n) now returns an integer when x is an integer.
Previously it returned a float.

15 years agoMerged revisions 69060-69063 via svnmerge from
Guilherme Polo [Wed, 28 Jan 2009 20:40:48 +0000 (20:40 +0000)]
Merged revisions 69060-69063 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69060 | guilherme.polo | 2009-01-28 17:23:28 -0200 (Wed, 28 Jan 2009) | 2 lines

  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.
........

15 years agoMerged revisions 69053 via svnmerge from
Guilherme Polo [Wed, 28 Jan 2009 16:06:51 +0000 (16:06 +0000)]
Merged revisions 69053 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r69053 | guilherme.polo | 2009-01-28 13:56:01 -0200 (Wed, 28 Jan 2009) | 2 lines

  Demos for ttk added.
........