On Thu, Aug 31, 2017 at 6:24 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > In the Stack Overflow thread, rosuav wrote: >> Quick smoke-test: can you show the value of math.__file__ please? Editing >> your question to add that would eliminate a particular class of issue (or >> reveal the problem, perhaps). > > (Replying here because SO requires 50 reputation to comment, and the > requirement to have sufficient reputation to do anything on that site > is the origin of the reason I don't have any reputation) > > If there were a math.py file in the path, there would have to be a > sqrt function inside it, and then wouldn't the call stack reflect > that?
That's why it's called a smoke test. It's a basic test to ensure that the obvious stuff is working. I fully expect to see that it's getting the correct file - but imagine if, due to a messed-up PYTHONPATH, "import math" is getting a module from a different version of Python. ChrisA -- https://mail.python.org/mailman/listinfo/python-list