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 pablogsal
Recipients pablogsal
Date 2022-03-06.20:14:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Consider this code:

class A:
    __slots__ = [

    color = None

    def color(self):
        return self._color


Executing this shows:

Traceback (most recent call last):
  File "/Users/pgalindo3/", line 21, in <module>
  File "/Users/pgalindo3/", line 18, in color
    return self._color
AttributeError: 'A' object has no attribute '_color'. Did you mean: '_color'?

This is because the nested getattr call of "@property" overrides the metadata information in the exception object and it tries to produce an error message for the attribute "color" instead of "_color".
Date User Action Args
2022-03-06 20:14:41pablogsalsetrecipients: + pablogsal
2022-03-06 20:14:41pablogsalsetmessageid: <>
2022-03-06 20:14:41pablogsallinkissue46940 messages
2022-03-06 20:14:41pablogsalcreate