On Fri, Oct 18, 2013 at 11:31 AM, Dhananjay Nene <dhananjay.n...@gmail.com>wrote:
> On Tue, Oct 15, 2013 at 4:44 PM, s|s <supr.e.etse...@gmail.com> wrote: > > 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. > > How so ? > > To me, OO Paradigm is not about having a keyword **class** in a language but the sense of constructing an ensemble of programmed units which makes sense together. To illustrate, GObject in Gtk+ is as much a first rate OO implementation as any other. In fact some of the new breed of languages like Golang do not follow conventional structure of OOP popularized by C++ and Java. > > > > 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. > > Can you cite an example ? > > Lets look at integer as an example in Python (int) class int(object) int(x[, base]) -> integer which is unlike java where int is a "basic" non-class type. An explicit upgrade to **Integer** class is required to use OOP features. This is done with sole purpose of machine efficiency. > > To this end Python developers must have thought of > > data hiding as not an important language goal. > > The traceability of the above "to this end" to "data hiding as not an > important language goal" is very unclear. Could you clarify > > Python, to me, seems to lean towards reducing development time. To "this end" simple implementation is used instead of grand frameworks. Data hiding with public, private, protected is just one of these frames. Yes again I am critiquing Java. > > > > 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 > > > > -- > > ---------------------------------------------------------------------------------------------------------------------------------- > http://blog.dhananjaynene.com twitter: @dnene google plus: > http://gplus.to/dhananjaynene > _______________________________________________ > 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