{ "info": { "author": "Bogdan Popa", "author_email": "popa.bogdanp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Interpreters" ], "description": "# tcopy\n\n_Do not use this._\n\nA direct tail call optimizing decorator for Python.\n\n## Examples:\n\n```python\nfrom tcopy import tco\n\n@tco\ndef fib(n, x=0, y=1):\n if n == 0:\n return x\n return fib(n - 1, y, x + y)\n```\n\nThe `tco` decorator will rewrite `fib` into the following at\ndefinition time:\n\n```python\ndef fib(n, x=0, y=1):\n while 1:\n if n == 0:\n return x\n n, x, y = n - 1, y, x + y\n```\n\n## Quirks\n\n`tco` uses `inspect.getsource` to grab a function's source code from\ndisk. Because of this, the decorator does not work in the Python REPL.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Bogdanp/tcopy", "keywords": "dangerous,optimization,useless", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "tcopy", "package_url": "https://pypi.org/project/tcopy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tcopy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Bogdanp/tcopy" }, "release_url": "https://pypi.org/project/tcopy/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Basic tail call removal decorator", "version": "0.1.2" }, "last_serial": 1502255, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2a565e545a51f8424dceb2e763730312", "sha256": "4254331983fae65d406f1911d88361dd86eeb0aa4208c9a34d63e975fab0a1c6" }, "downloads": -1, "filename": "tcopy-0.1.0.macosx-10.10-intel.exe", "has_sig": false, "md5_digest": "2a565e545a51f8424dceb2e763730312", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67503, "upload_time": "2015-04-06T10:19:13", "url": "https://files.pythonhosted.org/packages/6a/20/d2d040d5d70940c4494546c9e17ee73d9d704df09e97b82c1bb8f0802347/tcopy-0.1.0.macosx-10.10-intel.exe" }, { "comment_text": "", "digests": { "md5": "0cbce358d17eaed959641488b719f61c", "sha256": "3a371b1e3ec1cffbb7f19da9491cc92ee2a0a35b8a73d727f135cf8e312854bf" }, "downloads": -1, "filename": "tcopy-0.1.0.tar.gz", "has_sig": false, "md5_digest": "0cbce358d17eaed959641488b719f61c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3117, "upload_time": "2015-04-06T10:19:09", "url": "https://files.pythonhosted.org/packages/c8/c0/ece56a89b33e03d6c4e4172b14a7367d18e509cfc8c42866cbcc9c608395/tcopy-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5df5b7bc563d6dbb61f9dc4d0e90c62a", "sha256": "76a3f634e601e61a721a23cd5f88a60d1fe7e9e39effa624454ef9627104ea44" }, "downloads": -1, "filename": "tcopy-0.1.1.macosx-10.10-intel.exe", "has_sig": false, "md5_digest": "5df5b7bc563d6dbb61f9dc4d0e90c62a", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67632, "upload_time": "2015-04-07T10:41:30", "url": "https://files.pythonhosted.org/packages/59/a8/d93187840e040954c169ed469557ea98a916eba9c5a7e300b700b29c865c/tcopy-0.1.1.macosx-10.10-intel.exe" }, { "comment_text": "", "digests": { "md5": "f1564f0fbacb9bc8ebcd172fdbd4c60c", "sha256": "8eda5959c614c799a3500e817eaa866c44055ad0945ae26d24ef8b2cef0207fe" }, "downloads": -1, "filename": "tcopy-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f1564f0fbacb9bc8ebcd172fdbd4c60c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3240, "upload_time": "2015-04-07T10:41:27", "url": "https://files.pythonhosted.org/packages/d9/12/28a83e8cc622862074a87af3cd15f00d1e315a8d065814ac57e3a4230695/tcopy-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b1a41d509c4225fc4ea9e1cc2eea1a10", "sha256": "4bf9dc043e393f0be28ae944abd0cd5a11c0d24e52f0aac13ce2c54fb901780c" }, "downloads": -1, "filename": "tcopy-0.1.2.macosx-10.10-intel.exe", "has_sig": false, "md5_digest": "b1a41d509c4225fc4ea9e1cc2eea1a10", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 65716, "upload_time": "2015-04-12T15:59:18", "url": "https://files.pythonhosted.org/packages/47/e7/ffbc7e8c378d5f9012d5b953b253847bed80d61ecdef5bec56f19332199a/tcopy-0.1.2.macosx-10.10-intel.exe" }, { "comment_text": "", "digests": { "md5": "a58fd1799016b61a32a0528c9e97db5e", "sha256": "8401bdbd19d3d27266191a007087c610eb3539f2d025bdf9a1ed5167133ba930" }, "downloads": -1, "filename": "tcopy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a58fd1799016b61a32a0528c9e97db5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2802, "upload_time": "2015-04-12T15:59:15", "url": "https://files.pythonhosted.org/packages/29/d2/852a474f5605a5263380b9176d44692508ac9f0b12ed4b9df0064a1a2b11/tcopy-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b1a41d509c4225fc4ea9e1cc2eea1a10", "sha256": "4bf9dc043e393f0be28ae944abd0cd5a11c0d24e52f0aac13ce2c54fb901780c" }, "downloads": -1, "filename": "tcopy-0.1.2.macosx-10.10-intel.exe", "has_sig": false, "md5_digest": "b1a41d509c4225fc4ea9e1cc2eea1a10", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 65716, "upload_time": "2015-04-12T15:59:18", "url": "https://files.pythonhosted.org/packages/47/e7/ffbc7e8c378d5f9012d5b953b253847bed80d61ecdef5bec56f19332199a/tcopy-0.1.2.macosx-10.10-intel.exe" }, { "comment_text": "", "digests": { "md5": "a58fd1799016b61a32a0528c9e97db5e", "sha256": "8401bdbd19d3d27266191a007087c610eb3539f2d025bdf9a1ed5167133ba930" }, "downloads": -1, "filename": "tcopy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a58fd1799016b61a32a0528c9e97db5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2802, "upload_time": "2015-04-12T15:59:15", "url": "https://files.pythonhosted.org/packages/29/d2/852a474f5605a5263380b9176d44692508ac9f0b12ed4b9df0064a1a2b11/tcopy-0.1.2.tar.gz" } ] }