If you are running 32-bit 3.6 on Windows, please test this

Chris Angelico rosuav at gmail.com
Wed Aug 30 17:09:33 EDT 2017


On Thu, Aug 31, 2017 at 6:24 AM, Ian Kelly <ian.g.kelly at 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



More information about the Python-list mailing list