Weird Problem

Kris Caselden google at
Thu Aug 21 07:09:21 CEST 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("","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?


More information about the Python-list mailing list