-
Notifications
You must be signed in to change notification settings - Fork 28
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
strange Module: linkedlistmodule #656
Comments
This comment has been minimized.
This comment has been minimized.
Yes, there is indeed an issue that I think is not intended. I have reduced your example to a minimal snippet that produces the issue:
This produces:
Where you can see values such as I suspect this is the member initialization from the module:
Which happens at the end. |
Should now be fixed: Module instance variables will be initialized before class variables. |
However, it is still possible to mess this up, by creating a class instance, before the class has been initialized. We should probably add a warning to avoid this. |
well . i test the new
@Frotty @peq it looks like should be used careful.
|
Because package init happens top-down. |
change the package block position to |
Yes, your second mistake was creating a class object before the class' definition.
Just like
A warning should be added. |
well .
for i in class(which use the linkedlist)
used good. But it's very strange to use it outside of the class (looks like only work when new Instance in same function)The text was updated successfully, but these errors were encountered: