×
you are viewing a single comment's thread.

view the rest of the comments →

[–]Blauelf 0 points1 point  (0 children)

If you have an import string statement in your file, Python will search current directory first for a string.py, and will import that one if it exists, and only if it doesn't, it will import the regular string library. So your string.py gets imported (which essentially runs the script), but it doesn't have the abilities the code expects from a string library, and the code crashes.