how to write a line in a text file

Peter Hansen peter at engcorp.com
Wed Jul 27 08:02:06 EDT 2005


Steven D'Aprano wrote:
> On Wed, 27 Jul 2005 04:26:31 +0000, Andrew Dalke wrote:
>>This isn't 1970.  Why does your app code work directly with
>>files?  Use a in-process database library (ZODB, SQLLite,
>>BerkeleyDB, etc.) to maintain your system state and let the
>>library handle transactions for you.
> 
> And when users are happy to install a relational database system in order
> for their editor to save their letter to grandma, I'm sure your scheme
> will work well for them.

Given that ZODB and PySQLite are simply Python extension modules, which 
get bundled by your builder tool and are therefore installed 
transparently along with your app by your installer, this is a total 
non-issue at least with those packages.

After all, it's not 1970 any more. ;-)

-Peter



More information about the Python-list mailing list