Metadata-Version: 1.1
Name: pyext
Version: 0.5
Summary: Simple Python extensions.
Home-page: UNKNOWN
Author: Ryan Gonzalez
Author-email: kirbyfan64sos@gmail.com
License: UNKNOWN
Description: PyExt
        =====
        
        .. image:: https://travis-ci.org/kirbyfan64/PyExt.png
            :target: https://travis-ci.org/kirbyfan64/PyExt
        
        Several simple extensions that add some nifty features to Python.
        
        NEWS: There is now a PyExt newsgroup on Google Groups. See https://groups.google.com/forum/#!forum/pyext.
        
        Some features:
        
        - Function overloading
        - Switch statement
        - Runtime module creation
        - Tail recursion removal
        - Python 2 function annotations
        - Python 2 safe tuple unpacking
        
        Examples:
        
        Function overloading::
           
           @overload.argc(1)
           def f(a): print 'Function 1 called'
           @overload.argc(2)
           def f(a, b): print 'Function 2 called'
           
           f(1)
           f(1, 2)
        
        Switch statement::
           
           with switch(1):
               if case(0): print 'Awkward...'
               if case(2): print '???'
               if case(1): print 'Phew! It works!'
        
        Function annotations::
           
           @fannotate('Return annotation', a=1, b=2)
           def x(a, b):
               return 0
        
        TODO:
        
        - Add some more tests
        
        .. note:: Please ignore this project's messy commit history(several commits under invalid_email_address, about 20 commits labeled Initial). I was trying to use hg-git and kept goofing stuff up.
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
