using very small positive floats instead of zero achieves nothing except obscurity

Open
#2,649 14 comments 0 reactions 1 assignee View on GitHub

@hawkowl is already working on this.

Since Jun 27, 2022.

Assessment

This issue has not been assessed yet.

Description

bug core new priority-normal
exarkun's avatar @exarkun reported
Trac ID trac#2649
Type defect
Created 2007-05-15 14:59:42Z
Branch https://github.com/twisted/twisted/tree/calllater-zero-2649-2

Both task.py and _pollingfile.py use very small positive amounts of time for some reason. This may be a holdover from when callLater(0 could actually cause serious harm (a time long since passed) or it might just be stupidity on the part of the authors. In any case, there seems to be no reason not to just use 0 for both values.

Searchable metadata
trac-id__2649 2649
type__defect defect
reporter__exarkun exarkun
priority__normal normal
milestone__ 
branch__branches_calllater_zero_2649_2 branches/calllater-zero-2649-2
branch_author__hawkowl__jesstess hawkowl, jesstess
status__new new
resolution__None None
component__core core
keywords__ 
time__1179241182000000 1179241182000000
changetime__1442475355399662 1442475355399662
version__None None
owner__hawkowl hawkowl
cc__jesstess cc__thijs
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Contributor guide

Open the contributing guide

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.

More from twisted/twisted

All issues in twisted/twisted

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.