Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Why unusual usage of self function binding? #15

Open
msseibel opened this issue May 29, 2021 · 0 comments
Open

[Question] Why unusual usage of self function binding? #15

msseibel opened this issue May 29, 2021 · 0 comments

Comments

@msseibel
Copy link

Not important, I am just curious about your code style in the Deepjdot class.

Why do you assign functions to the class with the following structure:

class Deepjdot(object):
    ....
    def foo(baz):
         do_sth(baz)
    self.foo = foo

Instead of:

class Deepjdot(object):
    ....
    def foo(self, baz):
         do_sth(baz)

Has your implementation any advantages?

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

No branches or pull requests

1 participant