1. Jonathan Eunice
  2. mementos


Jonathan Eunice  committed f096032


  • Participants
  • Parent commits 0caa8e0
  • Branches default

Comments (0)

Files changed (3)

File mementos.py

View file
 def with_metaclass(meta, base=object):
-    Create a base class with a metaclass.
+    Create a base class with a metaclass. Compatible across Python 2 and Python
+    3. Extension of the with_metaclass() found in the six module.
     if not isinstance(base, tuple):
         basetuple = (base,)

File setup.py

View file
-    version=verno("0.501"),
+    version=verno("0.503"),
     author='Jonathan Eunice',
     description='Memoizing metaclass. Drop-dead simple way to create cached objects',

File test/test.py

View file
 from mementos import *
 import sys, pytest
-def with_metaclass(meta, base=object):
-    """Create a base class with a metaclass."""
-    return meta("NewBase", (base,), {})
 def test_one():    
     class Thing(with_metaclass(MementoMetaclass, object)):