{"issue":{"pull_request":{"diff_url":"https://github.com/sympy/sympy/pull/685.diff","html_url":"https://github.com/sympy/sympy/pull/685","patch_url":"https://github.com/sympy/sympy/pull/685.patch"},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/61e106a28e171b4407171702b182759f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"61e106a28e171b4407171702b182759f","url":"https://api.github.com/users/smichr","login":"smichr","id":90703},"milestone":null,"labels":[],"updated_at":"2011-10-28T01:27:13Z","assignee":null,"comments":7,"closed_at":null,"url":"https://api.github.com/repos/sympy/sympy/issues/685","body":"    If 'from math import sqrt' is imported at the main level of a\r\n    module, then when someone does 'from module import *' those\r\n    functions will wipe out the sympy versions. Places where such\r\n    imports occur have been changed so the name is renamed as a\r\n    private function, e.g. cos -> _cos.","html_url":"https://github.com/sympy/sympy/issues/685","title":"change names of imported math functions (e.g. sqrt -> _sqrt)","number":685,"id":2069607,"created_at":"2011-10-27T16:03:31Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/61e106a28e171b4407171702b182759f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"61e106a28e171b4407171702b182759f","url":"https://api.github.com/users/smichr","login":"smichr","id":90703},"updated_at":"2011-10-28T01:27:12Z","url":"https://api.github.com/repos/sympy/sympy/issues/comments/2551616","body":"I noticed this during an interactive session. I wanted to use several\nof the functions in galoistools (or similar) and so I jus did \"from\ngaloistools import *\" and tried to debug my example that involved\nsqrts. But instead of an expression I was getting a number. It took me\na moment to realize that something had redefined sqrt...it was because\nthat module used \"from math import sqrt\".\n\nAn advantage of using _sqrt in such routines is that it is more\nquickly clear that something special is going on: \"not your sympy\nsqrt, math's in this situation\".  For the few times it ends up being\nused, perhaps shadowed functions could even use the math.sqrt form and\ndo \"import math\" at the outset.","id":2551616,"created_at":"2011-10-28T01:27:12Z"}}