Re: CSV module and "fileobj"

2007-03-16 Thread Bruno Desthuilliers
Jon Clements a écrit : > Hi Group, > > If I have a CSV reader that's passed to a function, is it possible for > that function to retrieve a reference to the "fileobj" like object > that was passed to the reader's __init__? For instance, if it's using > an actual file object, then depending on the

Re: CSV module and "fileobj"

2007-03-16 Thread skip
Jon> If I have a CSV reader that's passed to a function, is it possible Jon> for that function to retrieve a reference to the "fileobj" like Jon> object that was passed to the reader's __init__? Nope, that isn't exposed from the C type. Skip -- http://mail.python.org/mailman/listin

CSV module and "fileobj"

2007-03-16 Thread Jon Clements
Hi Group, If I have a CSV reader that's passed to a function, is it possible for that function to retrieve a reference to the "fileobj" like object that was passed to the reader's __init__? For instance, if it's using an actual file object, then depending on the current row, I'd like to open the f