[visionegg] Re: simple RSVP scripts
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Wed, 26 Jan 2005 13:59:40 -0800
Gabriel Nevarez wrote:
Incidentally (and completely off-topic), I also had issues reading tab-delimited
files, since most "true" python-ers recommend using regular expressions instead
of scanf()... nothing wrong with that, but we have quite a few tab-delimitted
data files for existing studies for which it would be an absolute pain to, um,
grep (so to speak)... ;)
found this little gem:
http://hkn.eecs.berkeley.edu/~dyoo/python/scanf/
I've used the csv module (comma separated values) with great success.
Although I haven't used it with tabs, it appears you can change the
delimiter from comma, so it may also be worth a look. And it's in the
standard library as of Python 2.3.
Cheers!
Andrew
--
Andrew D. Straw Post-doctoral scholar
,-. Dickinson Lab
\_/ California Institute of Technology
8||} Mailcode 138-78
/ \ Pasadena CA 91125, USA
`-^
email: astraw@xxxxxxxxxxx
office: +1 626 395 5828
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Re: simple RSVP scripts
- From: Gabriel Nevarez
Other related posts:
- » [visionegg] simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
- » [visionegg] Re: simple RSVP scripts
Incidentally (and completely off-topic), I also had issues reading tab-delimited files, since most "true" python-ers recommend using regular expressions instead of scanf()... nothing wrong with that, but we have quite a few tab-delimitted data files for existing studies for which it would be an absolute pain to, um, grep (so to speak)... ;)
found this little gem:
http://hkn.eecs.berkeley.edu/~dyoo/python/scanf/
====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] Re: simple RSVP scripts
- From: Gabriel Nevarez