Uno scrittoio digitale …

1 luglio 2012

Python Metaclass

Archiviato in: python — Tag: — admin @ 16:00

complete article

Metclass method:

  • (class creation time) __new__: should be implemented when you want to control the creation of a new class object
  • (class creation time) __init__: should be implemented when you want to control the initialization of the new object after it has been created
  • (class instantiate time) __call__: is called when the already-created class is “called” to instantiate a new object

Lessons

Archiviato in: sapere è potere — Tag:, , , — admin @ 15:53

coursera

Funziona con WordPress