[reportlab-users] isinstance(val, file)
Andy Robinson
andy at reportlab.com
Wed Nov 14 16:36:30 EST 2007
On 14/11/2007, Carl Karsten <carl at personnelware.com> wrote:
> Andy Robinson wrote:
> > The traditional python approach would be...
> >
> > if hasattr(val, 'file'):
Sorry. 3 straight days at a conference have fuzzed my brain. We're
trying to detect file-like objects, so it should be...
if hasattr(val, 'write')
- Andy
More information about the reportlab-users
mailing list