On 09/04/14 15:17, [email protected] wrote:
Is it common for files saved to a working directory to 'mask' library
files located in the Python framework?

Python looks in the local directory first so if you name a module with the name of one of the standard modules Python will, quite reasonably, assume you want your module to be used rather than the standard one.

The best solution is not to name your modules the same as the
standard library ones.

When it comes to non-standard libraries then it becomes a matter of looking at the sys.path value and the order of search defined there.
Which may, in turn, depend on how they were installed.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to