Weird Problem
Kris Caselden
google at hanger.snowbird.net
Fri Aug 22 03:27:39 EDT 2003
Actually, the problem turned out to be a combination of previously
having used "from os import *" along with not having reloaded the code
in Pythonwin. Thanks for everyone's help.
Peter Hansen <peter at engcorp.com> wrote in message news:<3F44E0E4.779D6409 at engcorp.com>...
> Kris Caselden wrote:
> >
> > I'm sure this is a simple newbie problem, but I can't figure it out
> > for the life of me.
> >
> > The code:
> > import sys, os
> > input = open("example.py","r")
> >
> > Gives me the error:
> > TypeError: an integer is required
>
> Always post the actual code, and the *full* traceback, and
> don't just retype it: cut and paste.
More information about the Python-list
mailing list