Re: [Python-3000] The main module in Py3k

2006-07-05 Thread Nick Coghlan
Guido van Rossum wrote: > \On 7/4/06, Giovanni Bajo <[EMAIL PROTECTED]> wrote: >> Guido van Rossum wrote: >> Relative imports from modules executed with -m, however, would now be able to use the normal relative import mechanism and the __module_name__ workaround proposed for the 2.x

[Python-3000] Switch and static, redux

2006-07-05 Thread Guido van Rossum
I'm sitting here at EuroPython listening to a speaker who has analyzed interaction patterns on python-dev. (She represents me as a red dot and Raymond H as a yellow star in a diagram. I'm trying not to read too much into that. :-) One of her comments struck home: the open source development proces

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Thomas Wouters
On 7/5/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: One of her comments struck home: the open source development process,which is often represented as exclusively taking place on line, isactually augmented in a significant way by direct physical interactionbetween developers at events like EuroP

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Andrew Clover
Guido van Rossum <[EMAIL PROTECTED]> wrote: > (I'm not super confident about the syntax alternatives yet.) The switch:-without-indent business still naggingly makes me feel uncomfortable. Is this a valid no-case-switch? switch cake: print 'hello' Here's another syntax off the top of my

Re: [Python-3000] August Google sprint

2006-07-05 Thread Aahz
On Wed, Jul 05, 2006, Thomas Wouters wrote: > > Speaking of that, is anyone else coming to the python-dev sprint at Google > in August? Py3K is one of the topics :) > http://wiki.python.org/moin/GoogleSprint I'd love to because it's local, but I'm actually going to be at Worldcon instead -- dunno

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Georg Brandl
Andrew Clover wrote: > Guido van Rossum <[EMAIL PROTECTED]> wrote: > >> (I'm not super confident about the syntax alternatives yet.) > > The switch:-without-indent business still naggingly makes me feel > uncomfortable. > > Is this a valid no-case-switch? > >switch cake: >print 'hello'

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Guido van Rossum
On 7/5/06, Andrew Clover <[EMAIL PROTECTED]> wrote: > Guido van Rossum <[EMAIL PROTECTED]> wrote: > > > (I'm not super confident about the syntax alternatives yet.) > > The switch:-without-indent business still naggingly makes me feel > uncomfortable. Me too, but only on even-numbered days... > I

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 5, 2006, at 6:54 AM, Guido van Rossum wrote: > So, my proposal is to give up on static, accept PEP 3103 with the > following options: > - Syntax alternative 2+B (unindented cases, 'case in ...' for > multiple cases). > - Semantics option

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Greg Ewing
Guido van Rossum wrote: > So, my proposal is to give up on static, accept PEP 3103 with the > following options: > - Syntax alternative 2+B (unindented cases, 'case in ...' for multiple > cases). > - Semantics option 3 (def-time freezing) I agree with giving up on static, or at least treatin

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Greg Ewing
Andrew Clover wrote: > Here's another syntax off the top of my head - put the first case in the > switch statement? > >switch biscuit.type if 'digestive': >... >elif in 'jammy_dodger', 'garibaldi': >... >else: >... Ugly. -- Greg _

Re: [Python-3000] Switch and static, redux

2006-07-05 Thread Greg Ewing
Georg Brandl wrote: > I'm not very comfortable about the no-additional-indentation-after-colon > syntax too, but I also realize that requiring two levels of indentation > for a single statement is too much. That's a matter of opinion. I don't have any trouble with it, but then I don't tend to set