Skip to content

Instantly share code, notes, and snippets.

@bendtherules
Created May 10, 2013 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bendtherules/5553397 to your computer and use it in GitHub Desktop.
Save bendtherules/5553397 to your computer and use it in GitHub Desktop.
---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