Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upShould `float("inf")` for timeout raise an Overflow error? #102
Comments
|
|
|
Fixed in master. Will be in the next uvloop release (0.9.0) soon. |
|
Please try uvloop v0.9.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PYTHONASYNCIODEBUGin env?: yesRather this is to confirm if this is actually a bug )
Code:
Error:
The problem comes from aio-libs/aiokafka#210, basically, I put in
float('inf')for the timeout inwait(fs)call and it worked with vanilla asyncio, but crashed on uvloop. Docs for asyncio don't really specify that timeout needs to be in a specific range. Semantically specifyingfloat('inf')should probably be the same as None (no timeout).The reasoning for using
float('inf')is simple, we can do computations with it and still get a proper float type.What do you think?