Timeout asserts in _config.py stripped by python -O #3780
Unanswered
omnislash157
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey —
Testing an analysis tool I built on existing reputable repos to see if it works. The tool's for non-technical dummies like me to be able to have a seat at the table. Anyway it ran and found that the 4 asserts in
Timeout.__init__guard against conflicting arguments but get stripped bypython -O:Under
-O, a user passing bothtimeout=5andconnect=10gets no error — both values coexist silently.Same validation, survives optimized mode — same line you had but swap to:
Happy to PR it if you're open to it, or just rip it and fire it off as your own — I'm just testing the one-shot-for-dummies stack I built. Funny things happen when you give stuff away for free because that's not how people generally are.
Beta Was this translation helpful? Give feedback.
All reactions