[BangPypers] Object Oriented Programming in python

Dhananjay Nene dhananjay.nene at gmail.com
Fri Oct 18 08:01:10 CEST 2013


On Tue, Oct 15, 2013 at 4:44 PM, s|s <supr.e.etsethi at 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 ?

>
> 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 ?

>  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

>
> 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 <dhruvbaldawa at 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.kamath at 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 <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?
>> >
>> >
>> > thank you, Pranav Raj
>> >
>> > _______________________________________________
>> > BangPypers mailing list
>> > BangPypers at python.org
>> > https://mail.python.org/mailman/listinfo/bangpypers
>> >
>> > _______________________________________________
>> > BangPypers mailing list
>> > BangPypers at python.org
>> > https://mail.python.org/mailman/listinfo/bangpypers
>> >
>> _______________________________________________
>> BangPypers mailing list
>> BangPypers at 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 at python.org
> https://mail.python.org/mailman/listinfo/bangpypers



-- 
----------------------------------------------------------------------------------------------------------------------------------
http://blog.dhananjaynene.com twitter: @dnene google plus:
http://gplus.to/dhananjaynene


More information about the BangPypers mailing list