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!


Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to