Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Dhananjay Nene
Am going to sign out of this discussion. It would not be correct to say it is reaching the point of diminishing returns. In fact for myself it has turned more interesting. But its turned a bit esoteric. Have been doing up some more reading and I drew a few conclusions for myself * Terms don't mean

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:40 PM, Saager Mhatre wrote: > On Mon, Oct 21, 2013 at 7:11 PM, Dhananjay Nene > wrote: > >> Since you suggested that "Superior constructs >> implemented inferiorly." and did not respond to the line which >> wondered if that was based on syntactic or stylistic difference

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Sirtaj Singh Kang
On 10/22/2013 1:10 PM, Saager Mhatre wrote: [snip] I guess we're going to have to agree to disagree on that last point. I don't find the MOP implementation in Ruby or Groovy less per for many or leading to obscure code. On the contrary, I find Python's 'rough-and-ready tools' make for more confus

Re: [BangPypers] Object Oriented Programming in python

2013-10-22 Thread Saager Mhatre
On Oct 22, 2013 10:54 AM, "Sirtaj Singh Kang" wrote: > > I agree with you partially - MOP in python can get ugly, but there's plenty of power there. I'll try to explain, though this stuff is notoriously hard to articulate (may be just for me). > Oh, trust me, it's not just you! We should start a

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Sirtaj Singh Kang
On 10/21/2013 11:53 AM, Saager Mhatre wrote: [snip] That's pretty much what always foiled my attempts at understanding Python MetaClasses, I was looking for power where there was none to find. The best comparison I could find was to Groovy's Compile time AST transforms, but even those are even m

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:46 PM, Saager Mhatre wrote: > On Fri, Oct 18, 2013 at 11:33 AM, Dhananjay Nene > wrote: > >> On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa >> wrote: >> > Also take a look at videos by Raymond Hettinger >> > http://pyvideo.org/speaker/138/raymond-hettinger >> >> I have

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj 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 lo

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
On Fri, Oct 18, 2013 at 11:33 AM, Dhananjay Nene wrote: > On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa > wrote: > > Also take a look at videos by Raymond Hettinger > > http://pyvideo.org/speaker/138/raymond-hettinger > > I have some serious reservations on how OO is packaged here. Wanted to > p

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
On Mon, Oct 21, 2013 at 7:11 PM, Dhananjay Nene wrote: > Since you suggested that "Superior constructs > implemented inferiorly." and did not respond to the line which > wondered if that was based on syntactic or stylistic differences, I believe I responded to that statement by saying that the d

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 6:42 PM, Saager Mhatre wrote: > On Oct 21, 2013 3:21 PM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 3:02 PM, Saager Mhatre > wrote: >> > On Oct 21, 2013 12:09 PM, "Dhananjay Nene" > wrote: >> >> >> >> On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre < > saager.

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
On Oct 21, 2013 3:21 PM, "Dhananjay Nene" wrote: > > On Mon, Oct 21, 2013 at 3:02 PM, Saager Mhatre wrote: > > On Oct 21, 2013 12:09 PM, "Dhananjay Nene" wrote: > >> > >> On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre < saager.mha...@gmail.com> > > wrote: > >> > On Oct 21, 2013 11:39 AM, "Dhana

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 3:02 PM, Saager Mhatre wrote: > On Oct 21, 2013 12:09 PM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre > wrote: >> > On Oct 21, 2013 11:39 AM, "Dhananjay Nene" > wrote: >> >> >> >> On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre < > saage

Re: [BangPypers] Object Oriented Programming in python

