Re: [Python-Dev] Caching float(0.0)

2006-10-02 Thread Tim Hochberg
[EMAIL PROTECTED] wrote:\/ > Steve> By these statistics I think the answer to the original question > Steve> is clearly "no" in the general case. > > As someone else (Guido?) pointed out, the literal case isn't all that > interesting. I modified floatobject.c to track a few interesting >

Re: [Python-Dev] Explicit Lexical Scoping (pre-PEP?)

2006-07-06 Thread Tim Hochberg
Ka-Ping Yee wrote: > On Wed, 5 Jul 2006, Guido van Rossum wrote: >> On 7/5/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: >>> Using the classic nonsense example: >>> >>> def counter(num): >>> def inc(): >>> .num += 1 >>> return .num >>> return inc >>>

Re: [Python-Dev] Pre-PEP: Allow Empty Subscript List Without Parentheses

2006-06-09 Thread Tim Hochberg
Alex Martelli wrote: > On Jun 9, 2006, at 4:55 PM, Greg Ewing wrote: > ... > >>Think about how you get from an N dimensional array to >>an N-1 dimensional array: you index it, e.g. >> >> A2 = [[1, 2], [3, 4]] # a 2D array >> >> A1 = A2[1] # a 1D array >> >> A0 = A1[1] # a 0D array??? >> >>

Re: [Python-Dev] Pre-PEP: Allow Empty Subscript List Without Parentheses

2006-06-09 Thread Tim Hochberg
Guido van Rossum wrote: > On 6/9/06, Nicko van Someren <[EMAIL PROTECTED]> wrote: [...] > > The language doesn't have zero-dimensional arrays, although it doesn't > prevent users from defining them. but why would one want to index a > zero-dimensional array, since it has no dimensions? It should b

Re: [Python-Dev] INPLACE_ADD and INPLACE_MULTIPLY oddities in ceval.c

2006-03-29 Thread Tim Hochberg
inplace adds. Similarly for other inplace operations, of course. I'm not certain that all of the consequences of this change would be benign, but it's something to consider. > I'll try harder to see if there is a reasonable example whose behavior > would change... >

[Python-Dev] Roster Deadline

2004-11-30 Thread Tim Hochberg
Hi Larry, FYI: I asked EB about the roster deadline and she says that she doesn't know when it is either. Checking on the Lei Out web page didn't help much either. So, you are no wiser now than at the start of this message. -tim ___ Python-Dev mailing