-
-
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
Deprecate registering synchronous web handlers #1993
Comments
+1 |
1 similar comment
+1 |
Possible we have a little bug. I have a handler that looks like a code below:
This handler is asinchronous, but aiohttp thinks like it is sinchronous and writes deprecation warning. Please, let's check it. We can add one more test into test_urldispatch.py
What do you think? Should I make a pull-request? |
Also, using of lambda functions leads to deprecation warnings too, and we have not async lambdas. May be just let to use both of sync and async functions? Sorry for late opinion. |
Sorry, lambdas support is deprecated and will be removed. Regarding async If you are interested in -- file a bug on https://bugs.python.org , add asvetlov and yselivanov to nosy list |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Right now
aiohttp.web
wraps sync handlers by async wrapper.I think the behavior should be deprecated.
Opinions?
The text was updated successfully, but these errors were encountered: