Open asmeurer opened 11 years ago
If you remove the "del l", and then print what l is, it corresponds to the wrong result. So maybe something was done incorrectly in the mutation fix from issue 6963 .
**Cc:** li.david...@gmail.com
Referenced issues: #6963 Original comment: http://code.google.com/p/sympy/issues/detail?id=3872#c1 Original author: https://code.google.com/u/asmeurer@gmail.com/
At least with the shuffle...Every time you execute "l", a different result returns, making me think an unpicklable is making Live reevaluate the shuffle for each request. Before it just didn't notice that l changed.
Original comment: http://code.google.com/p/sympy/issues/detail?id=3872#c2 Original author: https://code.google.com/u/112898427768461421869/
There's another bug, if a print statement is part of a statement that creates an unpicklable, when that statement is reevaluated, the print statement executes and outputs to the browser, causing a parse error (at least on the dev server).
At least on the dev server, for some reason Live is seeing '__builtin__' as an unpicklable and storing every statement as an unpicklable. Also, what's happening is the 'old_globals' is reinitialized along with the statement globals dictionary; this means that they share mutable values that came from unpickling. So that's the issue (there are a couple issues at play here), I'll have a PR tonight.
Original comment: http://code.google.com/p/sympy/issues/detail?id=3872#c3 Original author: https://code.google.com/u/112898427768461421869/
Original issue for #6971: http://code.google.com/p/sympy/issues/detail?id=3872 Original author: https://code.google.com/u/asmeurer@gmail.com/ Referenced issues: #5686