.. _protected-access: protected-access / W0212 ======================== **Message emitted:** ``Access to a protected member %s of a client class`` **Description:** *Used when a protected member (i.e. class member with a name beginning with an underscore) is accessed outside the class or a descendant of the class where it's defined.* **Problematic code:** .. literalinclude:: /data/messages/p/protected-access/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/p/protected-access/good.py :language: python Created by the `classes `__ checker.