12 Jul
2005
12 Jul
'05
7:02 p.m.
J Cameron Cooper wrote:
Yes, forgot that caveat. For large files, 'data' can return a "Pdata", a list of strings. For small files, it returns a string. Always doing 'str' is a good idea.
Well, there's a reason for PData ;-) str'ing a large file will use lots of memory... str'ing lots of large files in one transaction will topple your machine! Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk