RE: dangerous class neighborhood

2019-01-09 Thread Avi Gross
f with Chris, or anyone here. The neighborhood is safe again. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Thursday, December 27, 2018 5:11 PM To: Python Subject: Re: dangerous class neighborhood On Fri, Dec 28, 2018 at 8:47 AM Avi Gross wrote: > Question 2: D

RE: dangerous class neighborhood

2018-12-28 Thread Avi Gross
s some caution on calling some of these things tricks. Yes, of course they can be tricky. What they often are may well be considered additional functionality by way of abstractions. Clearly a key word like “pass” may be easier to understand than some of the others. From: Abdur-Rahmaan Janhangeer Sent: Friday, December 28, 2018 3:46 AM To: Avi Gross Cc: Python Subject: Re: dangerous class neighborhood thanks, the 3 dots are more explicit, thought was another py trick yours, Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: dangerous class neighborhood

2018-12-28 Thread Abdur-Rahmaan Janhangeer
thanks, the 3 dots are more explicit, thought was another py trick yours, Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

RE: dangerous class neighborhood

2018-12-27 Thread Avi Gross
used repeatedly in that context keeps only the rightmost assignment. But there is an idiom of using just an underscore to mean you don’t care about that and want something else whose name may be made meaningful. >>> _, _, LastName = ("John", "J.", "Doe") &g

RE: dangerous class neighborhood

2018-12-27 Thread Avi Gross
private would serve no purpose. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Friday, December 28, 2018 12:08 AM To: Python Subject: Re: dangerous class neighborhood On Fri, Dec 28, 2018 at 2:27 PM Avi Gross wrote: > > Sometimes when I post something I ge

Re: dangerous class neighborhood

2018-12-27 Thread Abdur-Rahmaan Janhangeer
btw what does A = . above means? the dot? Abdur-Rahmaan Janhangeer http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: dangerous class neighborhood

2018-12-27 Thread Chris Angelico
On Fri, Dec 28, 2018 at 2:27 PM Avi Gross wrote: > > Sometimes when I post something I get back comments and evaluate them and > learn quite a bit. I then reply and debate every little point and it can > continue for a few rounds. > > I don't seem to be in that mood today so let me simply restate

RE: dangerous class neighborhood

2018-12-27 Thread Avi Gross
rhaps the problem does not really need to be solved by me and I move on. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Thursday, December 27, 2018 5:11 PM To: Python Subject: Re: dangerous class neighborhood On Fri, Dec 28, 2018 at 8:47 AM Avi Gross wrote: >

Re: dangerous class neighborhood

2018-12-27 Thread Chris Angelico
On Fri, Dec 28, 2018 at 8:47 AM Avi Gross wrote: > Question 2: Do you want the variables available at the class level or at the > instance level? For constants, definitely put them on the class. They'll be available on instances as well ("for free", if you like). For mutables, obviously you need