On 14Aug2019 11:15, Steven D'Aprano wrote:
On Wed, Aug 14, 2019 at 09:58:35AM +1000, Cameron Simpson wrote:
On 11Aug2019 22:58, James Hartley wrote:
>I am lacking in understanding of the @staticmethod property.
>Explanation(s)/links might be helpful. I have not found the descriptions
>found i
On Wed, Aug 14, 2019 at 09:58:35AM +1000, Cameron Simpson wrote:
> On 11Aug2019 22:58, James Hartley wrote:
> >I am lacking in understanding of the @staticmethod property.
> >Explanation(s)/links might be helpful. I have not found the descriptions
> >found in the Internet wild to be particularly
On 11Aug2019 22:58, James Hartley wrote:
I am lacking in understanding of the @staticmethod property.
Explanation(s)/links might be helpful. I have not found the descriptions
found in the Internet wild to be particularly instructive.
You have received some answers; to me they seem detailed en
Part 3.
On Sun, Aug 11, 2019 at 10:58:37PM -0500, James Hartley wrote:
> from collections import namedtuple
>
> class Foo():
> Dimensions = namedtuple('Dimensions', ['height', 'width'])
> _dimensions = Dimensions(3, 4)
>
> def dimensions():
> print('id = {}'.format(id(Foo.
Part Two.
On Sun, Aug 11, 2019 at 10:58:37PM -0500, James Hartley wrote:
> from collections import namedtuple
>
> class Foo():
> Dimensions = namedtuple('Dimensions', ['height', 'width'])
> _dimensions = Dimensions(3, 4)
>
> def dimensions():
> print('id = {}'.format(id(Foo
On Sun, Aug 11, 2019 at 10:58:37PM -0500, James Hartley wrote:
> I am lacking in understanding of the @staticmethod property.
> Explanation(s)/links might be helpful. I have not found the descriptions
> found in the Internet wild to be particularly instructive. Given the code
> below:
[...]
> The
James Hartley wrote:
> I am lacking in understanding of the @staticmethod property.
> Explanation(s)/links might be helpful. I have not found the descriptions
> found in the Internet wild to be particularly instructive. Given the code
> below:
> =8<--
> from collections impor
I am lacking in understanding of the @staticmethod property.
Explanation(s)/links might be helpful. I have not found the descriptions
found in the Internet wild to be particularly instructive. Given the code
below:
=8<--
from collections import namedtuple
class Foo():
Dim