{ "info": { "author": "Wieland Hoffmann", "author_email": "themineo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "===============================\nenumerate_skip\n===============================\n\nThis package provides 2 iterators, `enumerate_skip` and `enumerate_manual`, that\nextend the behaviour of the standard libraries `enumerate` a bit.\n\n`enumerate_skip` has been extended with a `skip` method that makes sure the next\n`index` yielded is the same as the current one. The word `skip` might not make\nsense at first, but this function was written because I needed to not handle\nsome values yielded by an iterator, like::\n\n for index, obj in enumerate(...):\n if obj.has_some_attr():\n continue\n # do something with object and index here\n\nIf `index` in that example was printed to the user (or something similar), there\nwould be gaps. Using `enumerate_skip` instead, the above example could be\nwritten as::\n\n it = enumerate_skip(...)\n for index, obj in it:\n if obj.has_some_attr():\n it.skip()\n continue\n # do something with object and index here\n\n`enumerate_manual` works the other way around: you have to manually call\n`advance` on it to increment the `index`::\n\n it = enumerate_manual(...)\n for index, obj in it:\n if obj.has_some_attr():\n continue\n # do something with object and index here\n it.advance()", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/mineo/enumerate_skip/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mineo/enumerate_skip", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "enumerate_skip", "package_url": "https://pypi.org/project/enumerate_skip/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/enumerate_skip/", "project_urls": { "Download": "https://github.com/mineo/enumerate_skip/tarball/master", "Homepage": "http://github.com/mineo/enumerate_skip" }, "release_url": "https://pypi.org/project/enumerate_skip/1.0/", "requires_dist": null, "requires_python": null, "summary": "enumerate extended to support manual advancement or skipping of the index", "version": "1.0" }, "last_serial": 1444454, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "179dec695f27995de47d9438781d931f", "sha256": "a0bbe5cff829ce7f2c62c29871b025a6b6ac1056d23855630c386d7f0286d337" }, "downloads": -1, "filename": "enumerate_skip-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "179dec695f27995de47d9438781d931f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3746, "upload_time": "2015-01-26T11:51:15", "url": "https://files.pythonhosted.org/packages/28/70/fe4576226caf2da322b5717f392b01739790064be367663e08cff1dbbc81/enumerate_skip-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "08d22fe8235f15dd7f9b88b6e38f957f", "sha256": "2d0faa3f2d6a39a802a390b46c1b95e8a80f99b105528803659a5d9c0d5037c8" }, "downloads": -1, "filename": "enumerate_skip-0.2.tar.gz", "has_sig": false, "md5_digest": "08d22fe8235f15dd7f9b88b6e38f957f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3121, "upload_time": "2015-01-26T11:51:06", "url": "https://files.pythonhosted.org/packages/0f/34/8a002f0dff40d3ca33c0eeb9430279c8bba27557a2b415ba12d487c5c88d/enumerate_skip-0.2.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "c6cc377ecbdb75d5d1a59ad3433e0c5e", "sha256": "32fca0f017027ca631b1195abbd4fa03d34929d32508170f15fa805bb02136c7" }, "downloads": -1, "filename": "enumerate_skip-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c6cc377ecbdb75d5d1a59ad3433e0c5e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4766, "upload_time": "2015-03-02T10:46:10", "url": "https://files.pythonhosted.org/packages/ed/4b/731d4c8a99e01d1f0eb4faa8aeea39ac685b07f31bee1ef270f62ca7cbbb/enumerate_skip-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6f9beb3072b2dde35e82dd613e97517", "sha256": "c1ad838c822720abe43371ff273ca0f09697850e380b55432bba6162f2c5a04c" }, "downloads": -1, "filename": "enumerate_skip-1.0.tar.gz", "has_sig": false, "md5_digest": "b6f9beb3072b2dde35e82dd613e97517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3688, "upload_time": "2015-03-02T10:45:45", "url": "https://files.pythonhosted.org/packages/17/f1/7dd0a1b56a859d7decf1fde685a76cea6fcc348c380f8f21d651d4a3c9e5/enumerate_skip-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6cc377ecbdb75d5d1a59ad3433e0c5e", "sha256": "32fca0f017027ca631b1195abbd4fa03d34929d32508170f15fa805bb02136c7" }, "downloads": -1, "filename": "enumerate_skip-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c6cc377ecbdb75d5d1a59ad3433e0c5e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4766, "upload_time": "2015-03-02T10:46:10", "url": "https://files.pythonhosted.org/packages/ed/4b/731d4c8a99e01d1f0eb4faa8aeea39ac685b07f31bee1ef270f62ca7cbbb/enumerate_skip-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b6f9beb3072b2dde35e82dd613e97517", "sha256": "c1ad838c822720abe43371ff273ca0f09697850e380b55432bba6162f2c5a04c" }, "downloads": -1, "filename": "enumerate_skip-1.0.tar.gz", "has_sig": false, "md5_digest": "b6f9beb3072b2dde35e82dd613e97517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3688, "upload_time": "2015-03-02T10:45:45", "url": "https://files.pythonhosted.org/packages/17/f1/7dd0a1b56a859d7decf1fde685a76cea6fcc348c380f8f21d651d4a3c9e5/enumerate_skip-1.0.tar.gz" } ] }