[BangPypers] which is better solution of the question

Harish Mallipeddi harish.mallipeddi at gmail.com
Wed Jun 17 16:20:37 CEST 2009


On Wed, Jun 17, 2009 at 7:14 PM, Srijayanth Sridhar <srijayanth at gmail.com>wrote:

> On Wed, Jun 17, 2009 at 7:11 PM, Anand Chitipothu <anandology at gmail.com>wrote:
>
>> >  If you don't like s[::-1], then the closest would be
>> > ''.join([item for item in reversed(s)]), but that ain't close enough :)
>>
>
> I don't hate it enough to not use it. I am just saying it from a
> perspective of readability I suppose. Coming from Ruby you get used to
> string methods(or for that matter Java)
>
> Jayanth
>
>
Well in Ruby:

1) Strings are mutable (Ruby has symbols which are essentially immutable
strings).
2) All built-in classes are open.

-- 
Harish Mallipeddi
http://blog.poundbang.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090617/c0741c6c/attachment-0001.htm>


More information about the BangPypers mailing list