From: gabriele renzi Date: 2005-12-21T07:52:47+09:00 Subject: Re: Bruce Eckel wouldn't know why to switch from Python to Ruby Steve Litt ha scritto: >>Any Python experts here? :) > > > I'm nowhere near a Python expert (nor a Ruby one) but I'll tell you > one thing -- with Python you can make a private class member only > by prepending a double underscore, and there are no protected class > members at all. I think the encapsulation is better in Ruby. OTOH encapsulation may be considered better in python since you can be (quite) sure that __methods and class variables won't break when redefined by accident in a subclass. Ruby vs Python is mostly a matter of taste, bith are fine languages, and I second Robert Hicks' impression that there were overreactions to Eckel's article from some people.