Re: [Tutor] most useful ide

2014-02-03 Thread spir
On 02/02/2014 09:10 PM, Pierre Dagenais wrote: On 14-02-02 01:16 PM, Kodiak Firesmith wrote: Pycharm is nice for bigger projects (since tou can collapse any section); but it's crazy resource intensive. For Linux Gedit can be made very nice I prefer Geany as it will run my code with a click

Re: [Tutor] Traversing lists or getting the element you want.

2014-02-03 Thread spir
On 02/02/2014 09:46 PM, Kipton Moravec wrote: I am new to Python, and I do not know how to traverse lists like I traverse arrays in C. This is my first program other than "Hello World". I have a Raspberry Pi and they say Python is the language of choice for that little machine. So I am going to t

Re: [Tutor] most useful ide

2014-02-03 Thread Ian D
Thanks for all the responses I was mainly looking for a more user friendly ide in a windows environment with things like command completion etc. Like something a novice might use. I suppose vi is simple and available for windows but I don't suppose there would be command completion even in vi

Re: [Tutor] most useful ide

2014-02-03 Thread Oscar Benjamin
On Mon, Feb 03, 2014 at 10:30:59AM +, Ian D wrote: > Thanks for all the responses > > I was mainly looking for a more user friendly ide in a windows environment > with things like command completion etc. Like something a novice might use. > I suppose vi is simple and available for windows bu

Re: [Tutor] most useful ide

2014-02-03 Thread Alan Gauld
On 03/02/14 10:30, Ian D wrote: I was mainly looking for a more user friendly ide in a windows If you are on windows then look at Pythonwin it's similar to IDLE but much more windows friendly and has some extra tools for working with Windows (eg a COM object inspector) You get it in the wi

Re: [Tutor] Traversing lists or getting the element you want.

2014-02-03 Thread Peter Otten
Kipton Moravec wrote: > I am new to Python, and I do not know how to traverse lists like I > traverse arrays in C. This is my first program other than "Hello World". > I have a Raspberry Pi and they say Python is the language of choice for > that little machine. So I am going to try to learn it. >

Re: [Tutor] most useful ide

2014-02-03 Thread Francois Dion
On Sun, Feb 2, 2014 at 3:25 AM, Ian D wrote: > Are there any recommendations for python ide's > Since you mentionned windows and lightweight and autocompletion, i'd take a look at ninja-ide (http://ninja-ide.org/). It is relatively lightweight. In my case, I use pycharm for larger projects (vcs

[Tutor] My First Post

2014-02-03 Thread premanshu basak
Hi I am Premanshu. I have recently started learning python programming language and have question. Most of them I have googled out however I still have some which i could not find a satisfactory answer. While searching for a forum i cam across this forum so posting my question. Please guide me

Re: [Tutor] My First Post

2014-02-03 Thread Alan Gauld
On 03/02/14 15:54, premanshu basak wrote: I am Premanshu. I have recently started learning python programming language and have question. welcome. We are always happy to try to answer questions although our focus is on the python language and its standard library. If we know about a thitrd

Re: [Tutor] strange errors

2014-02-03 Thread Gabriele Brambilla
an example of errors that I obtain is: I build a matrix (SciPy array) using the same data. I search for the maximum and the minimum with the given function and I insert the two values in a tuple that I print. sometimes it print to me this: (0.0, 3.1926676650124463e-14) sometimes it print to me: (na

Re: [Tutor] strange errors

2014-02-03 Thread ALAN GAULD
>an example of errors that I obtain is: I build a matrix (SciPy array) using >the same data. >I search for the maximum and the minimum with the given function and I insert >the two values in a tuple that I print. >sometimes it print to me this: (0.0, 3.1926676650124463e-14) >sometimes it print t

Re: [Tutor] strange errors

2014-02-03 Thread Peter Otten
Gabriele Brambilla wrote: > an example of errors that I obtain is: I build a matrix (SciPy array) > using the same data. > I search for the maximum and the minimum with the given function and I > insert the two values in a tuple that I print. > sometimes it print to me this: (0.0, 3.19266766501244

Re: [Tutor] strange errors

2014-02-03 Thread Gabriele Brambilla
No, i'm not using lowlevel stuff...which part of the script do you want to see? thanks Gabriele 2014-02-03 Peter Otten <__pete...@web.de>: > Gabriele Brambilla wrote: > > > an example of errors that I obtain is: I build a matrix (SciPy array) > > using the same data. > > I search for the maxi

Re: [Tutor] strange errors

2014-02-03 Thread Peter Otten
Gabriele Brambilla wrote: > No, i'm not using lowlevel stuff...which part of the script do you want > to see? The part that remains when you throw out everything that has no effect on the "strange errors" ;) For example if you have a routine def load_data(filename): ... # do complex proc

Re: [Tutor] strange errors

2014-02-03 Thread Jerry Hill
On Mon, Feb 3, 2014 at 2:17 PM, Gabriele Brambilla wrote: > No, i'm not using lowlevel stuff...which part of the script do you want to > see? Since you asked, what we'd really like to see is a Short, Self Contained, Compilable Example (see http://sscce.org/). That is, an example that is short e

Re: [Tutor] My First Post

2014-02-03 Thread Danny Yoo
Just as you might look at a dictionary to find the meaning of a word, you'll look at library documentation to look for the meaning of a method. Most likely, you may need to refer to the documentation of the library in question. I do not know if this is the method you are looking at, but here is

[Tutor] My First Post

2014-02-03 Thread Danny Yoo
(Sorry if you get this message twice: I think I accidently mis-sent the message to the wrong address, so to make sure, I'm sending to what I think is the right address this time.) --- Hi Premanshu, Just as you might look at a dictionary to find the meaning of a word, you'll look at library docum

Re: [Tutor] Traversing lists or getting the element you want.

2014-02-03 Thread Kipton Moravec
Thanks to all that helped on this one. I missed in my reading that you can address an element of a list as y[i]. Going back through "Think Python" book, they have one example of it. And spend 1/4 page out of the 263 pages in the book. They spend much more time on other parts of lists like slices