MaartenGr / MaartenGr/PolyFuzz

Update timing.py resource file

Open
#32 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.