Georg Brandl
b9137848ae
Turn more notes into comments.
2010-07-07 19:04:36 +00:00
Georg Brandl
e789016a70
Make comment out of an awkward note.
2010-07-07 18:51:43 +00:00
Matthias Klose
ddd46ceeb0
Remove whatsnew 2.7 item about --with-computed-gotos.
2010-07-07 11:06:57 +00:00
Georg Brandl
44afa5e6a4
Fix typo.
2010-07-06 22:58:50 +00:00
Vinay Sajip
c15dfd63b3
Minor improvements to logging documentation.
2010-07-06 15:08:55 +00:00
Senthil Kumaran
317ac619a2
Merged revisions 82601 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82601 | senthil.kumaran | 2010-07-06 07:38:36 +0530 (Tue, 06 Jul 2010) | 3 lines
Change 'lowered' to 'lowercased'
........
2010-07-06 03:03:34 +00:00
Senthil Kumaran
37c63a385d
Change 'lowered' to 'lowercased'
2010-07-06 02:08:36 +00:00
Victor Stinner
d64ce7be96
Merged revisions 82597 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82597 | victor.stinner | 2010-07-05 23:36:21 +0200 (lun., 05 juil. 2010) | 2 lines
#9158 : Fix y* format of PyArg_Parse*() functions documentation
........
2010-07-05 21:38:37 +00:00
Victor Stinner
1f1ccc0386
#9158 : Fix y* format of PyArg_Parse*() functions documentation
2010-07-05 21:36:21 +00:00
Georg Brandl
b0f0991cdb
#9166 : NotImplemented is not an exception.
2010-07-05 17:48:38 +00:00
Senthil Kumaran
3592a46c4d
Merged revisions 82570 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82570 | senthil.kumaran | 2010-07-05 17:11:42 +0530 (Mon, 05 Jul 2010) | 3 lines
Fix: Issue9091 Minor documentation clarification.
........
2010-07-05 11:44:49 +00:00
Senthil Kumaran
fa8979867f
Fix: Issue9091 Minor documentation clarification.
2010-07-05 11:41:42 +00:00
Georg Brandl
31a0f86e36
Merged revisions 77316 via svnmerge from
...
svn+ssh://svn.python.org/python/branches/py3k
........
r77316 | georg.brandl | 2010-01-05 11:22:04 +0100 (Di, 05 Jan 2010) | 1 line
Assorted doc fixes by Florent.
........
2010-07-04 17:33:33 +00:00
Brett Cannon
61b14251d3
Make importlib.abc.SourceLoader the primary mechanism for importlib.
...
This required moving the class from importlib/abc.py into
importlib/_bootstrap.py and jiggering some code to work better with the class.
This included changing how the file finder worked to better meet import
semantics. This also led to fixing importlib to handle the empty string from
sys.path as import currently does (and making me wish we didn't support that
instead just required people to insert '.' instead to represent cwd).
It also required making the new set_data abstractmethod create
any needed subdirectories implicitly thanks to __pycache__ (it was either this
or grow the SourceLoader ABC to gain an 'exists' method and either a mkdir
method or have set_data with no data arg mean to create a directory).
Lastly, as an optimization the file loaders cache the file path where the
finder found something to use for loading (this is thanks to having a
sourceless loader separate from the source loader to simplify the code and
cut out stat calls).
Unfortunately test_runpy assumed a loader would always work for a module, even
if you changed from underneath it what it was expected to work with. By simply
dropping the previous loader in test_runpy so the proper loader can be returned
by the finder fixed the failure.
At this point importlib deviates from import on two points:
1. The exception raised when trying to import a file is different (import does
an explicit file check to print a special message, importlib just says the path
cannot be imported as if it was just some module name).
2. the co_filename on a code object is not being set to where bytecode was
actually loaded from instead of where the marshalled code object originally
came from (a solution for this has already been agreed upon on python-dev but has
not been implemented yet; issue8611).
2010-07-03 21:48:25 +00:00
Senthil Kumaran
8d386873c2
Minor change in the wording.
2010-07-03 18:04:31 +00:00
Senthil Kumaran
fe1ad15b4b
Merged revisions 82510 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82510 | senthil.kumaran | 2010-07-03 23:18:22 +0530 (Sat, 03 Jul 2010) | 4 lines
Fix Issue5468 - urlencode to handle bytes and other alternate encodings.
(Extensive tests provided). Patch by Dan Mahn.
........
2010-07-03 17:55:41 +00:00
Senthil Kumaran
df022da3d8
Fix Issue5468 - urlencode to handle bytes and other alternate encodings.
...
(Extensive tests provided). Patch by Dan Mahn.
2010-07-03 17:48:22 +00:00
Georg Brandl
4833e5b874
Remove the need for a "()" empty argument list after opcodes.
2010-07-03 10:41:33 +00:00
Georg Brandl
94e5de0df0
Fix markup.
2010-07-03 10:33:26 +00:00
Georg Brandl
2cb72d3aad
Merged revisions 82483 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82483 | georg.brandl | 2010-07-03 12:25:54 +0200 (Sa, 03 Jul 2010) | 1 line
Add link to bytecode docs.
........
2010-07-03 10:26:54 +00:00
Georg Brandl
f68798b92e
Use the right role.
2010-07-03 10:22:10 +00:00
Georg Brandl
19b7a87121
Wrap and use the correct directive.
2010-07-03 10:21:50 +00:00
Mark Dickinson
f78756a8a8
Merged revisions 82478 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82478 | mark.dickinson | 2010-07-03 10:17:16 +0100 (Sat, 03 Jul 2010) | 9 lines
Merged revisions 82476 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82476 | mark.dickinson | 2010-07-03 10:15:09 +0100 (Sat, 03 Jul 2010) | 1 line
Fix typo in sys.float_info docs.
........
................
2010-07-03 09:18:26 +00:00
Mark Dickinson
39af05fc6e
Merged revisions 82476 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82476 | mark.dickinson | 2010-07-03 10:15:09 +0100 (Sat, 03 Jul 2010) | 1 line
Fix typo in sys.float_info docs.
........
2010-07-03 09:17:16 +00:00
Nick Coghlan
5c8b54eb04
Issue 6507: accept source strings directly in dis.dis(). Original patch by Daniel Urban
2010-07-03 07:36:51 +00:00
Ezio Melotti
795b8e3f13
Merged revisions 82462 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82462 | ezio.melotti | 2010-07-03 02:18:51 +0300 (Sat, 03 Jul 2010) | 17 lines
Merged revisions 82455,82457,82459 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82455 | eric.smith | 2010-07-03 00:44:16 +0300 (Sat, 03 Jul 2010) | 1 line
Moved period outside paren, where it belongs.
........
r82457 | ezio.melotti | 2010-07-03 01:17:29 +0300 (Sat, 03 Jul 2010) | 1 line
#9139 : Add examples for str.format().
........
r82459 | ezio.melotti | 2010-07-03 01:50:39 +0300 (Sat, 03 Jul 2010) | 1 line
#9139 : the thousands separator is new in 2.7. Also add a missing variable in the example.
........
................
2010-07-02 23:22:03 +00:00
Ezio Melotti
d2191e04a4
Merged revisions 82455,82457,82459 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82455 | eric.smith | 2010-07-03 00:44:16 +0300 (Sat, 03 Jul 2010) | 1 line
Moved period outside paren, where it belongs.
........
r82457 | ezio.melotti | 2010-07-03 01:17:29 +0300 (Sat, 03 Jul 2010) | 1 line
#9139 : Add examples for str.format().
........
r82459 | ezio.melotti | 2010-07-03 01:50:39 +0300 (Sat, 03 Jul 2010) | 1 line
#9139 : the thousands separator is new in 2.7. Also add a missing variable in the example.
........
2010-07-02 23:18:51 +00:00
Brett Cannon
8315fd12a5
Some people have mistaken Python bytecode as being stable and unchanging. In
...
reality it's simply an implementation detail for CPython. This point is now
clearly documented in both the docs for dis and the glossary.
Closes issue #7829 . Thanks to Terry Reedy for some initial suggestions on
wording.
2010-07-02 22:03:00 +00:00
Mark Dickinson
769089294a
Merged revisions 82452 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82452 | mark.dickinson | 2010-07-02 21:26:07 +0100 (Fri, 02 Jul 2010) | 9 lines
Merged revisions 82446 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82446 | mark.dickinson | 2010-07-02 19:06:52 +0100 (Fri, 02 Jul 2010) | 1 line
Clarify sys.float_info documentation.
........
................
2010-07-02 20:26:51 +00:00
Mark Dickinson
be5846bfdc
Merged revisions 82446 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82446 | mark.dickinson | 2010-07-02 19:06:52 +0100 (Fri, 02 Jul 2010) | 1 line
Clarify sys.float_info documentation.
........
2010-07-02 20:26:07 +00:00
Nick Coghlan
4bfb7da842
Merged revisions 82441 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82441 | nick.coghlan | 2010-07-03 02:01:53 +1000 (Sat, 03 Jul 2010) | 1 line
Issue 8202 actually caused an unintended behavioural change and was reverted in 2.7 - remove reference from What's New
........
2010-07-02 16:14:05 +00:00
Nick Coghlan
9fc68c4e70
Merged revisions 82439 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82439 | nick.coghlan | 2010-07-03 01:50:14 +1000 (Sat, 03 Jul 2010) | 1 line
Fix a couple of minor nits in What's New before the release goes out
........
2010-07-02 15:57:50 +00:00
Georg Brandl
8971f74c55
Merged revisions 82433 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82433 | georg.brandl | 2010-07-02 09:33:50 +0200 (Fr, 02 Jul 2010) | 1 line
Grammar and markup fixes.
........
2010-07-02 07:41:51 +00:00
Benjamin Peterson
d793847608
Merged revisions 82422 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82422 | benjamin.peterson | 2010-07-01 12:49:01 -0500 (Thu, 01 Jul 2010) | 9 lines
Merged revisions 82420 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82420 | benjamin.peterson | 2010-07-01 12:45:52 -0500 (Thu, 01 Jul 2010) | 1 line
fix fixer name
........
................
2010-07-01 17:51:42 +00:00
Benjamin Peterson
b51b5c4be7
Merged revisions 82420 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82420 | benjamin.peterson | 2010-07-01 12:45:52 -0500 (Thu, 01 Jul 2010) | 1 line
fix fixer name
........
2010-07-01 17:49:01 +00:00
Michael Foord
b3a8984488
Issue 9110. Adding ContextDecorator to contextlib. This enables the creation of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.
2010-06-30 12:17:50 +00:00
Mark Dickinson
881c1b4c10
Merged revisions 82381 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82381 | mark.dickinson | 2010-06-29 21:10:42 +0100 (Tue, 29 Jun 2010) | 9 lines
Merged revisions 82379 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82379 | mark.dickinson | 2010-06-29 21:09:12 +0100 (Tue, 29 Jun 2010) | 1 line
Issue #1789 : clarify that the 'size' column in struct docs refers to standard size.
........
................
2010-06-29 20:11:18 +00:00
Mark Dickinson
719e4e3ba5
Merged revisions 82379 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82379 | mark.dickinson | 2010-06-29 21:09:12 +0100 (Tue, 29 Jun 2010) | 1 line
Issue #1789 : clarify that the 'size' column in struct docs refers to standard size.
........
2010-06-29 20:10:42 +00:00
Benjamin Peterson
f6f3f53714
Merged revisions 82376 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82376 | benjamin.peterson | 2010-06-29 13:36:39 -0500 (Tue, 29 Jun 2010) | 1 line
update for nonlocal keyword
........
2010-06-29 18:40:09 +00:00
Benjamin Peterson
927ccd257f
update for nonlocal keyword
2010-06-29 18:36:39 +00:00
Brett Cannon
0e13c9451e
Make a sentence a little less awkward.
2010-06-29 18:26:11 +00:00
Benjamin Peterson
acf16deeb8
Merged revisions 82373 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82373 | benjamin.peterson | 2010-06-29 10:57:57 -0500 (Tue, 29 Jun 2010) | 1 line
note that byte strings can be raw, too #9114
........
2010-06-29 16:04:46 +00:00
Benjamin Peterson
162dd7484e
note that byte strings can be raw, too #9114
2010-06-29 15:57:57 +00:00
Vinay Sajip
d31f363b48
Added information about pickle security and SocketHandler, and some cross-reference targets.
2010-06-29 15:31:15 +00:00
Benjamin Peterson
714b74d39f
Merged revisions 82354 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r82354 | benjamin.peterson | 2010-06-28 20:27:35 -0500 (Mon, 28 Jun 2010) | 1 line
rephrase and remove uneeded statement
........
2010-06-29 01:30:28 +00:00
Benjamin Peterson
fb288dac9d
rephrase and remove uneeded statement
2010-06-29 01:27:35 +00:00
Senthil Kumaran
783df8d491
Merged revisions 82336 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82336 | senthil.kumaran | 2010-06-28 23:01:40 +0530 (Mon, 28 Jun 2010) | 9 lines
Merged revisions 82334 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82334 | senthil.kumaran | 2010-06-28 22:37:40 +0530 (Mon, 28 Jun 2010) | 3 lines
Documentation correction. urllib2.urlopen.info returns a mimetools.Message instance not HTTPMessage object.
........
................
2010-06-28 17:35:17 +00:00
Senthil Kumaran
13a7eb4529
Merged revisions 82334 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82334 | senthil.kumaran | 2010-06-28 22:37:40 +0530 (Mon, 28 Jun 2010) | 3 lines
Documentation correction. urllib2.urlopen.info returns a mimetools.Message instance not HTTPMessage object.
........
2010-06-28 17:31:40 +00:00
Brett Cannon
0cf9e6a621
Move importlib.abc.SourceLoader to _bootstrap.
...
Required updating code relying on other modules to switch to _bootstrap's
unique module requirements. This led to the realization that
get_code was being too liberal in its exception catching when calling set_data
by blindly grabbing IOError. Shifted the responsibility of safely ignoring
writes to a read-only path to set_data.
Importlib is still not relying on SourceLoader yet; requires creating a
SourcelessLoader and updating the source finder.
2010-06-28 04:57:24 +00:00
Benjamin Peterson
56894b501a
fix versionchanged
2010-06-28 00:16:12 +00:00