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

Delete rect subscripts should error not segfault#3440

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 1 commit intomainfromankith26-rect-del-fixes
Sep 12, 2022

Conversation

@ankith26
Copy link
Contributor

Simple PR tofix#3438

Copy link
Contributor

@Starbuck5Starbuck5 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I see that this is almost exactly how Vectors do it, so this code isn't some crazy new thing. 😄

@Starbuck5
Copy link
Contributor

Starbuck5 commentedSep 10, 2022
edited
Loading

I see some other places useAttributeError instead of type error, what do you think? Like the other deletion code in Rect, and some deletion code in Color. Maybe it makes sense the way it is, since right now it seems to be consistent AttributeError if referring to the attribute by name, TypeError if attempting to delete as part of a sequence.

@ankith26
Copy link
ContributorAuthor

I'm not very happy withTypeError either, but it seems like the best option

AttributeError is definitely wrong, it can be used for something likedel rect_obj.topleft, but not while subscripting

Starbuck5 reacted with thumbs up emoji

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.

🎉 looks great to me too.

@illumeillume merged commitaa1be64 intomainSep 12, 2022
@illumeillume deleted the ankith26-rect-del-fixes branchSeptember 12, 2022 18:26
@illumeillume removed the Awaiting MergeFor PRs that have at least one approving review and can be merged on subsequent reviews labelOct 29, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@illumeillumeillume approved these changes

+1 more reviewer

@Starbuck5Starbuck5Starbuck5 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

bugC codeInvolves changing C coderectpygame.rect

Projects

None yet

Milestone

2.1.3

Development

Successfully merging this pull request may close these issues.

Segfault when trying to delete item in pygame.Rect instance

4 participants

@ankith26@Starbuck5@illume

[8]ページ先頭

©2009-2025 Movatter.jp