Commit Graph

38148 Commits

Author SHA1 Message Date
Tarek Ziadé 9b6ddb8eb7 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)
........
2009-02-06 09:03:10 +00:00
Tarek Ziadé d33088259b 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
........
2009-02-06 08:22:21 +00:00
Benjamin Peterson 063ff65e2c 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
........
2009-02-06 03:01:24 +00:00
Brett Cannon 7f9876c0da Initial, untested stab at writing a common denominator function for __import__
and import_module.
2009-02-06 02:47:33 +00:00
Benjamin Peterson 5c6d7877c5 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
........
2009-02-06 02:40:07 +00:00
Benjamin Peterson 407c75735f 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.
........
2009-02-06 02:02:07 +00:00
Eric Smith 0e5b562987 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.
........
2009-02-06 01:32:42 +00:00
Tarek Ziadé d3409deddc 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
........
2009-02-06 01:18:36 +00:00
Tarek Ziadé 35e6fd5de9 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
........
2009-02-06 00:53:43 +00:00
Tarek Ziadé a045937b45 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
........
2009-02-06 00:52:52 +00:00
Tarek Ziadé 70a74eb2c4 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.
........
2009-02-06 00:38:35 +00:00
Neil Schemenauer 4d491a535c Distutils apparently requires an absolute path so provide one. 2009-02-06 00:27:50 +00:00
Brett Cannon 6411aa5dd4 Finish implementing tests for importlib.machinery.PathFinder by testing that
implicit hooks are handled properly.
2009-02-06 00:07:49 +00:00
Brett Cannon 1f9bcd38a9 Add tests for using sys.path_hooks by importlib.machinery.PathFinder. 2009-02-05 23:36:02 +00:00
Tarek Ziadé 5874ef16ed 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
........
2009-02-05 22:56:14 +00:00
Brett Cannon 48f5c4eec6 Implement test for sys.path_importer_cache having None for
importlib.machinery.PathFinder.
2009-02-05 22:02:03 +00:00
Neil Schemenauer 014bf28ef1 Make setup.py work when building in a directory other than the
source directory.  Mainly, use 'srcdir' rather than os.getcwd() or
'.'.
2009-02-05 16:35:45 +00:00
Neil Schemenauer c03a288181 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.
2009-02-05 16:35:04 +00:00
Neil Schemenauer 47dc7517cd Fix get_python_inc() to work when building in a directory separate from
the source.  Also, define 'srcdir' on non-posix platforms.
2009-02-05 16:33:41 +00:00
Georg Brandl 85a3cefac9 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...
........
2009-02-05 11:24:04 +00:00
Georg Brandl 6520d82fdf #4992: next() method -> next() function. 2009-02-05 11:01:54 +00:00
Georg Brandl 115fb350fa #5096: document PyErr_PrintEx(). 2009-02-05 10:56:37 +00:00
Georg Brandl f3048e5b96 #5107: document that default encoding is the same as locale.getpreferredencoding(). 2009-02-05 10:47:16 +00:00
Georg Brandl 2ae8ac2bfe #5130: replace "unicode" by "bytes" in examples for sequence types. 2009-02-05 10:40:48 +00:00
Tarek Ziadé 84753dee52 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
........
2009-02-05 09:08:59 +00:00
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