Re: Lost in descriptor land

2016-07-03 Thread Ankush Thakur
On Sunday, July 3, 2016 at 6:32:56 AM UTC+5:30, Lawrence D’Oliveiro wrote: > Haste makes waste, as they say. At least read the relevant part of the > article. I really feel like I've been pushed into studying its genetics while I only wanted to pluck the fruit. Why do descriptors have to be so

Re: Lost in descriptor land

2016-07-03 Thread Ankush Thakur
On Sunday, July 3, 2016 at 4:37:49 AM UTC+5:30, Ian wrote: > Classes define object behavior; > instances contain object state. For example, you can't define a method > on an instance (though you can certainly store a function there and > call it). Nice! Thanks for clearing that up. :) --

Re: Lost in descriptor land

2016-07-02 Thread Ankush Thakur
On Friday, July 1, 2016 at 9:13:19 AM UTC+5:30, Lawrence D’Oliveiro wrote: > > > Shouldn't we be instead using self.celcius in, say, __init__() and then > > everything will work fine? > > I guess it might. But this way, using descriptors, all the setup is done once > at class definition, rather

Re: Lost in descriptor land

2016-07-02 Thread Ankush Thakur
On Friday, July 1, 2016 at 9:03:44 AM UTC+5:30, Lawrence D’Oliveiro wrote: > Every time I feel unsure, I go back to the horse’s mouth: here > > is GvR himself with all the details on “new-style” classes,

Re: Lost in descriptor land

2016-07-02 Thread Ankush Thakur
On Friday, July 1, 2016 at 7:07:09 AM UTC+5:30, Ian wrote: > First of all, do you understand what descriptors are? This is a fairly > advanced Python concept. For a general tutorial, I would point you to > https://docs.python.org/3/howto/descriptor.html I understand what descriptors try to

Lost in descriptor land

2016-06-30 Thread Ankush Thakur
, __init__() and then everything will work fine? I have seen examples (http://programeveryday.com/post/an-introduction-to-python-descriptors/) where "instance" is used as keys of a dictionary, but given my argument above, isn't this approach an overkill? Regards, Ankush Thakur -- https://mai

Re: Recommendation for Object-Oriented systems to study

2016-06-03 Thread Ankush Thakur
On Wednesday, June 1, 2016 at 2:53:22 PM UTC+5:30, Terry Reedy wrote: > On 5/31/2016 1:52 PM, Ankush Thakur wrote: > > Hi Terry, > > > > Can you point me towards the source code? > > For IDLE 3.4.4 or 3.5.1: /Lib/idlelib/help.py, at least on > Windows. > > &

Re: Recommendation for Object-Oriented systems to study

2016-06-03 Thread Ankush Thakur
On Friday, June 3, 2016 at 7:54:55 PM UTC+5:30, Sayth Renshaw wrote: > On Monday, 30 May 2016 00:42:17 UTC+10, Ankush Thakur wrote: > > Hello, > > > > I'm a self-taught programmer who has managed to claw his way out of Python > > basics and even covered the intermedia

Re: Recommendation for Object-Oriented systems to study

2016-05-31 Thread Ankush Thakur
~~Ankush On Tuesday, May 31, 2016 at 12:31:52 AM UTC+5:30, Terry Reedy wrote: > On 5/30/2016 11:57 AM, Ankush Thakur wrote: > > On Monday, May 30, 2016 at 12:00:01 AM UTC+5:30, Terry Reedy wrote: > > >>> Read the source code of the doctest module in the standard l

Re: Recommendation for Object-Oriented systems to study

2016-05-30 Thread Ankush Thakur
On Monday, May 30, 2016 at 12:00:01 AM UTC+5:30, Terry Reedy wrote: > On 5/29/2016 1:49 PM, Michele Simionato wrote: > > On Sunday, May 29, 2016 at 4:42:17 PM UTC+2, Ankush Thakur wrote: > >> Hello, > >> > >> I'm a self-taught programmer who has managed to cla

Re: Recommendation for Object-Oriented systems to study

2016-05-30 Thread Ankush Thakur
On Monday, May 30, 2016 at 5:04:27 AM UTC+5:30, Gregory Ewing wrote: > Alan Evangelista wrote: > > > if the interest is learning OOP concepts (and not OOP in Python), IMHO > > Java is better. > > The problem with this is that if you're not careful you'll > end up learning a lot of cruft that is

Re: Recommendation for Object-Oriented systems to study

2016-05-30 Thread Ankush Thakur
t; From: Python-list > [mailto:python-list-bounces+joseph.lee22590=gmail@python.org] On Behalf > Of Ankush Thakur > Sent: Sunday, May 29, 2016 7:42 AM > To: python-list@python.org > Subject: Recommendation for Object-Oriented systems to study > > Hello, > > I'm a self

Recommendation for Object-Oriented systems to study

2016-05-29 Thread Ankush Thakur
Hello, I'm a self-taught programmer who has managed to claw his way out of Python basics and even covered the intermediate parts. But I feel I have a ton of theory in my head and would like to see some smallish applications in action. More specifically, I'm looking for Object Oriented designs