{ "info": { "author": "Hong Minhee", "author_email": "minhee@dahlia.kr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: Stackless", "Topic :: Text Processing" ], "description": "``encodingcontext`` --- A bad idea about the default encoding\r\n=============================================================\r\n\r\n | Although practicality beats purity.\r\n | Errors should never pass silently.\r\n | Unless explicitly silenced.\r\n\r\n --- Zen of Python\r\n\r\nThis small module implements a bad idea: making default encoding\r\nexplicitly scoped:\r\n\r\n.. code-block:: pycon\r\n\r\n >>> with encoding_context('euc-kr'):\r\n ... str(u'\\ud55c\\uae00')\r\n ...\r\n '\\xc7\\xd1\\xb1\\xdb'\r\n \r\n\r\nOf course it has several shortcomings, and the most critical one is:\r\nusing it within ``thread``, ``threading``, ``greenlet``, ``tasklet``, etc\r\nprobably breaks its scoping. If Python had dynamic scoping and default\r\nencoding was defined as dynamically scoped variable, we might have more\r\nconvenient way to code between Unicode--byte strings.", "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/dahlia/encodingcontext", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "encodingcontext", "package_url": "https://pypi.org/project/encodingcontext/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/encodingcontext/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dahlia/encodingcontext" }, "release_url": "https://pypi.org/project/encodingcontext/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A bad idea about the default encoding", "version": "0.9.0" }, "last_serial": 702053, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "6a6c639ec3dcc40d4cdc5d3beb53d810", "sha256": "404a963c376817a158b41a6e0353a1d73823619b60cbf6a6f9bfb708fd9ef9f4" }, "downloads": -1, "filename": "encodingcontext-0.9.0.tar.gz", "has_sig": false, "md5_digest": "6a6c639ec3dcc40d4cdc5d3beb53d810", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1731, "upload_time": "2012-09-25T04:05:46", "url": "https://files.pythonhosted.org/packages/a5/8e/88c6008103c3b79909cc44353ea015d608e5537ec11d9eaa6d62995ba08f/encodingcontext-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a6c639ec3dcc40d4cdc5d3beb53d810", "sha256": "404a963c376817a158b41a6e0353a1d73823619b60cbf6a6f9bfb708fd9ef9f4" }, "downloads": -1, "filename": "encodingcontext-0.9.0.tar.gz", "has_sig": false, "md5_digest": "6a6c639ec3dcc40d4cdc5d3beb53d810", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1731, "upload_time": "2012-09-25T04:05:46", "url": "https://files.pythonhosted.org/packages/a5/8e/88c6008103c3b79909cc44353ea015d608e5537ec11d9eaa6d62995ba08f/encodingcontext-0.9.0.tar.gz" } ] }