On Thu, 4 Feb 2021 at 01:21, Petr Viktorin firstname.lastname@example.org wrote:
The PEP does lack a "How to teach" section.
I can add it tonight, and I think it would clarify some corner cases to make them more natural. Do you have something specific you are concerned about, when it comes to "teachability" (stress point, hard to grok, expected common mistakes)?
I'd focus only on the use of the feature "from the outside", that is, using the indexing operation as a common user. For implementing the dunders, it's an advanced feature and it's unlikely to be discussed during basic teaching sessions.