diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2013-12-14 21:56:39 -0500 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2013-12-14 21:56:39 -0500 |
commit | 185c87d0b5073cbb684fe38d5143515a5b0d07c5 (patch) | |
tree | 2ed6b6caf06322b4571f0fe49fbf9b505e86e9ac /README.md | |
parent | 5ae96206ed544d7360ddd88086f611e0a1c2f2a5 (diff) | |
download | pies-185c87d0b5073cbb684fe38d5143515a5b0d07c5.tar.gz |
Add support for Python2 & 3 compatible metaclass usage
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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? ====================== |