[Corso Python3] uno dei prossimi argomenti...

alessandro medici alexxandro.medici a gmail.com
Mer 15 Giu 2016 23:57:51 CEST


metaclass

The class of a class. Class definitions create a class name, a class
dictionary, and a list of base classes. The metaclass is responsible for
taking those three arguments and creating the class. Most object oriented
programming languages provide a default implementation. What makes Python
special is that it is possible to create custom metaclasses. Most users
never need this tool, but when the need arises, metaclasses can provide
powerful, elegant solutions. They have been used for logging attribute
access, adding thread-safety, tracking object creation, implementing
singletons, and many other tasks.

More information can be found in Customizing class creation
<https://docs.python.org/3.6/reference/datamodel.html#metaclasses>.
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.fsugpadova.org/pipermail/fsug-corso-python3/attachments/20160615/1a533705/attachment.html>


Maggiori informazioni sulla lista fsug-corso-python3