Re: getting object instead of string from dir()

2008-12-17 Thread André
On Dec 17, 3:52 pm, Rominsky wrote: > > I do have some understanding of the pythonic methodology of > programming, though by far I still don't consider myself an expert. > The problem at hand is that I am coming from a matlab world and trying > to drag my coworkers with me.  I have gotten a lot o

importing csv file into sqlite

2008-12-17 Thread klia
hey guys, i have a hug .csv file which i need to insert it into sqlite database using python. my csv data looks like this Birthday2,12/5/2008,HTC,this is my birthday Sea,12/3/2008,kodak,sea birthday4,14/3/2009,samsung,birthday love,17/4/2009,SONY,view of island can any one give me a head start c

Re: importing csv file into sqlite

2008-12-17 Thread Chris Rebert
On Wed, Dec 17, 2008 at 9:58 PM, klia wrote: > > hey guys, i have a hug .csv file which i need to insert it into sqlite > database using python. > my csv data looks like this > Birthday2,12/5/2008,HTC,this is my birthday > Sea,12/3/2008,kodak,sea > birthday4,14/3/2009,samsung,birthday > love,17/4/

Re: Relative imports in Python 3.0

2008-12-17 Thread Kay Schluehr
On 17 Dez., 11:01, Nicholas wrote: > I am sure I am not the first to run into this issue, but what is the > solution? When you use 2to3 just uncomment or delete the file fix_import.py in lib2to3/fixes/ . -- http://mail.python.org/mailman/listinfo/python-list

Re: importing csv file into sqlite

2008-12-17 Thread James Mills
On Thu, Dec 18, 2008 at 3:58 PM, klia wrote: > hey guys, i have a hug .csv file which i need to insert it into sqlite > database using python. > my csv data looks like this > Birthday2,12/5/2008,HTC,this is my birthday > Sea,12/3/2008,kodak,sea > birthday4,14/3/2009,samsung,birthday > love,17/4/20

Re: C API and memory allocation

2008-12-17 Thread Stefan Behnel
Floris Bruynooghe wrote: > I'm slightly confused about some memory allocations in the C API. If you want to reduce the number of things you have to get your head around, learn Cython instead of the raw C-API. It's basically Python, does all the reference counting for you and also reduces the amoun

Re: sys.maxint in Python 2.6.1 (amd64) on Windows XP x64

2008-12-17 Thread Tim Roberts
Lin wrote: > >Ah, this makes sense. Thanks.. The main reason I'm trying 64-bit >Python is that I want to write files bigger than 4GB. This should work >on Windows x64, right? (i.e., are the pointers bona fide 64 bit?) Those two questions are not related. Win32 (NTFS) has always been able to

Re: importing csv file into sqlite

2008-12-17 Thread klia
klia wrote: > > hey guys, i have a hug .csv file which i need to insert it into sqlite > database using python. > my csv data looks like this > Birthday2,12/5/2008,HTC,this is my birthday > Sea,12/3/2008,kodak,sea > birthday4,14/3/2009,samsung,birthday > love,17/4/2009,SONY,view of island > >

<    1   2