Newbie: opening files.

Moshe Zadka moshez at math.huji.ac.il
Fri May 19 15:48:08 EDT 2000


On Fri, 19 May 2000, Bart Holthuijsen wrote:

> from sys import *
> from os import *
                 ^^^^
Here's the culprit. The "os" module defines an "open" function. Don't
import "*". Ever.

--
Moshe Zadka <moshez at math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list