Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

up to python 3.10#269

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dpineiden wants to merge1 commit intorethinkdb:masterfromdpineiden:py310
Closed

Conversation

@dpineiden
Copy link
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

Kompas and ArtemConstantinov reacted with thumbs up emoji
ifisinstance(val,RqlQuery):
returnval
elifisinstance(val,collections.Callable):
elifisinstance(val,collections.abc.Callable):

Choose a reason for hiding this comment

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

change also needed for collections.Mapping

Copy link
Contributor

Choose a reason for hiding this comment

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

This was fixed with#253.

Copy link
Member

@gabor-borosgabor-boros left a comment

Choose a reason for hiding this comment

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

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
Member

Choose a reason for hiding this comment

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

This makes the driver backward incompatible with older python versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

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

@srh
Copy link
Contributor

srh commentedOct 6, 2023
edited
Loading

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 tocollections.abc.Callable should be unnecessary as we renamecollections.abc while importing.

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

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

@srhsrh closed thisOct 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@srhsrhsrh left review comments

@gabor-borosgabor-borosgabor-boros left review comments

+1 more reviewer

@doug-numetricdoug-numetricdoug-numetric left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@dpineiden@srh@gabor-boros@doug-numetric

[8]ページ先頭

©2009-2025 Movatter.jp