Comment #8 on issue 1454 by asmeurer: variable i in global namespace http://code.google.com/p/sympy/issues/detail?id=1454
It looks like that for loop goes through all of the is_ attributes in Basic and does something. But after it is done, k, the index variable, becomes an attribute with its last value, "finite". That loop is outside of any functions, so I think that is why it became an attribute. If there is a better way than del k, then we can use it, but I think del k should be harmless. It is much like the i in the global namespace. Someone did a for loop somewhere and didn't realize that the index variable would end up in the namespace once the loop was done. Only, with the i, the problem was doing an import * in ntheory/__init__.py. Someone needs to go though that and add only the functions that need to be imported from ntheory. By the way, sympy.__dict__ seems to be good for testing the global namespace, but how would we test to make sure that no stray variables make their way into being attributes? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---
