-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pypher behaves strangely in Pycharm Debug mode #47
Comments
This issue seems the be a result of the following if statement in |
Upon further inspection I was unable to come up with a proper definition of |
The reason why it is ie p = Pypher()
p.RETURN # statement
# vs.
p.RETURN(*args) # statement, then __call__ There were a bunch of concessions and trade-offs made to get this magic to work. Maybe the underscore syntax should be dropped all together since it is causing issues with tooling. A possible fix would be to add a def __len__(self):
len = len(self.next) if self.next is not None else 0
return 1 + len |
^^^ keeping the double underscore for property syntax, we'd have to define the behavior of every dunder method on the Pypher class. it may make more sense to drop it |
ran with python 3.7.0 on both windows and mac versions, here is an output example:
The text was updated successfully, but these errors were encountered: