Mark Dickinson
ad41634313
Merged revisions 70430 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70430 | mark.dickinson | 2009-03-17 18:01:03 +0000 (Tue, 17 Mar 2009) | 3 lines
Fix bug in Decimal __format__ method that swapped left and right
alignment.
........
2009-03-17 18:10:15 +00:00
Brett Cannon
44c5481941
Fix a doc typo.
2009-03-16 22:30:11 +00:00
Georg Brandl
7f157864a0
Merged revisions 70397 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70397 | georg.brandl | 2009-03-15 22:53:56 +0100 (So, 15 Mär 2009) | 1 line
#5469 : add with statement to list of name-binding constructs.
........
2009-03-15 21:57:20 +00:00
Nick Coghlan
9309583176
Merged revisions 70378 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70378 | nick.coghlan | 2009-03-15 13:24:46 +1000 (Sun, 15 Mar 2009) | 1 line
Make marshalling errors a little more informative as to what went wrong
........
2009-03-15 05:07:56 +00:00
Brett Cannon
8d11013169
Implement InspectLoader for FrozenImporter.
2009-03-15 02:20:16 +00:00
Brett Cannon
2b9fd47da7
Fix docs for __import__ that say the default for 'level' is -1; it's actually
...
0.
2009-03-15 02:18:41 +00:00
Brett Cannon
a113ac58be
Implement InspectLoader for BuiltinImporter.
2009-03-15 01:41:33 +00:00
Brett Cannon
7aa21f75c1
A few more docstring/API cleanups for importlib.
2009-03-15 00:53:05 +00:00
Brett Cannon
0e0d8a63b1
Clean up docstring from importlib.util.module_for_loader.
2009-03-15 00:00:19 +00:00
Eric Smith
22b1331930
Blocked revisions 70368 via svnmerge
...
........
r70368 | eric.smith | 2009-03-14 10:37:38 -0400 (Sat, 14 Mar 2009) | 1 line
Unicode format tests weren't actually testing unicode. This was probably due to the original backport from py3k.
........
2009-03-14 14:44:03 +00:00
Eric Smith
8ec90443f5
Merged revisions 70364 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70364 | eric.smith | 2009-03-14 07:57:26 -0400 (Sat, 14 Mar 2009) | 17 lines
Issue 5237, Allow auto-numbered replacement fields in str.format() strings.
For simple uses for str.format(), this makes the typing easier. Hopfully this
will help in the adoption of str.format().
For example:
'The {} is {}'.format('sky', 'blue')
You can mix and matcth auto-numbering and named replacement fields:
'The {} is {color}'.format('sky', color='blue')
But you can't mix and match auto-numbering and specified numbering:
'The {0} is {}'.format('sky', 'blue')
ValueError: cannot switch from manual field specification to automatic field numbering
Will port to 3.1.
........
2009-03-14 12:29:34 +00:00
Antoine Pitrou
350370c25f
Merged revisions 70356 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70356 | antoine.pitrou | 2009-03-14 01:07:21 +0100 (sam., 14 mars 2009) | 3 lines
Issue #1222 : locale.format() bug when the thousands separator is a space character.
........
2009-03-14 00:13:13 +00:00
Antoine Pitrou
a28fcfdbda
Issue #5016 : FileIO.seekable() could return False if the file position
...
was negative when truncated to a C int. Patch by Victor Stinner.
2009-03-13 23:42:55 +00:00
Antoine Pitrou
0ae29cf617
The error detection code in FileIO.close() could fail to reflect the `errno` value, and report it as -1 instead.
2009-03-13 22:33:17 +00:00
Antoine Pitrou
652e7076fe
Issue #5392 : when a very low recursion limit was set, the interpreter would
...
abort with a fatal error after the recursion limit was hit twice.
2009-03-13 19:25:20 +00:00
Georg Brandl
ae2dbe2543
#5486 : typos.
2009-03-13 19:04:40 +00:00
Brett Cannon
f87e04d339
Finish properly hiding importlib implementation code.
2009-03-12 22:47:53 +00:00
Brett Cannon
e9103d2619
Last big re-organization of importlib._bootstrap. Should actually be able to find something in the file now.
2009-03-12 22:37:06 +00:00
Brett Cannon
ce43ddfee5
Do a little bit of reorganization on importlib._bootstrap.
2009-03-12 22:28:55 +00:00
Brett Cannon
3eeaa0a821
Make utility code in importlib._bootstrap private.
2009-03-12 22:07:17 +00:00
Brett Cannon
9495f182a0
Define importlib.__init__.__all__.
2009-03-12 22:01:40 +00:00
Raymond Hettinger
2c109ab514
Issue 5477: Fix buglet in the itertools documentation.
2009-03-12 00:29:44 +00:00
Raymond Hettinger
6c4b4b2267
Add reference to solution for a commonly asked question.
2009-03-12 00:25:29 +00:00
Tarek Ziadé
516db94459
Merged revisions 70308 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r70308 | tarek.ziade | 2009-03-11 13:48:04 +0100 (Wed, 11 Mar 2009) | 1 line
Issue #5472 : Fixed distutils.test_util tear down
........
2009-03-11 12:52:00 +00:00
Brett Cannon
c59cd68847
Add a NOTE for importlib to fill in the docstrings for the ABCs.
2009-03-11 05:14:27 +00:00
Brett Cannon
d8e9526a5e
Blocked revisions 70305 via svnmerge
...
........
r70305 | brett.cannon | 2009-03-10 21:51:06 -0700 (Tue, 10 Mar 2009) | 5 lines
Require implementations for warnings.showwarning() support the 'line' argument.
Was a DeprecationWarning for not supporting it since Python 2.6.
Closes issue #3652 .
........
2009-03-11 05:11:02 +00:00
Raymond Hettinger
150fb9c7c6
Record version added as 3.1.
2009-03-10 22:48:06 +00:00
Raymond Hettinger
5bb0f0e072
For collections.deque() objects, expose the maxlen parameter as a read-only attribute.
2009-03-10 12:56:32 +00:00
Raymond Hettinger
060c7f6bba
Small optimization for corner case where maxlen==0.
2009-03-10 09:36:07 +00:00
Brett Cannon
2cf03a8204
Implement importlib.util.set_loader: a decorator to automatically set
...
__loader__ on modules.
2009-03-10 05:17:37 +00:00
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