diff --git a/docs/faq.rst b/docs/faq.rst index 04ce1b2538d0..06ffb4d0a4fc 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -267,7 +267,7 @@ your object**. Mutations of objects used as hash keys lead to several subtle pro which is why for example mutable Python containers (e.g. :class:`dict`, :class:`list`) don't define ``__hash__``, while their immutable counterparts (e.g. :class:`tuple`) do. -If your class relies on in-place mutations (such as setting ```self.attr = ...`` within its +If your class relies on in-place mutations (such as setting ``self.attr = ...`` within its methods), then your object is not really "static" and marking it as such may lead to problems. Fortunately, there's another option for this case.