You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The automatic imports that Spyder does end up overwriting Python's built-in any() with numpy.any()
This has a dangerous side effect when dealing with generator expressions passed to any(). Python's any() will return a bool, but numpy.any() will return a gen objector.
Thank you for providing that option. Nonetheless, I believe this silent default behavior is worth changing, considering it does NOT manifest in an error but silently "does the wrong thing" (because if generator_exp will always return True)
From imran.fa...@gmail.com on 2013-12-10T06:18:44Z
The automatic imports that Spyder does end up overwriting Python's built-in any() with numpy.any()
This has a dangerous side effect when dealing with generator expressions passed to any(). Python's any() will return a bool, but numpy.any() will return a gen objector.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1675
The text was updated successfully, but these errors were encountered: