[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: strings
- From: Gavin Wraith <gavin@...>
- Date: Sat, 14 Oct 2006 09:59:43 +0100
In message <d010fc8a0610140018s79bcd587h9102360e4a250c39@mail.gmail.com> you wrote:
> I can write
>
> s="xxxxxxxx"
> print(s:upper())
>
> why not
>
> "xxxxxxxxxx":upper()
>
> ?
Because "xxxxxxxxxx" is not an identifier but an expression?
Try ("xxxxxxxxxx"):upper() .
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/