[Numpy-discussion] extension to xrange for numpy

Tim Hochberg tim.hochberg at cox.net
Sun Apr 2 11:34:03 CDT 2006


Arnd Baecker wrote:

>Hi,
>
>On Sun, 2 Apr 2006, Gary Ruben wrote:
>
>  
>
>>A few rough thoughts:
>>    
>>
>
>[... useful stuff snipped ... ]
>
>  
>
>>On the other hand your idea would potentially make some code a lot
>>easier to understand, so I'm not against it and if it was picked up, I'd
>>propose "t" or "w" for the 4th dimension. It might help to post some
>>code that you think might benefit from your idea.
>>    
>>
>
>Hope you don't jump at me, but I would like to
>wait until April 1st next year then ...
>((hmm, maybe my post contained too much of a possible truth
>to be considered as an April fools joke -
>yrange and zrange have been a running gag in our group for
>a while now - strange German humor ...;-))
>
>Anyway, I hope I did not waste too much of your time ...
>  
>

Ouch! Got me anyway...

>Best, Arnd
>
>
>  
>
>>Gary R.
>>
>>Arnd Baecker wrote:
>>    
>>
>>>Dear numpy enthusiasts,
>>>
>>>one python command which is extremely useful in 1D situations
>>>is `xrange`. However, for higher dimensional
>>>settings we strongly lack the commands `yrange` and `zrange`.
>>>These could be shorthands for the corresponding
>>>constructs with `:,NewAxis` added.
>>>
>>>Any comments, suggestion and even implementations are very welcome,
>>>
>>>Arnd
>>>
>>>P.S.: What I am not sure about is the right command for
>>>the 4-dimensional case - which letter should be used after the "z"?
>>>(it seems that "a" would be a very natural choice...)
>>>      
>>>
>>    
>>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Numpy-discussion mailing list
>Numpy-discussion at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>
>
>  
>






More information about the Numpy-discussion mailing list