iterpop使从单例容器中释放价值变得安全而有趣
iterpop的Python项目详细描述
iterpop公司
iterpop使从单例容器或同质容器中释放值变得安全而有趣
- 免费软件:麻省理工学院许可证
- 文档:https://iterpop.readthedocs.io。在
fromiterpopimportiterpopasip# returns 'a'ip.popsingleton(['a'])ip.popsingleton({'a'})ip.popsingleton('a')# throwsip.popsingleton([])ip.popsingleton(set())ip.popsingleton('')# throwsip.popsingleton(['a','b'])ip.popsingleton({'a','b'})ip.popsingleton('ab'})# returns 'a'ip.pophomogeneous(['a'])ip.pophomogeneous({'a'})ip.pophomogeneous('a')# also returns 'a'ip.pophomogeneous(['a','a'])ip.pophomogeneous('aaa')ip.pophomogeneous('a'for__inrange(100))# throwsip.pophomogeneous([])ip.pophomogeneous(set())ip.pophomogeneous('')# throwsip.pophomogeneous(['a','b'])ip.pophomogeneous({'a','b'})ip.pophomogeneous('ab'})
学分
此包是用Cookiecutter和audreyr/cookiecutter-pypackage项目模板创建的。在
历史
- PyPI的第一个版本。在
- 项目
标签: