summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2013-12-14 21:56:39 -0500
committerTimothy Crosley <timothy.crosley@gmail.com>2013-12-14 21:56:39 -0500
commit185c87d0b5073cbb684fe38d5143515a5b0d07c5 (patch)
tree2ed6b6caf06322b4571f0fe49fbf9b505e86e9ac /README.md
parent5ae96206ed544d7360ddd88086f611e0a1c2f2a5 (diff)
downloadpies-185c87d0b5073cbb684fe38d5143515a5b0d07c5.tar.gz
Add support for Python2 & 3 compatible metaclass usage
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index e8aaa40..2f4dcc5 100644
--- a/README.md
+++ b/README.md
@@ -122,6 +122,7 @@ Sadly, there is still special syntax that is present for corner cases.
- keysview(collection) - should replace collection.keys() where you do not control the collection passed in
- execute() - enables Python 3 style exec statements on both environments.
- integer_types - may want to use isinstance(variable, integer_types) instead of type(variable, int) as long values will not match int in Python2.
+- NewClass(with_metaclass(metaclass, parent_class)) - Should replace both "__metaclass__ = metaclass" and "NewClass(metaclass=metaclass)" as a way to assign meta-classes.
What Could be Improved?
======================