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

Fix **go_over_there** example bug in Python 3.12 as per issue #4046#4048

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

Merged
illume merged 2 commits intopygame:mainfromllindstrom:main
Oct 15, 2023

Conversation

@llindstrom
Copy link
Contributor

For Python 3.12,pygame.examples.go_over_there fails with exception:

[snip]  File "[...]/pygame/examples/go_over_there.py", line 43, in reset    random.randint(0, SCREEN_SIZE.x), random.randint(0, SCREEN_SIZE.y)    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    [snip]TypeError: 'float' object cannot be interpreted as an integer

It is a documented Python 3.12 change thatrandint now only accepts integer arguments. This pull request fixes the problem and is backward compatible.

Copy link
Member

@illumeillume left a comment

Choose a reason for hiding this comment

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

👍 thanks

@illumeillume merged commit4065a11 intopygame:mainOct 15, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@illumeillumeillume approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@llindstrom@illume

[8]ページ先頭

©2009-2025 Movatter.jp