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 using a Class for grouping commands --self shows as a flag#400

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

Open
devcydo wants to merge1 commit intogoogle:master
base:master
Choose a base branch
Loading
fromdevcydo:fixing-self-as-flag-bug

Conversation

@devcydo
Copy link

Hi!

Fix issue#382

After a lot of research I found out that the only way (I'm 99% sure about this) of knowing if a function belongs to a class is using__qualname__. The only issue I see with this solution is that__qualname__ belongs to python 3.3 and newer versions.

Another solution that I can think of is to check and to remove the 'self' argument from every function, regardless of whether it belongs to a class or not. This solution will limit the user to not name the argument from a function, that doesn't belong to a class, 'self'.

Let me know what you think and I'll be happy to make the changes, as well as to make any correction :)

@google-cla
Copy link

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View thisfailed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@devcydo

[8]ページ先頭

©2009-2025 Movatter.jp