miniblog.
← Back to all posts
Wilfred Hughes
Sep 17, 2013 at 17:45
I've actually used metaclasses today! Ensuring a #Python class is never instantiated twice with the same arguments:
https://gist.github.com/Wilfred/6597856
Ensure no class gets instantiated twice with the same arguments.
Ensure no class gets instantiated twice with the same arguments. - cached_instances.py