3 ms·
Traceback (most recent call last): File "/tmp/resume.py", line 2, in <module> from companies import YourCompany ImportError: No module named compani
by generalk 16y ago
Traceback (most recent call last):
File "/tmp/resume.py", line 2, in <module>
from companies import YourCompany
ImportError: No module named companies
Am I missing something?
- studer 16y agoYeah, you're so completely missing the point of his code that I have to question the intelligence of both yourself and everyone who's upvoted your message. Is this stupid night on Hacker News, or what's going on here? (And yes, I'm 100% serious. Your reply is the dumbest thing I've ever seen on this site.)
- ElliotH 16y agoYup, the companies namespace is theoretical (containing presumably every company in existence) and contains a class YourCompany - that represents the interviewer's company. Because companies doesn't actually exist there is an import error. If you were to create a class to substitute in you'd need something like: class YourCompany: def unit_tests_code(): return True ...