Re: [Tutor] import data (txt/csv) into list/array and manipulation

2008-11-10 Thread Kent Johnson
On Mon, Nov 10, 2008 at 12:12 PM, trias <[EMAIL PROTECTED]> wrote: > I have started learning python (any online help content suggestions are > welcome) and want to write a couple of scripts to do simple numeric > calculations on array data. Welcome! Have you seen http://wiki.python.org/moin/Begi

Re: [Tutor] import data (txt/csv) into list/array and manipulation

2008-11-10 Thread Tim Michelsen
filetype(2) The other file contains signal data in three columns, column one is a unique identifier type int, and the other two columns contain two type int values (genomic location reference values) ** import this as array/list I want to map the location of filetype(2) with respect to filety

[Tutor] import data (txt/csv) into list/array and manipulation

2008-11-10 Thread trias
Hi, I have started learning python (any online help content suggestions are welcome) and want to write a couple of scripts to do simple numeric calculations on array data. filetype(1) I have reference files (ie file.csv) that contain three columns with variable rows, first column is type str co

Re: [Tutor] Question

2008-11-10 Thread Kent Johnson
On Mon, Nov 10, 2008 at 11:07 AM, Michael Connors <[EMAIL PROTECTED]> wrote: > My guess is that, if you want to provide instructions to someone with no > linux/unix experience. e.g. to edit a config file, you can safely tell them > to: nano myfile.conf and expect them to be able to save the file a

Re: [Tutor] Question

2008-11-10 Thread Alan Gauld
"Python Nutter" <[EMAIL PROTECTED]> wrote On the Mac I just linked ipython in the config file to nano On the iPhone 3G I just linked ipython in the config file to nano On the Linux/Ubuntu box I also linked to nano... hmmm looks like I use nano a lot more than I though ;-) Nothing to do with P

Re: [Tutor] Question

2008-11-10 Thread Michael Connors
2008/11/10 W W <[EMAIL PROTECTED]> > On Mon, Nov 10, 2008 at 9:40 AM, Alan Gauld <[EMAIL PROTECTED]>wrote: > >> > > What does nano do that vi (or emacs) doesn't? Given that vi is the >> "standard" editor on *nix ity would seem the obvious choice. But everyone >> seems to be using nano? Why? > > >

Re: [Tutor] Question

2008-11-10 Thread W W
On Mon, Nov 10, 2008 at 9:40 AM, Alan Gauld <[EMAIL PROTECTED]>wrote: > What does nano do that vi (or emacs) doesn't? Given that vi is the > "standard" editor on *nix ity would seem the obvious choice. But everyone > seems to be using nano? Why? AFAIK, it's a little smaller/faster than emacs..

Re: [Tutor] cgi scripts

2008-11-10 Thread Kent Johnson
On Mon, Nov 10, 2008 at 7:00 AM, Jim Morcombe <[EMAIL PROTECTED]> wrote: > I have been using > import cgitb; cgitb.enable() > > It seems to re-direct some of the errors to the browser, but obviously not > all. Right, if the script fails before that line runs, of course it will have no effect. K

Re: [Tutor] cgi scripts

2008-11-10 Thread Jim Morcombe
Actually, that's good to know. I was thinking it was going to be pretty hard to debug if I couldn't tell the difference between HTML errors and Python errors. I have been using import cgitb; cgitb.enable() It seems to re-direct some of the errors to the browser, but obviously not all. Ji

Re: [Tutor] Question

2008-11-10 Thread Python Nutter
I use Notepad++ on my Windows box for Python, but my feeling about it is a bit "Blah..." but thats my feeling with Windows in general ;-) I think I'm one of the rare ones who do not like its choice of Syntax Highlighting colours. But too lazy to change them since I don't do much development on my

[Tutor] [Fwd: Re: get a module's own (top_level) dict?]

2008-11-10 Thread spir
(forwarded to the list) Hello pyhonistas, Example: === module content === a = 1 b = 2 == I'm looking for a way to get something like {'a':a, b':2}. Actually, names defind in the module will be instances of a custom type. I want to give them an attribute that holds their own