[BangPypers] Object Oriented Programming in python

Dhananjay Nene dhananjay.nene at gmail.com
Mon Oct 21 08:09:12 CEST 2013

On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre <saager.mhatre at gmail.com> wrote:
> On Oct 15, 2013 4:10 AM, "Dhananjay Nene" <dhananjay.nene at gmail.com> wrote:
>> On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj <pranav09032 at hotmail.com>
> wrote:
>> > Hi fellow python lovers,
>> >
>> > I wanted to do OOPS programming in python, but i just found out that
> there are no private variables in python. Does anyone know why python
> classes have no private variables and why python's OOPS concept are a lot
> different from other programming languages?
>> http://stackoverflow.com/a/1641236/12754
> Meh! Weak arguments, strongly made.
>> I am not sure what the history or reasoning was. But encapsulation is not
> considered particularly desirable or useful.
> Which generally lead to poor (or at least poorer) abstractions; but I
> digress.

Leaky ??  :)
>> I think OOPs concepts across a number of languages are quite different.
> You will find python having superior constructs eg. metaclasses etc. if you
> were comparing Python OOP to C++/Java.
> Superior constructs implemented inferiorly. Meteclasses are much^3 more
> powerful in Groovy, Ruby and SmallTalk (where some would claim Python
> borrowed them from; but that's just not true.)

I wonder if you meant syntactically/stylistically. Would be keen to
learn, if there are examples where ruby / groovy (I don't know much
about smalltalk) allow things that python does not.

More information about the BangPypers mailing list