MaartenGr / MaartenGr/PolyFuzz
Update timing.py resource file
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 803
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Description
Hi -- I'm using Python 3.10. The 'time.clock()' method in timing.py is being (has been) deprecated. This breaks polyfuzz upon importing your module. To make it work, I changed the following line of code, locally (see line 64 in timing.py):
- From: clocku = clocks = clock = time.clock()
- To: clocku = clocks = clock = time.perf_counter()
Not sure if this is correct, though. Just wanted to surface the issue in case anyone's using a more recent version of Python.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open timing.py and inspect line 64, where time.clock() is used during import. Verify the Python 3.10 compatibility impact and whether time.perf_counter() is the appropriate replacement, then confirm that importing PolyFuzz works without the deprecation failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100