Re: [Tutor] What style do you call Python programming?

2011-12-09 Thread Dario Lopez-Kästen
On Fri, Dec 9, 2011 at 3:54 PM, Sarma Tangirala wrote: > > On 9 December 2011 20:07, Cranky Frankie wrote: > >> I'm looking for a term to call the kind of Python programming that >> >> <...snip...> > >> > The keyword you are looking for is 'programming paradigm' and python > implements several a

Re: [Tutor] how to use int and split() simultaneously

2011-12-08 Thread Dario Lopez-Kästen
oh, yes, no top posting. See below. On Thu, Dec 8, 2011 at 1:33 PM, surya k wrote: > > This is something I am trying to do.. > Say, we are entering a string "1 2 3 4 5".so, I want to assign the numbers > directly as numbers. how can I do it? > I could put that numbers as string but not as numbe

Re: [Tutor] IndentationError:

2011-11-16 Thread Dario Lopez-Kästen
The indentation is indeed off: Original code: def PlotPathway(list1): for i in range(len(list1)): for j in range(len(list1[i])-1): if list1[i][j] != list1[i][j+1]: g.add_edge(list1[i][j], list1[i][j+1]) if list1[i][j]<=42:

Re: [Tutor] Cython vs Python-C API

2011-11-15 Thread Dario Lopez-Kästen
On Tue, Nov 15, 2011 at 10:26 AM, Stefan Behnel wrote: > Dario Lopez-Kästen, 15.11.2011 09:33: > >> On Tue, Nov 15, 2011 at 9:09 AM, Stefan Behnel wrote: >> >> cubic spline interpolation >>> >> > No, I didn't. > > Stefan > > Oops, ap

Re: [Tutor] Cython vs Python-C API

2011-11-15 Thread Dario Lopez-Kästen
Hi, just a thought - have you looked at NumPy/SciPy? Perhaps there already is an API in C that does what you need, sufficiently well/fast? http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html It is part of the NumPy/SciPy package(s). http://www.scipy.org/ /dario On Tue, Nov 15,

Re: [Tutor] [OSX] "Executable" .py or pyc script (stuck at Applescript)

2011-11-14 Thread Dario Lopez-Kästen
Try PyInstaller http://www.pyinstaller.org/ /dario On Nov 14, 2011 2:43 PM, "learner404" wrote: > > On Fri, Nov 11, 2011 at 12:02 AM, Prasad, Ramit > wrote: > > It is probably easiest to keep myapp.py in the home directory (or >> subdirectory of it) and say "python ~/myapp.py" (or "python >>