Re: [Tutor] Moved Python installation. Need advice rebuilding all *.pyc

2006-07-03 Thread Python
On Mon, 2006-07-03 at 22:34 +0200, Andreas wrote: > On 03.07.2006 20:45 Adam wrote > > > Erm trying to remember exactly how to do this in windows but if you do the > > equivalent of an rm -r E:\Python24\site-packages\*.pyc ie remove all the > > *.pyc files they will be rebuilt as and when you next

Re: [Tutor] Moved Python installation. Need advice rebuilding all *.pyc

2006-07-03 Thread Andreas
On 03.07.2006 20:45 Adam wrote > Erm trying to remember exactly how to do this in windows but if you do the > equivalent of an rm -r E:\Python24\site-packages\*.pyc ie remove all the > *.pyc files they will be rebuilt as and when you next import those modules. Thanks for the info. However, if thi

Re: [Tutor] Moved Python installation. Need advice rebuilding all *.pyc

2006-07-03 Thread Adam
On 03/07/06, Andreas <[EMAIL PROTECTED]> wrote: Hi,I thought, this would be more easy. I wonder why the PYTHONPATH is notbeing considered here, but instead I find the path to modules beinghardcoded  in the *.pyc file.I have about 50 3rd party modules installed and I moved my Python installation fro

[Tutor] Moved Python installation. Need advice rebuilding all *.pyc

2006-07-03 Thread Andreas
Hi, I thought, this would be more easy. I wonder why the PYTHONPATH is not being considered here, but instead I find the path to modules being hardcoded in the *.pyc file. I have about 50 3rd party modules installed and I moved my Python installation from C:\Python24 to another partition (E:\Pyt

Re: [Tutor] storing dict objects in in a database through SQLObject

2006-07-03 Thread Kent Johnson
Emily Fortuna wrote: > > The question is one of balance: are you more concerned with > > easily getting your dicts and tuples back intact, or with executing > > queries on the *contents* of those dicts and tuples? > Ideally, I'd like to be able to search the data in these dicts. Is > there a w

Re: [Tutor] storing dict objects in in a database through SQLObject

2006-07-03 Thread Emily Fortuna
> The question is one of balance: are you more concerned with > easily getting your dicts and tuples back intact, or with executing > queries on the *contents* of those dicts and tuples? Ideally, I'd like to be able to search the data in these dicts. Is there a way to do this? If not, PickleCo

Re: [Tutor] storing dict objects in in a database through SQLObject

2006-07-03 Thread Dustin J.Mitchell
You'll actually get better support from sqlite than from other databases. The question is one of balance: are you more concerned with easily getting your dicts and tuples back intact, or with executing queries on the *contents* of those dicts and tuples? Sqlite will treat pickles as opaque ob

Re: [Tutor] storing dict objects in in a database through SQLObject

2006-07-03 Thread Kent Johnson
Emily Fortuna wrote: > Hello all, > I am experiementing in storing Python objects in a SQLite databse using > SQLOjbect. I want to store dicts and tuples in the databse, but as far > as I can tell the only way to do this is to create a PickleCol. Is > there some other better way to store this

[Tutor] storing dict objects in in a database through SQLObject

2006-07-03 Thread Emily Fortuna
Hello all, I am experiementing in storing Python objects in a SQLite databse using SQLOjbect. I want to store dicts and tuples in the databse, but as far as I can tell the only way to do this is to create a PickleCol. Is there some other better way to store this data? EnumCol? Would a diffe

Re: [Tutor] help regarding string

2006-07-03 Thread Kent Johnson
anil maran wrote: > > 'datetime.datetime' object has no attribute 'split' > > > thisis the error i get Ah, then your data is not a string, it is a datetime.datetime object. You can format it using datetime.datetime.strftime(): In [1]: import datetime In [2]: d=datetime.datetime.now() In