Why?

On 01/03/2013 03:14, joker-eph wrote:
> In pythran/pythonic++/core/file.h:
> 
>> +				iterator xreadlines() {
>> +					// Deprecated
>> +					if(not is_open) throw ValueError("I/O operation on closed file");
>> +					return begin();
>> +				}
>> +
>> +				void seek(int offset, int whence = SEEK_SET) {
>> +					if(not is_open) throw ValueError("I/O operation on closed file");
>> +					if(whence != SEEK_SET && whence != SEEK_CUR && whence != SEEK_END)
>> +						throw IOError("file.seek() :  Invalid argument.");
>> +					fseek(**data, offset, whence);
>> +				}
>> +
>> +				int tell() const {
>> +					if(not is_open) throw ValueError("I/O operation on closed file");
>> +					return ftell(**data);
> 
> Error check on ftell() return?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/serge-sans-paille/pythran/pull/53/files#r3199694>.
>