[BangPypers] which is better solution of the question
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)
Well in Ruby:
1) Strings are mutable (Ruby has symbols which are essentially immutable
2) All built-in classes are open.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the BangPypers