Re: [Tutor] glob and file names

2014-06-05 Thread Gabriele Brambilla
No, I wanted to say that Peter method works! Thanks anyway and sorry for the html. Gabriele sent from Samsung Mobile Il giorno 05/giu/2014 23:14, "Dave Angel" ha scritto: > Gabriele Brambilla Wrote in message: > > > > > (missing because you posted in html. Please tell your email program to use

Re: [Tutor] glob and file names

2014-06-05 Thread Dave Angel
Gabriele Brambilla Wrote in message: > > (missing because you posted in html. Please tell your email program to use text) Simplify your program to where it's small and self contained. You currently have a string built up from several parts. Since you think the problem is in the glob call, yo

[Tutor] Fwd: glob and file names

2014-06-05 Thread Gabriele Brambilla
-- Forwarded message -- From: Gabriele Brambilla Date: 2014-06-05 22:15 GMT-04:00 Subject: Re: [Tutor] glob and file names To: Peter Romfeld thanks, it works. Gabriele 2014-06-05 22:10 GMT-04:00 Peter Romfeld : On Friday, June 06, 2014 10:04 AM, Gabriele Brambilla wrote: >

[Tutor] glob and file names

2014-06-05 Thread Gabriele Brambilla
Hi, I'm trying to use glob to read a file of which I don't know the complete name (but only some parts). fiLUMOname = 'Lsum_' + period + '_' + parts[2] + '_' + parts[3] + '_' + parts[4] + '_*.dat' aaa = glob.glob(fiLUMOname) print(aaa) fiLUMO = open(aaa[0], 'r') where period, and the elements

Re: [Tutor] Ctypes and Sockets

2014-06-05 Thread Alan Gauld
On 05/06/14 20:02, Leo Nardo wrote: Looking for a complete introduction to ctypes that I can understand. How well do you know C? Without understanding C a complete intro to ctypes will be next to impossible. I would also like someones input on the following code and what it basically does.

Re: [Tutor] Error message received when running “from scipy import interpolate”

2014-06-05 Thread Alan Gauld
On 05/06/14 23:36, Colin Ross wrote: I am attempting to run the following in python: |from scipyimport interpolate| This list is for those learning the core Python language and its standard library. Support for scipy is probably best gained from the scipy forum The MacPython list may also

[Tutor] Error message received when running “from scipy import interpolate”

2014-06-05 Thread Colin Ross
I am attempting to run the following in python: from scipy import interpolate I receive this error message: Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.7/site-packages/scipy-0.11.0.dev_0496569_20111005-py2.7-macosx-10.7-x86_64.egg/scipy/interpolate/__init

[Tutor] Ctypes and Sockets

2014-06-05 Thread Leo Nardo
Looking for a complete introduction to ctypes that I can understand. I learn well from David Malans stuff, and the book 'how to think like a computer scientist for python 3'. Hope that helps with my learning style. https://www.youtube.com/results?search_query=david+malan http://openbookproject.ne