Proper class initialization

Leif K-Brooks eurleif at ecritters.biz
Thu Mar 2 01:31:02 CET 2006


Steven Bethard wrote:
>     class A(object):
>         def _get_sum():
>             return sum(xrange(10))
>         sum = _get_sum()

What's wrong with sum = sum(xrange(10))?



More information about the Python-list mailing list