[C++-sig] GNU gettext and "_"

Niki Spahiev niki at vintech.bg
Thu Jun 20 15:55:00 CEST 2002


David Abrahams wrote:
>>AFAIK *Python* can't slice on anything but integer.
> 
> 
> That's just wrong. See sliceobject.
> 
> 
>>And x[y:] is the
>>same as x[y:sys.maxint] (from recent thread in c.l.py)
> 
> 
> Also wrong.
> 
> class X(object):
>     def getitem(self, key):
>         print key
> 
> print X()['hello':'world']
> print X()['hello':]
> print X()[:'world']

I am still in 2.1 era :(

Niki Spahiev






More information about the Cplusplus-sig mailing list