O'Reilly logo
  • María Teresa Rebollo Alonso thinks this is interesting:

>>> print(secret_string.__plain_text)


Cover of Python: Master the Art of Design Patterns


There is a typo. __plain_text should be substituted by __plain_string.

The author probably wanted to notice that __plain_string was not accessible through that identifier even if there is an initialized attribute with that name. It is only logical that __plain_text was not accessible because there is not such an attribute