{ "info": { "author": "Ryan Kelly", "author_email": "ryan@rfk.id.au", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2" ], "description": "autosuper: backport the magical zero-argument super() to python2\n=================================================================\n\nThis is an (awful, hacky, wtf-were-you-thinking) attempt to port the magical\nzero-argument super() call from python3 to python2.\n\nIn standard python2 usage of the super() builtin, you have to repeat both the\nclass and instance objects when you call super, like this:\n\n class Hello(Base):\n def hello(self):\n super(Hello,self).hello()\n\nUsing autosuper, you can get the friendlier behaviour from python3 where it\njust figures out the correct call at runtime:\n\n class Hello(Base):\n def hello(self):\n super().hello()\n\nOf course, you can still explicitly pass in the arguments if you want to do\nsomething strange. Sometimes you really do want that, e.g. to skip over\nsome classes in the method resolution order.\n\nHow does it work? By inspecting the calling frame to determine the function\nobject being executed and the object on which it's being called, and then\nwalking the object's __mro__ chain to find out where that function was\ndefined. Yuck, but it seems to work...", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/rfk/autosuper", "keywords": "super mro", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "autosuper", "package_url": "https://pypi.org/project/autosuper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/autosuper/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/rfk/autosuper" }, "release_url": "https://pypi.org/project/autosuper/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "backport the magical zero-argument super() to python2", "version": "0.1.0" }, "last_serial": 786631, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7ebdffbfef2a975d44e28b75c556afb7", "sha256": "ee6417838983b46b24427dd29d341ee6df4222c045caecc6c3e1af7b4867409f" }, "downloads": -1, "filename": "autosuper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7ebdffbfef2a975d44e28b75c556afb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2011-05-28T02:26:31", "url": "https://files.pythonhosted.org/packages/ef/43/c87af38c44854b2f1fa2f8f7ce53b1a686fd01ebd386ffb98a9c0a63d4d6/autosuper-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ebdffbfef2a975d44e28b75c556afb7", "sha256": "ee6417838983b46b24427dd29d341ee6df4222c045caecc6c3e1af7b4867409f" }, "downloads": -1, "filename": "autosuper-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7ebdffbfef2a975d44e28b75c556afb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3520, "upload_time": "2011-05-28T02:26:31", "url": "https://files.pythonhosted.org/packages/ef/43/c87af38c44854b2f1fa2f8f7ce53b1a686fd01ebd386ffb98a9c0a63d4d6/autosuper-0.1.0.tar.gz" } ] }