Hi Pranav,

I would pose a counter question regarding object oriented programming. How
did you learn OOP concepts? I am assuming like most of us, probably through
a C++ or Java course. These courses ingrain a certain expectation of what
OOP should "look like". Which to me seems to be a dis-service to
underpinnings of Object Oriented Paradigm itself.

Python implements OOP differently from imperative languages of C family
like C++ and Java. The reason, I think is C++ and Java are very much driven
towards machine code efficiency whereas Python is very much about
developers productive.  To this end Python developers must have thought of
data hiding as not an important language goal.

Mind you Python does allow data hiding through slots but it is not as
straight forward as C++ or Java.

regards





On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa <dhruvbald...@gmail.com>wrote:

> Also take a look at videos by Raymond Hettinger
> http://pyvideo.org/speaker/138/raymond-hettinger
>
> --
> Dhruv Baldawa
> (http://www.dhruvb.com)
>
>
> On Tue, Oct 15, 2013 at 1:58 PM, T S KAMATH <tsk.kam...@gmail.com> wrote:
>
> > Dear Pranav,
> >
> > The following video would get you understand better
> > http://www.sagemath.org/help-video.html check for Google I_O 2008 -
> > Painless Python Part 1 & 2
> >
> > Srikanth
> >
> > On 14-Oct-2013, at 10:16 PM, Pranav Raj <pranav09...@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?
> >
> >
> > thank you, Pranav Raj
> >
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> > _______________________________________________
> > BangPypers mailing list
> > BangPypers@python.org
> > https://mail.python.org/mailman/listinfo/bangpypers
> >
> _______________________________________________
> BangPypers mailing list
> BangPypers@python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>



-- 
Supreet Sethi
Ph UK: +447859172473
Ph IN: +919811143517
Ph Skype: d_j_i_n_n
Profile: http://www.google.com/profiles/supreet.sethi
Twt: http://twitter.com/djinn
_______________________________________________
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers

Reply via email to