News for hackers. Stuff that matters.
Re:What's better about Ruby than Python? - comp.lang.python by 16s on Thursday August 26, 2010 @10:12PM (#1637823)
That's an easy one... In Ruby, I can do string.reverse(). Python makes me type string[::-1] to reverse a string. In a nutshell, that is why Ruby is better than Python.

I must admit that I use Python more than Ruby. I like both, but know Python better. I feel Ruby is more consistent though. Either is a good language!

Re:What's better about Ruby than Python? - comp.lang.python by koenigdavidmj on Friday August 27, 2010 @01:11AM (#1638063)
You can actually say `reversed(iterable)`, which returns another iterable yielding everything backwards. Now, this is not returning a string, which leads to some warts:

* list(reversed(a_list)) * "".join(reversed(a_str))

and the like.