Guido van Rossum
|
324efa3d31
|
Outdent "return +s" and explain why. Thanks Raymond!
|
2005-05-18 03:58:29 +00:00 |
Guido van Rossum
|
2dcf31c84a
|
Add a variant of the decimal example.
|
2005-05-18 02:53:26 +00:00 |
Guido van Rossum
|
b99aa09cf2
|
Elaborate Decimal context example, thanks to Michael Chermside.
|
2005-05-17 22:15:50 +00:00 |
Ka-Ping Yee
|
2e09a4c99d
|
Simplify implementation of print_chain.
|
2005-05-16 19:12:51 +00:00 |
Guido van Rossum
|
6d466b9e14
|
*Really* move the __enter__ call where it belongs.
|
2005-05-16 13:42:52 +00:00 |
Ka-Ping Yee
|
2b1d6dd3c8
|
Mention GetBaseException in C#.
|
2005-05-16 07:10:22 +00:00 |
Ka-Ping Yee
|
3d514b0e42
|
Add "raise ... from" statement.
Add reference to Perl 6 exception RFC.
|
2005-05-16 06:58:12 +00:00 |
Guido van Rossum
|
22bae2bbd0
|
Move the __enter__ call out of the try suite. I was nuts putting it
inside.
|
2005-05-16 00:36:01 +00:00 |
Guido van Rossum
|
cc6ea270d6
|
Rejecting PEP 340 in favor of PEP 343.
|
2005-05-16 00:34:33 +00:00 |
Ka-Ping Yee
|
84ea75eb01
|
Update Rationale.
|
2005-05-15 23:53:56 +00:00 |
Ka-Ping Yee
|
43671683c9
|
Add __cause__ and language comparisons.
|
2005-05-15 23:29:56 +00:00 |
Ka-Ping Yee
|
c2c4af5fd7
|
Add PEP 344. Shorten title to make it fit in PEP 0.
|
2005-05-15 19:49:01 +00:00 |
Ka-Ping Yee
|
f9e92a3824
|
Add PEP 344: Exception Chaining and the Traceback Attribute.
|
2005-05-15 19:30:38 +00:00 |
David Goodger
|
5c42550605
|
fixed typos
|
2005-05-15 00:45:42 +00:00 |
Guido van Rossum
|
cea61e0c0a
|
__exit__ is always called with 3 args.
|
2005-05-14 17:36:15 +00:00 |
Guido van Rossum
|
9dccdb93a1
|
Break last line of intro differently so "PEP 310" can be a hyperlink.
|
2005-05-14 05:20:21 +00:00 |
Guido van Rossum
|
72d772445b
|
Explain the __exit__() signature.
|
2005-05-14 05:18:36 +00:00 |
Guido van Rossum
|
a83f881582
|
Slight elaboration for readers who don't recall PEP 310.
|
2005-05-14 05:08:23 +00:00 |
Guido van Rossum
|
33cff6d943
|
Add a motivational section, remove tabs, add colons, and some very
minor edits.
|
2005-05-14 05:02:28 +00:00 |
Guido van Rossum
|
3df485114c
|
Various clarifications. Mention Decimal context example. Clarify
that I don't like having files etc. implement __enter__ and __exit__
directly.
|
2005-05-14 04:02:10 +00:00 |
Guido van Rossum
|
e9086b2485
|
Don't be wishy-washy about the call to __exit__().
Fix the redirecting_stdout() example (remove the try/finally).
|
2005-05-14 02:02:40 +00:00 |
Guido van Rossum
|
3e348d5237
|
Add PEP 343: Anonymous Block Redux
|
2005-05-14 00:08:20 +00:00 |
Guido van Rossum
|
4f5abc4b4f
|
Note that 'yield' w/o an EXPR is currently illegal.
|
2005-05-11 22:09:37 +00:00 |
Guido van Rossum
|
9cb17e5426
|
Split PEP 342 (Enhanced Iterators) off of PEP 340.
|
2005-05-11 21:58:43 +00:00 |
Guido van Rossum
|
cd4723bc31
|
Fix the grammar, with Reinhold's approval.
|
2005-05-11 21:29:16 +00:00 |
David Goodger
|
b8122feb32
|
added PEP 341, "Unifying try-except and try-finally", by Reinhold Birkenfeld
|
2005-05-07 12:13:49 +00:00 |
Guido van Rossum
|
57968c2010
|
There's no need to be fuzzy about the moreal equivalent of "raise
*exc".
|
2005-05-06 14:38:09 +00:00 |
Guido van Rossum
|
87d2fd6de8
|
Mention some rejected ideas (and explain why).
|
2005-05-05 15:39:19 +00:00 |
Guido van Rossum
|
fa5f960327
|
Fix bug in example 5 found by Reinhold Birkenfeld.
|
2005-05-04 21:00:46 +00:00 |
Guido van Rossum
|
82b1510121
|
Clarify that there are some separable items.
|
2005-05-04 01:03:17 +00:00 |
Guido van Rossum
|
036431dd4f
|
Fix a remnant of the old proposal found by Tim Delaney.
|
2005-05-03 23:51:54 +00:00 |
Guido van Rossum
|
9b82c24996
|
Some clarifications after Raymond's email.
|
2005-05-03 22:23:32 +00:00 |
Guido van Rossum
|
879589d3c5
|
Clarify that the block-statement is a loop to the parser, and don't
use literally translated Dutch.
|
2005-05-03 18:31:34 +00:00 |
Guido van Rossum
|
b96d41a65f
|
saving_stdout -> redirecting_stdout (Phillip Eby).
|
2005-05-03 17:21:13 +00:00 |
Guido van Rossum
|
944216964a
|
Add another example (saving sys.stout).
Eradicate tabs.
|
2005-05-03 16:57:17 +00:00 |
Guido van Rossum
|
45c25ac443
|
Solidify loose ends.
|
2005-05-03 16:32:24 +00:00 |
Guido van Rossum
|
79c7f789bd
|
Fix typo in example 4 found by Chris Ryland.
|
2005-05-02 23:35:52 +00:00 |
Guido van Rossum
|
e4db00a173
|
Delete the last reference to ContinuationIteration.
|
2005-05-02 15:33:47 +00:00 |
Guido van Rossum
|
a7de7b62af
|
Establish the "alternative" version. The exception API is called
__exit__(), and its signature is the same as that of the
raise-statement. Still some loose ends.
|
2005-05-02 03:30:07 +00:00 |
Guido van Rossum
|
b63ff845a3
|
Add a section of loose ends.
|
2005-04-29 18:51:03 +00:00 |
Guido van Rossum
|
885ebd643c
|
Mention else-clauses; the else-clause on the translation of the
for-loop was broken, and the break-statement probabyl shouldn't have
one.
|
2005-04-29 17:13:08 +00:00 |
Skip Montanaro
|
5ae9e6d5e8
|
typos
|
2005-04-29 15:23:34 +00:00 |
Skip Montanaro
|
9dc201b9e4
|
typo
|
2005-04-29 14:44:31 +00:00 |
Guido van Rossum
|
959fdd2fdb
|
Add motivation (supplied by Shane Hathaway).
Explain what happens when a block contains a yield.
Add comparison to thunks.
Add examples.
|
2005-04-29 05:12:38 +00:00 |
Brett Cannon
|
81ccba3725
|
Add mention of exceptions getting a traceback attribute.
|
2005-04-28 20:04:32 +00:00 |
Brett Cannon
|
3543af0fb0
|
Fill out some references for existing points.
|
2005-04-28 18:57:40 +00:00 |
Guido van Rossum
|
c1ee09db09
|
Advanced warning that another rewrite of the exception handling
mechanics is pending.
|
2005-04-27 23:10:42 +00:00 |
Guido van Rossum
|
c3ff8b06c7
|
Settled on an extra argument to __next__() and next() to distinguish
between values and exceptions.
|
2005-04-27 22:41:48 +00:00 |
Guido van Rossum
|
e18916a7b6
|
In the original translation for block-statement, reset ret = False
each time before executing BLOCK1. (Thanks to Duncan Booth.)
|
2005-04-27 21:54:27 +00:00 |
Guido van Rossum
|
a5e037cd4c
|
Add an alternative __next__() API to pass arbitrary exceptions in. I
like this better.
|
2005-04-27 21:12:49 +00:00 |