FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

up to python 3.10 by dpineiden · Pull Request #269 · rethinkdb/rethinkdb-python · GitHub

up to python 3.10 - #269

Closed
dpineiden wants to merge 1 commit into
rethinkdb:masterfrom
dpineiden:py310
Closed

up to python 3.10#269
dpineiden wants to merge 1 commit into
rethinkdb:masterfrom
dpineiden:py310

Conversation

Copy link
Copy Markdown
Contributor

To use with python 3.10 some little changes are necesary.

Callable uses collections.abc

  • ast collections Callable

Drop loop arg

  • asyncio_net open_connection
  • wait_for

Comment thread rethinkdb/ast.py
if isinstance(val, RqlQuery):
return val
elif isinstance(val, collections.Callable):
elif isinstance(val, collections.abc.Callable):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

change also needed for collections.Mapping

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This was fixed with #253.

gabor-boros left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This PR actually not updates the code to be python 3.10 compatible. Although the net_asyncio is "fixed", I'm not sure that the pinned dependencies, like tornado, supports python 3.10.

self._parent.host,
self._parent.port,
loop=self._io_loop,
#loop=self._io_loop, droped at py3.10

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This makes the driver backward incompatible with older python versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It does? How so? The parameter was optional and otherwise it uses the active loop.

srh commented Oct 6, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Going to close, because, first, this only drops one of the loop parameters (there are a couple more that need to be dropped) and second, the change to collections.abc.Callable should be unnecessary as we rename collections.abc while importing.

And PR #296 removes all the loop params that need it.

Also, the collections.abc change would break Python <3.3, which we don't want to deliberately break unless it's basically necessary.

srh closed this Oct 6, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL