[Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread dw
Hello, I'm new the the group and new to programming in Python. I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scripts that incorporate "LAME" for mod

[Tutor] How to edit value of second column row i-th array in numpy?

2015-01-15 Thread Whees Northbee
If I have array a=[[60,70,1],[43,54,2],[87,67,3],[90,89,4],[12,4,5]] where [x,y,id] and I want to find if x=87 and y=67, and find which row is it,and I need to edit the id column with new value.. I can search in first column using: if (x in a[:,0]): print('yes') how I can know index row so I

Re: [Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread Alan Gauld
On 15/01/15 14:07, dw wrote: I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scripts that incorporate "LAME" for modifying audio files. Anything of

Re: [Tutor] Learning python scripts for practical linux activities.

2015-01-15 Thread Emile van Sebille
On 1/15/2015 6:07 AM, dw wrote: Hello, I'm new the the group and new to programming in Python. I would like to find a source, book etc of Python learning projects. Projects that are useful for standard Linux activities like bulk renaming files, managing repository packages. Maybe python scrip

Re: [Tutor] How to edit value of second column row i-th array in numpy?

2015-01-15 Thread Peter Otten
Whees Northbee wrote: > If I have array a=[[60,70,1],[43,54,2],[87,67,3],[90,89,4],[12,4,5]] where > [x,y,id] and I want to find if x=87 and y=67, and find which row is it,and > I need to edit the id column with new value.. > > I can search in first column using: > if (x in a[:,0]): > print('

[Tutor] Alan's book - was "Learning python scripts for practical linux activities."

2015-01-15 Thread David Heiser
Thanks for the Shameless Plug, Alan. I went to Amazon, scanned through your book, and learned some things about "sets" that will help me in my job. Bought the Kindle version. Great stuff. On 1/15/2015 8:53 AM, Alan Gauld wrote: On 15/01/15 14:07, dw wrote: I would like to find a source,

[Tutor] PyDeadObjectError: MainFrame deleted

2015-01-15 Thread Paul LaBerge
Steven, Danny, and Ben, Thanks for the help identifying the source of the crash and how to read the traceback, exception, paths, and search for errors. Very helpful since I’m quite new to Python programming. I'll send details to opendaq, and ask on the wxpython forum to see if they know what ca

Re: [Tutor] PyDeadObjectError: MainFrame deleted

2015-01-15 Thread Steven D'Aprano
On Thu, Jan 15, 2015 at 10:42:35AM -0800, Paul LaBerge wrote: > > (Also, because I happen to know that the wxPython GUI is written in C++ > > so any C++ errors are from it, not the Python interpreter.) > > Have you worked on easy_daq or did you download the GUI ? Neither. I just know that wxPyt

Re: [Tutor] PyDeadObjectError: MainFrame deleted

2015-01-15 Thread Paul LaBerge
Good to know. Thanks again for the help. Paul > On Jan 15, 2015, at 3:43 PM, Steven D'Aprano wrote: > > On Thu, Jan 15, 2015 at 10:42:35AM -0800, Paul LaBerge wrote: > >>> (Also, because I happen to know that