jd / jd/fastcounter

Idea: Get count value from string representation

Open
#3 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40
Forks
7
PR merge metrics
No merged PRs in 30d

Description

At least in the version of Python I'm using (2.7.15), calling the builtin `str` function on an `itertools.count` object will return a string that looks like `"count(0)"`. Parsing it out would be as simple as `int(str(count)[6:-1])`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.