mercredi 22 juin 2016

Ways to implement hooks in Python

I recently learnt the concept hooks. I understand the concept that hooks are a way for third party developers to modify an api. I wanted to know the different ways of implementing hooks in Python(Currently I can think none other than plain inheritance). Are there specific design patterns for implementing hooks. Examples would be nice or can some one point to projects where they have been implemented. I want to know different ways to implement hooks.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire