Weird Problem

Peter Hansen peter at engcorp.com
Thu Aug 21 17:10:28 CEST 2003


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