Commit Graph

38435 Commits

Author SHA1 Message Date
Brett Cannon d43b30b046 Implement get_source for importlib.abc.PyLoader using source_path and get_data. 2009-03-10 03:29:23 +00:00
Raymond Hettinger 28c013dcb4 Fix markup. 2009-03-10 00:07:25 +00:00
Benjamin Peterson 10745a98be fix versionchanged 2009-03-09 21:08:47 +00:00
Benjamin Peterson e0124bd9c3 Merged revisions 69998-69999,70002,70022-70023,70025-70026,70061,70086,70145,70171,70183,70188,70235,70244,70275,70281 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69998 | benjamin.peterson | 2009-02-26 13:04:40 -0600 (Thu, 26 Feb 2009) | 1 line

  the startship is rather outdated now
........
  r69999 | benjamin.peterson | 2009-02-26 13:05:59 -0600 (Thu, 26 Feb 2009) | 1 line

  comma
........
  r70002 | andrew.kuchling | 2009-02-26 16:34:30 -0600 (Thu, 26 Feb 2009) | 1 line

  The curses panel library is now supported
........
  r70022 | georg.brandl | 2009-02-27 10:23:18 -0600 (Fri, 27 Feb 2009) | 1 line

  #5361: fix typo.
........
  r70023 | georg.brandl | 2009-02-27 10:39:26 -0600 (Fri, 27 Feb 2009) | 1 line

  #5363: fix cmpfiles() docs. Another instance where a prose description is twice as long as the code.
........
  r70025 | georg.brandl | 2009-02-27 10:52:55 -0600 (Fri, 27 Feb 2009) | 1 line

  #5344: fix punctuation.
........
  r70026 | georg.brandl | 2009-02-27 10:59:03 -0600 (Fri, 27 Feb 2009) | 1 line

  #5365: add quick look conversion table for different time representations.
........
  r70061 | hirokazu.yamamoto | 2009-02-28 09:24:00 -0600 (Sat, 28 Feb 2009) | 1 line

  Binary flag is needed on windows.
........
  r70086 | benjamin.peterson | 2009-03-01 21:35:12 -0600 (Sun, 01 Mar 2009) | 1 line

  fix a silly problem of caching gone wrong #5401
........
  r70145 | benjamin.peterson | 2009-03-03 16:51:57 -0600 (Tue, 03 Mar 2009) | 1 line

  making the writing more formal
........
  r70171 | facundo.batista | 2009-03-04 15:18:17 -0600 (Wed, 04 Mar 2009) | 3 lines

  Fixed a typo.
........
  r70183 | benjamin.peterson | 2009-03-04 18:17:57 -0600 (Wed, 04 Mar 2009) | 1 line

  add example
........
  r70188 | hirokazu.yamamoto | 2009-03-05 03:34:14 -0600 (Thu, 05 Mar 2009) | 1 line

  Fixed memory leak on failure.
........
  r70235 | benjamin.peterson | 2009-03-07 18:21:17 -0600 (Sat, 07 Mar 2009) | 1 line

  fix funky indentation
........
  r70244 | martin.v.loewis | 2009-03-08 09:06:19 -0500 (Sun, 08 Mar 2009) | 2 lines

  Add Chris Withers.
........
  r70275 | georg.brandl | 2009-03-09 11:35:48 -0500 (Mon, 09 Mar 2009) | 2 lines

  Add missing space.
........
  r70281 | benjamin.peterson | 2009-03-09 15:38:56 -0500 (Mon, 09 Mar 2009) | 1 line

  gzip and bz2 are context managers
........
2009-03-09 21:04:33 +00:00
Benjamin Peterson 07c0a7579b Blocked revisions 70261,70267,70271,70273 via svnmerge
........
  r70261 | raymond.hettinger | 2009-03-09 06:31:39 -0500 (Mon, 09 Mar 2009) | 1 line

  Issue 5443: Fix typo.
........
  r70267 | raymond.hettinger | 2009-03-09 06:57:29 -0500 (Mon, 09 Mar 2009) | 1 line

  Add consume() recipe to itertools docs.
........
  r70271 | raymond.hettinger | 2009-03-09 07:56:23 -0500 (Mon, 09 Mar 2009) | 1 line

  Add cross-reference to the collections docs.
........
  r70273 | georg.brandl | 2009-03-09 09:25:07 -0500 (Mon, 09 Mar 2009) | 2 lines

  #5458: add a note when we started to raise RuntimeErrors.
