Shane Hathaway wrote:
Nick Coghlan wrote:
Which means finding a different name for '__else__'. Two possibilities that
occur to me are '__ok__' or '__no_except__'. The latter makes a fair
amount of sense, since I can't think of a way to refer to the thing other
than as a 'no exception' handler.
Toby Dickenson [EMAIL PROTECTED] wrote:
On Sunday 24 April 2005 07:42, Nick Coghlan wrote:
Shane Hathaway wrote:
While we're on the subject of block handler method names, do the method
names need four underscores? 'enter' and 'exit' look better than
'__enter__' and '__exit__'.
OK, EXTRA_CFLAGS support has been checked into Makefile.pre.in and
distutils.sysconfig . Martin, please double-check I tweaked sysconfig the way
you wanted. I also wasn't sure of compatibility for Distutils (first time
touching it); checked PEP 291 but Distutils wasn't listed. I went ahead and
Hi Nick,
On Sun, Apr 24, 2005 at 12:40 +1000, Nick Coghlan wrote:
Seeing this example has convinced me of something. PEP 310 should use the
'with' keyword, and 'expression block' syntax should be used to denote the
'default object' semantics proposed for Python 3K. For example:
While that
After reading a lot of contributions (though perhaps not all -- this
thread seems to bifurcate every time someone has a new idea :-) I'm
back to liking yield for the PEP 310 use case. I think maybe it was
Doug Landauer's post mentioning Beta, plus scanning some more examples
of using yield in
A few weeks ago I put together a patch to site.py for Python 2.5
http://python.org/sf/1174614 that solves three major deficiencies:
(1) All site dirs must exist on the filesystem: Since PEP 302 (New
Import Hooks) was adopted, this is not necessarily true.
sys.meta_path and sys.path_hooks can
Guido van Rossum wrote:
[SNIP]
Now let me propose a strawman for the translation of the latter into
existing semantics. Let's take the generic case:
with VAR = EXPR:
BODY
This would translate to the following code:
[SNIP]
it = EXPR
err = None
while True:
The 2GB bug that was supposed to be fixed in
http://python.org/sf/679953 was not actually fixed. The zipinfo
offsets in the structures are still signed longs, so the fix allows you
to write one file that extends past the 2G boundary, but if any extend
past that point you are screwed.
I have
At 04:57 PM 4/24/05 -0700, Guido van Rossum wrote:
So a block could return a value to the generator using a return
statement; the generator can catch this by catching ReturnFlow.
(Syntactic sugar could be VAR = yield ... like in Ruby.)
[uncontrolled drooling, followed by much rejoicing]
If this
On Apr 24, 2005, at 11:32 PM, Phillip J. Eby wrote:
At 04:57 PM 4/24/05 -0700, Guido van Rossum wrote:
So a block could return a value to the generator using a return
statement; the generator can catch this by catching ReturnFlow.
(Syntactic sugar could be VAR = yield ... like in Ruby.)
10 matches
Mail list logo