Liste des Groupes | Revenir à ol advocacy |
On Thu, 21 Mar 2024 06:04:13 -0000 (UTC), Lawrence D'Oliveiro wrote:
>Does he mention descriptors? They are rather key to understanding how>
instance/class/static method dispatching works (and properties).
Yes. He also stresses that Python classes depend on a tacit agreement for
everyone to play nice.
>
>Does he talk about metaclasses? There is one use of them in the standard>
library (that I’m aware of), and I recently came up with another one.
He hasn't yet. They are another bit of Python magic that most people
should leave well alone. That's another of the recurring themes.
'Sometimes you can do this and it really makes sense. Most of the times it
doesn't so use it sparingly.) That's refreshing after some of the C++
tutorials that lead you to believe you have to use every obscure feature
every time.
Les messages affichés proviennent d'usenet.