Metadata-Version: 1.0
Name: supertools
Version: 1.0.0
Summary: A simple python module to provide .__super ability to python 2 classes.
Home-page: https://github.com/gissehel/supertools.git
Author: Arthibus Gisséhel
Author-email: public-dev-supertools@gissehel.org
License: MIT
Description: supertools
        ==========
        
        A simple python 2 decorator that provide ``.__super`` member to python2 classes as private static member 
        in order to not have to specify the current class name.
        
        Without super nor supertools::
        
            class MyClass(MyParent) :
                def __init__(self) :
                    MyParent.__init__(self)
        
        Classical implementation using super (python 2 syntax)::
        
            class MyClass(MyParent) :
                def __init__(self) :
                    super(MyClass,self).__init__()
        
        Using supertools::
        
            from supertools import superable
        
            @superable
            class MyClass(MyParent) :
                def __init__(self) :
                    self.__super.__init__()
        
        Syntax is nice, dosn't repeat neither classname nor parent classname, and doesn't parse callstack at runtime like
        other similar modules does.
        
        Note that this syntax is however not compatible with python 3 syntax, which would be in this case::
        
            class MyClass(MyParent) :
                def __init__(self) :
                    super().__init__()
        
        
        
Keywords: super supertools superable
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2 :: Only
