Weird Problem
Kris Caselden
google at hanger.snowbird.net
Thu Aug 21 01:09:21 EDT 2003
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
Am I missing something? This is straight out of documentation and
tutorials. What could be wrong? I'm using Python 2.3.
I'm still new to Python, and even though it's a simple language, I
encounter seemingly nonsensical problems like these almost every time
I try to do something. Is this kind of behavior normal for Python or
is there some process I'm not following?
-Chris-
More information about the Python-list
mailing list