........
2009-03-09 20:37:13 +00:00
Brett Cannon 9c751b7246 Fix some reST mishaps. 2009-03-09 16:28:16 +00:00
Raymond Hettinger 1d7f4b285f Add cross-reference to the collections docs. 2009-03-09 12:54:35 +00:00
Raymond Hettinger fa007965c8 Add consume() recipe to itertools docs. 2009-03-09 11:55:25 +00:00
Raymond Hettinger 5fa5d4febd Issue 5443: Fix typo. 2009-03-09 11:37:57 +00:00
Brett Cannon e2085bedf1 Clean up importlib NOTES so it only contains short term goals. 2009-03-09 07:54:33 +00:00
Brett Cannon ad876c7083 Clarify an assumption that importlib.abc.PyLoader makes when importing a
package and setting __path__.
2009-03-09 07:53:09 +00:00
Brett Cannon 2a922ed6ad Introduce importlib.abc. The module contains various ABCs related to imports
(mostly stuff specified by PEP 302). There are two ABCs, PyLoader and
PyPycLoader, which help with implementing source and source/bytecode loaders by
implementing load_module in terms of other methods. This removes a lot of
gritty details loaders typically have to worry about.
2009-03-09 03:35:50 +00:00
Benjamin Peterson aa1c8d8899 fix StringIO constructor docs #5452 2009-03-09 02:02:23 +00:00
Brett Cannon ba3fcf17c8 Remove a dead XXX comment. 2009-03-09 01:58:13 +00:00
Brett Cannon 29dff8aada Fix importlib._bootstrap.PyPycLoader.load_module() to better handle
source/bytecode paths and what to do when they don't exist.
2009-03-09 00:14:37 +00:00
Benjamin Peterson 9fd459a3a2 hack StringIO's repr, so it doesn't give an encoding 2009-03-09 00:09:44 +00:00
Benjamin Peterson c4c0eaebbf give TextIOWrapper a repr that tells you the encoding 2009-03-09 00:07:03 +00:00
Brett Cannon f2b55fb5ee Make importlib.test.source.util.write_bytecode reset sys.dont_write_bytecode. 2009-03-09 00:02:01 +00:00
Benjamin Peterson e866206302 PyObject_Unicode -> PyObject_Str 2009-03-08 23:51:13 +00:00
Brett Cannon 1014d42dd3 Minor changes to Python source base loader.
Fixed a bug where 'self' was left off a method call. Was masked by the fact the
source/bytecode loader subclass is always used. Cleaned up when the source path
is fetched. Also made sure ImportError is raised when a source path cannot be
found.
2009-03-08 20:53:50 +00:00
Brett Cannon 79925fdbfe Skip case-sensitivity tests for extension modules if _testcapi cannot be found. 2009-03-08 20:50:32 +00:00
Brett Cannon 3c2ac448ec Fix a typo in a comment. 2009-03-08 20:49:47 +00:00
Antoine Pitrou ec00e2ff45 Add notice about strange behaviour of the bigmem tests 2009-03-07 23:52:26 +00:00
Antoine Pitrou 7cdb495e90 Issue #3700: make test_bigmem py3k-compatible, and add bytes/bytearray tests
(please note: some of the tests /do/ fail when run with a sufficiently large memory parameter (-M),
perhaps because of the str/bytes/bytearray overhaul)
2009-03-07 23:40:49 +00:00
Benjamin Peterson d173589c9d let's get cracking on 3.1a2! 2009-03-07 18:46:21 +00:00
Benjamin Peterson 66b68023e2 tag 3.1a1 2009-03-07 16:37:31 +00:00
Benjamin Peterson a58a626092 bump version to 3.1a1 2009-03-07 16:34:40 +00:00
Benjamin Peterson ee456de5bd update rpm filename 2009-03-07 16:20:24 +00:00
Raymond Hettinger 47aa9897d9 Redocument the empty() and full() methods. 2009-03-07 14:07:37 +00:00
Guilherme Polo f45b4cce7f Merged revisions 70223 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r70223 | guilherme.polo | 2009-03-06 23:14:38 -0300 (Fri, 06 Mar 2009) | 4 lines

  Fixed issue #2638: Show a window constructed with tkSimpleDialog.Dialog only
  after it is has been populated and properly configured in order to prevent
  window flashing.
........
2009-03-07 02:19:14 +00:00
Guilherme Polo 56f5be5317 Merged revisions 70218-70219 via svnmerge from
svn+ssh://pythondev/python/trunk

........
  r70218 | guilherme.polo | 2009-03-06 22:19:12 -0300 (Fri, 06 Mar 2009) | 1 line

  Fixed issue #5193: Guarantee that Tkinter.Text.search returns a string.
