Temporary but named file with BSDDB

Jason jason.heeris at gmail.com
Mon Jun 14 22:26:53 EDT 2010


On Jun 14, 12:34 pm, Tim Pinkawa <timpink... at gmail.com> wrote:
> On Sun, Jun 13, 2010 at 11:01 PM, Jason <jason.hee... at gmail.com> wrote:
> The tempfile.TemporaryFile class should do the job. This part is
> probably of particular interest to you:

Thanks! Since the bsddb functions require a filename (not a file
object), I'm thinking that "NamedTemporaryFile" is actually what I
need. Creating a TemporaryFile results in an object with the "name"
attribute always "<fdopen>".

But that does exactly what I need, so thanks for the tip :)

— Jason



More information about the Python-list mailing list