[Zope-dev] Blobs and modes

Jim Fulton jim at zope.com
Fri Oct 24 15:28:21 EDT 2008


On Oct 24, 2008, at 3:24 PM, Benji York wrote:

> Is there a good reason blobs don't support "b" or "t" in the mode
> strings passed to "open"?  I'm refactoring some code that expects a
> file-like object to use blobs and it wants to pass "wb" as the mode
> (which is a sane thing to do).

Blobs are implicitly binary. (Note the "B" in Blob.)

> I'll add support for "b" and "t" to the blob code if no one objects.

I object.

BTW, this questions should have been asked o zodb-dev.

Jim

--
Jim Fulton
Zope Corporation




More information about the Zope-Dev mailing list