Metadata-Version: 1.0
Name: apply
Version: 1.0
Summary: An apply function for Python 2 and 3.
Home-page: http://pypi.python.org/pypi/apply
Author: Stefan H. Holek
Author-email: stefan@epy.co.at
License: BSD
Description: =====
        apply
        =====
        ------------------------------------
        An apply function for Python 2 and 3
        ------------------------------------
        
        Package Contents
        ================
        
        apply(func, \*args, \*\*kw)
            Call func with args and kw args; return its results.
        
        Overview
        ========
        
        Python 3 has no apply. We like apply.
        I you like apply as well, have no fear. This version of apply works
        across all versions of Python.
        
        Examples
        ========
        
        apply allows to create read/write properties in a very compact way::
        
            from apply import apply
        
            class X509:
        
                def __init__(self, store):
                    self.store = store
        
                @apply
                def CN():
                    doc = 'The common name attribute'
                    def get(self):
                        return self.store.get('CN')
                    def set(self, value):
                        self.store.put('CN', value)
                    return property(get, set, doc=doc)
        
            record = X509(LDAP())
            record.CN = 'Slate Rock and Gravel Company/emailAddress=cert@slaterock.com'
        
        
        Changelog
        =========
        
        1.0 - 2011-11-25
        ----------------
        
        - Initial release.
        
Keywords: apply read write property properties
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