2013-10-21 Thread Saager Mhatre
On Oct 21, 2013 12:09 PM, "Dhananjay Nene" wrote: > > On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre wrote: > > On Oct 21, 2013 11:39 AM, "Dhananjay Nene" wrote: > >> > >> On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre < saager.mha...@gmail.com> > > wrote: > >> > >> > Which generally lead to p

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 11:53 AM, Saager Mhatre wrote: > On Oct 21, 2013 11:39 AM, "Dhananjay Nene" wrote: >> >> On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre > wrote: >> >> > Which generally lead to poor (or at least poorer) abstractions; but I > digress. >> >> Leaky ?? :) > > For the most p

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 11:39 AM, "Dhananjay Nene" wrote: > > On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre wrote: > > > Which generally lead to poor (or at least poorer) abstractions; but I digress. > > Leaky ?? :) For the most part, yes. > > > >> I think OOPs concepts across a number of languages

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 11:34 AM, "Noufal Ibrahim" wrote: > > [...] > > It's the final frontier beyond which space lies (sorry). > Dude, Space __is__ the final frontier! (Heh, see what I did there? :) Anyway, thanks for the other refs. - d ___ BangPypers mail

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Mon, Oct 21, 2013 at 10:55 AM, Saager Mhatre wrote: > On Oct 15, 2013 4:10 AM, "Dhananjay Nene" wrote: >> >> On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj > wrote: >> > Hi fellow python lovers, >> > >> > I wanted to do OOPS programming in python, but i just found out that > there are no private

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 11:14 AM, "Noufal Ibrahim" wrote: > > Saager Mhatre writes: > > > [...] > > > since even slots are accessible from outside an object > > __slots__ are not meant for data hiding. They're meant as a final "trick" to save memory when you have a large number of objects of the class yo

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 21, 2013 1:18 AM, "s|s" wrote: > > 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 w

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Noufal Ibrahim
Saager Mhatre writes: [...] > Sigh! Implementing a reasonably important feature in an obscure manner > (that too, not completely, since even slots are accessible from > outside an object) is not in keeping with friendliness. I say this > feature is reasonably important since it is repeatedly br

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 18, 2013 10:54 AM, "s|s" 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 "loo

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Saager Mhatre
On Oct 15, 2013 4:10 AM, "Dhananjay Nene" wrote: > > On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj 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 p

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread Dhananjay Nene
On Fri, Oct 18, 2013 at 5:58 PM, s|s wrote: > On Fri, Oct 18, 2013 at 11:31 AM, Dhananjay Nene > wrote: > >> On Tue, Oct 15, 2013 at 4:44 PM, s|s wrote: >> > Hi Pranav, >> > >> > I would pose a counter question regarding object oriented programming. >> How >> > did you learn OOP concepts? I am as

Re: [BangPypers] Object Oriented Programming in python

2013-10-20 Thread s|s
On Fri, Oct 18, 2013 at 11:31 AM, Dhananjay Nene wrote: > On Tue, Oct 15, 2013 at 4:44 PM, s|s 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

Re: [BangPypers] Object Oriented Programming in python

2013-10-17 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 4:44 PM, s|s 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 sh

Re: [BangPypers] Object Oriented Programming in python

2013-10-17 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 2:33 PM, Dhruv Baldawa wrote: > Also take a look at videos by Raymond Hettinger > http://pyvideo.org/speaker/138/raymond-hettinger I have some serious reservations on how OO is packaged here. Wanted to post a detailed and articulate opinion, but it is going to take a while

Re: [BangPypers] Object Oriented Programming in python

2013-10-17 Thread s|s
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

Re: [BangPypers] Object Oriented Programming in python

2013-10-15 Thread Dhruv Baldawa
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 wrote: > Dear Pranav, > > The following video would get you understand better > http://www.sagemath.org/help-vid

Re: [BangPypers] Object Oriented Programming in python

2013-10-15 Thread T S KAMATH
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 wrote: Hi fellow python lovers, I wanted to do OOPS programming in python, but i

Re: [BangPypers] Object Oriented Programming in python

2013-10-14 Thread Dhananjay Nene
On Tue, Oct 15, 2013 at 1:46 AM, Pranav Raj 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 l

[BangPypers] Object Oriented Programming in python

2013-10-14 Thread Pranav Raj
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,