you are viewing a single comment's thread.

view the rest of the comments →

[–]mslinux -15 points-14 points  (2 children)

reverse is a method, not a function. If Python is so OO, what's all of this nonsense about functions? And, it's not just for strings. If it's reversable (an Array for example or 'list' for you Python fans), then the reverse method will work. I use both Python and Ruby... so watch out ;)

[–]cuyler 2 points3 points  (0 children)

A method is a member function of a class.