This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients Olivier.Gagnon, eric.snow, madison.may, rhettinger, serhiy.storchaka, vajrasky
Date 2013-07-10.10:57:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1373453821.36.0.883193750283.issue18352@psf.upfronthosting.co.za>
In-reply-to
Content
The question is whether we should give the freedom to user to add dynamic attribute to Counter object.

Is this freedom has any practicality? Why do we want to add dynamic attributes to Counter object?

Decimal object does not have this freedom.

>>> from decimal import Decimal
>>> z = Decimal('1.0')
>>> z.foo = 'a'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'decimal.Decimal' object has no attribute 'foo'

Actually I am not really sure about this. Maybe someone knows the answer.
History
Date User Action Args
2013-07-10 10:57:01vajraskysetrecipients: + vajrasky, rhettinger, eric.snow, serhiy.storchaka, madison.may, Olivier.Gagnon
2013-07-10 10:57:01vajraskysetmessageid: <1373453821.36.0.883193750283.issue18352@psf.upfronthosting.co.za>
2013-07-10 10:57:01vajraskylinkissue18352 messages
2013-07-10 10:57:01vajraskycreate