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
Python 3.7 support #1451
Comments
This requires a breaking change to the |
Just use kwargs... |
We wont be able to keep the
Which means we are going to have to break the current interface... |
I meant something like: >>> def send(self, **kwargs):
... if 'async' in kwargs:
... print(kwargs['async'])
...
>>> send(1)
>>> send(1, async=True)
True |
Nice! So passing |
Fixed in #1454 |
Issue persists on pip install as of today |
You need to pip uninstall kafka and then pip install kafka-python |
async
is a reserved keyword in Python 3.7.async
is used a bit in kafka-python, so this currently breaks Python 3.7 compatibility. See e.g.producer/base.py
Using something like
async_
would be fine though, so quickest way to resolve this would be just to rename a few things fromasync
toasync_
or something like that.Thanks!
The text was updated successfully, but these errors were encountered: