Updates:
Status: Started
Labels: NeedsReview
Comment #12 on issue 1454 by asmeurer: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
I went ahead and fixed this. It turns out that the math, random, and re
modules were being added to the
Updates:
Labels: -NeedsReview
Comment #11 on issue 1454 by Vinzent.Steinberg: variable i in global
namespace
http://code.google.com/p/sympy/issues/detail?id=1454
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC fields of
Comment #10 on issue 1454 by ondrej.certik: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
The patch for del k is in, thanks!
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You
Comment #7 on issue 1454 by ondrej.certik: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
What is the k attribute doing there in the first place? Why does it have
to be
deleted by 'del k'? I would like some understanding, before we just remove
it.
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
Comment #4 on issue 1454 by asmeurer: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
I found the source of that. Line 387 in Basic.py
for k in AssumeMeths._assume_defined:
exec is_%s = property(make__get_assumption('Basic', '%s')) %
(k,k)
Comment #5 on issue 1454 by asmeurer: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
And of course I forgot to include a test. Here is a test for both k and
i. I hope this is the best way to test for this.
Attachments:
Updates:
Labels: NeedsReview
Comment #6 on issue 1454 by asmeurer: variable i in global namespace
http://code.google.com/p/sympy/issues/detail?id=1454
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC fields of this issue,
Comment #3 on issue 1454 by fab...@fseoane.net: variable i in global
namespace
http://code.google.com/p/sympy/issues/detail?id=1454
there is also a strange variable k in all instances of Basic:
In [5]: x.k
Out[5]: finite
In [6]: (2+x).k
Out[6]: finite
etc.
--
You received this message