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 Omenien
Recipients Omenien
Date 2018-07-24.18:34:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When `__init__` is called for a class which 1) is annotated with `@dataclasses.dataclass(frozen=True)` and 2) has a attribute named `object` a TypeError is raised because `object` is overridden for the local scope and as a result `__setattr__` is called on the passed in argument value instead of the standard `object` base type.

I was able to reproduce this in a Docker container running with the attached .py file.
Python 3.7.0 (default, Jul 17 2018, 11:04:33) 
[GCC 6.3.0 20170516] on linux
Date User Action Args
2018-07-24 18:34:20Omeniensetrecipients: + Omenien
2018-07-24 18:34:20Omeniensetmessageid: <>
2018-07-24 18:34:20Omenienlinkissue34213 messages
2018-07-24 18:34:20Omeniencreate