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

self.* in __set__ and __get__ results in a stack overflow in SVN TinyPy #50

Open
GoogleCodeExporter opened this issue Oct 1, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

See the attached file for the actual problem code & comments.

This is from unmodified SVN head TinyPy.

I would suggest that an exception is made for self.*:
*.__get__(x) should never be called if the caller is a function from the
class itself (caller == self).
It should ONLY be called if caller is from another class or global, unless
it is called explocitly (as in, "self.__get__(x)" actually written in code).

The same holds for __set__(x, v), of course.

I will try to make a patch for this, but no promises... I am not very
aquainted with the TinyPy internals (yet).

Original issue reported on code.google.com by [email protected] on 8 May 2010 at 2:45

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant