-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultipartReader doesn't work with -OO #1969
Comments
Just for curiosity: why do you use optimization levels? |
In the hope that it could be faster. More interestingly benchmark shows that it's often slower (in 1-2%) with |
Python has very subtle optimizations on |
it disables |
fixed in master @kxepal you should be careful with |
Good catch! My bad to forget about PYTHONOPTIMIZE mode |
Long story short
MultipartReader
doesn't work when-OO
is enabled on python interpreter.Expected behaviour
Actual behaviour
When
-OO
is enabled (e.g.python3 -OO a.py
), the request handling fails:Your environment
python 3.5.2
aiohttp 2.1.0
The text was updated successfully, but these errors were encountered: