[issue2701] csv.reader accepts string instead of file object (duck typing gone bad)

2008-04-26 Thread Roy Smith
New submission from Roy Smith <[EMAIL PROTECTED]>: If you pass csv.reader() a filename as its first argument: csv.reader('filename') instead of a file object like you're supposed to, you don't get an error. You instead get a reader object which returns the characters which make up the file

[issue2701] csv.reader accepts string instead of file object (duck typing gone bad)

2008-04-27 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: It's not a mistake. In fact, the csv unit tests make use of being able to iterate over strings. I don't think this feature is going away. -- nosy: +skip.montanaro __ Tracker <[EMAIL PROTECTED]>

[issue2701] csv.reader accepts string instead of file object (duck typing gone bad)

2008-06-21 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Skip is right, this is working ok. -- nosy: +facundobatista resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___