Re: [Python-3000] PEP 3100 Comments

2006-05-09 Thread Mike Krell
On 5/9/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 06:19 AM, 9 May 2006 +, Talin <[EMAIL PROTECTED]> wrote: > >Now, generic functions are good at dealing with these kinds of > >situations. However, generic functions (as they are usually concieved) > >can only deal with specific, concrete

Re: [Python-3000] my take on "typeclasses"

2006-05-11 Thread Mike Krell
On 5/11/06, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I think I'm more comfortable with a maximal taxonomy. In a maximal > taxonomy, I'd describe a large set of invariants, attributes, > behavior, etc., and say e.g. "this is how a file behaves". A > particular class can then claim to be a file

Re: [Python-3000] Sky pie: a "var" keyword

2006-10-10 Thread Mike Krell
> > The only sane proposal i've seen that consistently addresses all > > these cases, doesn't create new ambiguous situations, and doesn't > > break most existing Python code is the "nonlocal" declaration. [snip] > Agreed - I believe the only real problem with the idea was that nobody could > com

Re: [Python-3000] Sky pie: a "var" keyword

2006-10-10 Thread Mike Krell
> there's no connection whatsoever between things that are raised now and > then in various forums, and things that are real "seriously hurts people > trying to get things done in Python" warts. Fair enough. > the vast majority of all Python programmers never uses nested functions > at all. Yes,

Re: [Python-3000] Sky pie: a "var" keyword

2006-10-10 Thread Mike Krell
> > Yes, but part of the reason for this may be this very wart. I know > > I'm campaigning for this as a fix for what the OP calls the "read only > > lexical scoping gotcha". A fix for that makes it much more convienent > > to write closures that modify closed-over values, which in turn makes > >

Re: [Python-3000] Sky pie: a "var" keyword

2006-10-11 Thread Mike Krell
> I'm +1 on `nonlocal` as well, having long been bothered by the absence > of something like it. Ka-Ping, will you write a PEP? If not, I'll take > it on. Since a PEP seems to be on the horizon, I just wanted to give a quick mention of what eventually became my favorite spelling of this keyword --

Re: [Python-3000] Cheeseshop

2006-10-17 Thread Mike Krell
> At some point we're going to run out of all the really well-known Monty > Python sketches, at which point people will either come to their senses, > or we are going to see abominations like open source projects named > "dead bishop" or something. Cf. "crunchy frog", a really cool application con

Re: [Python-3000] Alternatives to 'outer'

2006-10-31 Thread Mike Krell
> Is anybody working [on a] PEP? This has gone unanswered for several days, so I wanted to mention that Ka-Ping Yee said in an off-list email from mid-October that he is indeed working on a PEP for this, but it would take a while due to other priorities. Mike __

Re: [Python-3000] The meaning of "global variable"

2006-11-03 Thread Mike Krell
> How about [...] using 'parent' as the keyword? I once proposed 'parent' in a similar thread a long time ago. It's a non-starter because it's a commonly used variable name. Mike ___ Python-3000 mailing list [email protected] http://mail.python

Re: [Python-3000] The meaning of "global variable"

2006-11-05 Thread Mike Krell
> The rule should be: > > The keyword 'nonlocal' causes the lookup to be performed as if there > were no assignments to that variable in the scope containing the > 'nonlocal' declaration. > > No exceptions are needed, and no limitation to the immediately > surrounding scope is needed. Read accesses

Re: [Python-3000] PEP 3104 added

2006-11-09 Thread Mike Krell
Ka-Ping, Thanks for all of your hard work on this. Well done! Mike ___ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mai

Re: [Python-3000] What's the point of annotations?

2007-01-03 Thread Mike Krell
> Also, now that you remind me of it, IronPython could use [annotations] for C# > overloads. FWIW, the IronPython folks are looking for a CPython-compatible syntax for specifying .net attributes. Function decorators (plus class decorators) don't cover all the use cases because so many different

Re: [Python-3000] Support for PEP 3131 (some links to evidence of usage within communities)

2007-05-14 Thread Mike Krell
> One example they give is > > --- > i = revised(i); > とか、 > i = RevisedByMarubatuMethod(i); > とか、 > i = revised_by_marubatu_method(i); > > と書くよりは、 > > i = ○×方式による補正を行う(i); > --- > And of