Created
May 10, 2013 09:17
-
-
Save bendtherules/5553397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---bug_file.py--- | |
import math,another_file | |
a=another_file.class_a() | |
--another_file.py-- | |
class class_a(): | |
def __init__(self): | |
print(math.cos(0)) | |
--Error-- | |
Message File Name Line Position | |
Traceback | |
<module> E:\Babu\pytry\bug_file.py 4 | |
__init__ E:\Babu\pytry\another_file.py 3 | |
NameError: global name 'math' is not defined | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment