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
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
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
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
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
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
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
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:
>
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
There have been several discussions about unexpected behavior when people
write programs within a class definition. Some suggest various ways around
the problem and that is fine although I bet new people will keep
encountering this issue.
I have some questions about what people want to do with
10 matches
Mail list logo