Re: SQLite or files?

2009-10-05 Thread AggieDan04
On Sep 17, 9:10 am, J Kenneth King ja...@agentultra.com wrote: ici iltch...@gmail.com writes: I likeshelvefor saving small amounts of data, user preferences, recent files etc. http://docs.python.org/library/shelve.html I like it too, but I hear the great powers that be are going to

Re: SQLite or files?

2009-10-05 Thread Gabriel Genellina
En Mon, 05 Oct 2009 23:08:59 -0300, AggieDan04 danb...@yahoo.com escribió: On Sep 17, 9:10 am, J Kenneth King ja...@agentultra.com wrote: ici iltch...@gmail.com writes: I likeshelvefor saving small amounts of data, user preferences, recent files etc.

Re: SQLite or files?

2009-09-18 Thread TerryP
alex23 wrote: So what part of the standard library do you recommend using instead? Or was there no time for advice between snarkiness? As a matter of technique, I believe in fitting the storage to the particulars of the problem at hand. In my own projects, I will often employ simple text based

Re: SQLite or files?

2009-09-18 Thread Tim Chase
You can also make a SQLite database be in-memory, giving you the performance benefits of skipping the disk. Yes, I love the in-memory database -- especially for my automated testing in Django. However, the OP said that memory footprint was a concern (granted, I don't know how much data they

SQLite or files?

2009-09-17 Thread vlad
Hello, I'm a novice in Python and got one question related to the information storage for my application. I'm currently working on rewriting my own the program that stores everyday information sitting in the system tray. It was written in Delphi some time ago and proved to be durable and fast

Re: SQLite or files?

2009-09-17 Thread Tim Chase
info was stored in the simple RTF files. However now I'd like to rewrite this program in Python (using PyQt) as I want to make it cross-platform and add/remove some features. Now I'm thinking about where to store my information. Would it be better to use files as I used to do or use the

Re: SQLite or files?

2009-09-17 Thread ici
I like shelve for saving small amounts of data, user preferences, recent files etc. http://docs.python.org/library/shelve.html For Qt use QtCore.QCoreApplication.setOrganizationName, QtCore.QCoreApplication.setApplicationName than setValue, value from QtCore.QSettings. --

Re: SQLite or files?

2009-09-17 Thread J Kenneth King
ici iltch...@gmail.com writes: I like shelve for saving small amounts of data, user preferences, recent files etc. http://docs.python.org/library/shelve.html I like it too, but I hear the great powers that be are going to deprecate it. For Qt use

Re: SQLite or files?

2009-09-17 Thread alex23
TerryP bigboss1...@gmail.com wrote: Yeah, I'm sure that is the same kind of thinking that caused 16-bit MS- DOS applications to remain a part of Windows NT so long. So what part of the standard library do you recommend using instead? Or was there no time for advice between snarkiness? --

Re: SQLite or files?

2009-09-17 Thread Aahz
In article mailman.30.1253183180.2807.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: - I don't know if you're currently keeping the RTF in memory the whole time, or if you repeatedly reload (whether in one go, or streaming it) and reparse the file. This sounds memory