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 Gabriele Tornetta
Recipients Gabriele Tornetta, bup, r.david.murray, steven.daprano
Date 2021-12-09.13:38:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639057128.52.0.964175073948.issue32683@roundup.psfhosted.org>
In-reply-to
Content
The following example shows isinstance causing a side effect


class Side:

    class Effect(Exception):
        pass

    def __getattribute__(self, name):
        raise Side.Effect()


isinstance(Side(), str)


I'd be inclined to see this as a bug as I wouldn't expect isinstance to cause any side effects.
History
Date User Action Args
2021-12-09 13:38:48Gabriele Tornettasetrecipients: + Gabriele Tornetta, steven.daprano, r.david.murray, bup
2021-12-09 13:38:48Gabriele Tornettasetmessageid: <1639057128.52.0.964175073948.issue32683@roundup.psfhosted.org>
2021-12-09 13:38:48Gabriele Tornettalinkissue32683 messages
2021-12-09 13:38:48Gabriele Tornettacreate