aboutsummaryrefslogtreecommitdiffstats
path: root/mop/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'mop/__init__.py')
-rw-r--r--mop/__init__.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/mop/__init__.py b/mop/__init__.py
index 2bea205..5281f96 100644
--- a/mop/__init__.py
+++ b/mop/__init__.py
@@ -200,14 +200,12 @@ def bootstrap():
"create_instance", create_instance
))
+ # using __call__ in order to make the syntax look like normal python
+ # constructors, but this is really just a normal static method, it's still
+ # not anything python-specific
def new(self, **kwargs):
return self.create_instance(kwargs)
Class.add_method(bootstrap_create_method(
- "new", new
- ))
-
- # not strictly necessary, but makes constructors nicer
- Class.add_method(bootstrap_create_method(
"__call__", new
))