........
  r70219 | guilherme.polo | 2009-03-06 22:47:49 -0300 (Fri, 06 Mar 2009) | 4 lines

  Fixed issue #4792: Prevent a segfault in _tkinter by using the
  guaranteed to be safe interp argument given to the PythonCmd in place
  of the Tcl interpreter taken from a PythonCmd_ClientData.
........
2009-03-07 01:54:57 +00:00
Tarek Ziadé b3c6ed5e10 fixed except syntax for py3 2009-03-07 01:12:09 +00:00
Tarek Ziadé 63b64c0211 Merged revisions 70212 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70212 | tarek.ziade | 2009-03-07 01:32:45 +0100 (Sat, 07 Mar 2009) | 1 line

  Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler
........
2009-03-07 00:51:53 +00:00
Benjamin Peterson 113f60740e simplify and beautify code 2009-03-06 23:59:29 +00:00
Antoine Pitrou 0e94189e1b Remove double negative 2009-03-06 23:57:20 +00:00
Raymond Hettinger 611eaf0e66 Document the suggested alternative to emtpy() and full(). 2009-03-06 23:55:28 +00:00
Antoine Pitrou 66913e2213 Issue #5433: Excessive newline detection optimization in IncrementalNewlineDecoder 2009-03-06 23:40:56 +00:00
Antoine Pitrou 2db74c2412 Issue #5429: unaligned access in TextIOWrapper cookie parsing (segfaults on SPARC CPUs, and possibly others) 2009-03-06 21:49:02 +00:00
Hirokazu Yamamoto 54d0df69c0 Issue #5334: array.fromfile() failed to insert values when EOFError was raised.
Reviewed by Benjamin Peterson.
2009-03-06 03:04:07 +00:00
Benjamin Peterson 3aed8d5110 Blocked revisions 70166-70167,70169,70176,70178,70197 via svnmerge
........
  r70166 | georg.brandl | 2009-03-04 12:24:41 -0600 (Wed, 04 Mar 2009) | 2 lines

  Remove obsolete stuff from string module docs.
........
  r70167 | ronald.oussoren | 2009-03-04 15:07:19 -0600 (Wed, 04 Mar 2009) | 2 lines

  Fix issue 5224.
........
  r70169 | ronald.oussoren | 2009-03-04 15:12:17 -0600 (Wed, 04 Mar 2009) | 2 lines

  Fix for issue 5226.
........
  r70176 | ronald.oussoren | 2009-03-04 15:35:05 -0600 (Wed, 04 Mar 2009) | 2 lines

  Fixes issues 3883 and 5194
........
  r70178 | ronald.oussoren | 2009-03-04 16:49:36 -0600 (Wed, 04 Mar 2009) | 2 lines

  Fix for issue #1113328.
........
  r70197 | jesus.cea | 2009-03-05 13:37:37 -0600 (Thu, 05 Mar 2009) | 1 line

  Minor bsddb documentation glitch
........
2009-03-05 22:53:54 +00:00
Benjamin Peterson 394ee00993 remove usage of the deprecated max_buffer_size 2009-03-05 22:33:59 +00:00
Benjamin Peterson 36a30cefd7 properly export PyExc_BlockingIOError 2009-03-05 21:41:50 +00:00
Hirokazu Yamamoto 9b78925970 Merged revisions 70193 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70193 | hirokazu.yamamoto | 2009-03-05 23:52:44 +0900 | 1 line

  mmap.resize for anonymous map is not working yet, so changed to real file mapping...
........
2009-03-05 15:00:28 +00:00
Hirokazu Yamamoto 8e722bcf85 Merged revisions 70189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70189 | hirokazu.yamamoto | 2009-03-05 23:21:12 +0900 | 4 lines

  Issue #5385: Fixed mmap crash after resize failure on windows.

  Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle
  because CreateFileMapping returns NULL when error occurs.
........
2009-03-05 14:33:01 +00:00
Benjamin Peterson 9a8082f107 FileIO.readinto() isn't going anywhere 2009-03-05 00:55:56 +00:00
Benjamin Peterson 5ac89cc885 rather pointless XXX 2009-03-05 00:50:15 +00:00
Benjamin Peterson 5fd871d724 rename 2009-03-05 00:49:53 +00:00
Benjamin Peterson 9363a65b2c fix #4862 in _pyio: reset the decoder on seek(0) 2009-03-05 00:42:09 +00:00
Ronald Oussoren 03cfa7365d These are present in the trunk but no longer in 3.x, which causes problems
during the build of the Mac binary installer.
2009-03-04 23:21:07 +00:00
Ronald Oussoren 8954cd36ba Fix for issue #5408. This only enables test_osx_env when the current build
is actually a framework build on OSX (the only environment where this test
is valid).
2009-03-04 22:57:10 +00:00