slice notation as values?

Brian Beck exogen at gmail.com
Sat Dec 10 21:32:51 CET 2005


Antoon Pardon wrote:
> Will it ever be possible to write things like:
> 
>   a = 4:9

I made a silly recipe to do something like this a while ago, not that 
I'd recommend using it. But I also think it wouldn't be too far-fetched
to allow slice creation using a syntax like the above...

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/415500

-- 
Brian Beck
Adventurer of the First Order



More information about the Python-list mailing list