Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread Terry Carroll
On Tue, 20 Sep 2005, R. Alan Monroe wrote: > > >>> math.degrees(_) <--- in all my time on tutor > I have never noticed > this underscore trick > before That *is* cool. I've usually done something like: >>

Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread Kent Johnson
John Fouhy wrote: > On 21/09/05, R. Alan Monroe <[EMAIL PROTECTED]> wrote: > >>> >>> math.degrees(_) <--- in all my time on tutor >> >> I have never noticed >> this underscore trick >> before > > > I'm not a big

Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread Nathan Coulter
John Fouhy wrote: > On 21/09/05, R. Alan Monroe <[EMAIL PROTECTED]> wrote: > >>> >>> math.degrees(_) <--- in all my time on tutor >> >> I have never noticed >> this underscore trick >> before > > > I'm not a big

Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread John Fouhy
On 21/09/05, R. Alan Monroe <[EMAIL PROTECTED]> wrote: > > >>> math.degrees(_) <--- in all my time on tutor > I have never noticed > this underscore trick > before I'm not a big fan of it, actually. It smells

Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread R. Alan Monroe
> Bernard Lebel wrote: > >>> import math > >>> math.acos(-0.0634) > 1.6342388771557625 > >>> math.degrees(_) <--- in all my time on tutor I have never noticed this underscore trick before > 93.63499037722380

Re: [Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread Kent Johnson
Bernard Lebel wrote: > Hello, > > I have this little math problem. I have this formula from wich I get a > dot product between two vectors. > > cos(ß) = A.B / |A|.|B| = -0.0634 > So this would give me radians, right? No, it's the cosine of ß, which has no units (a cosine is a ratio of two lengt

[Tutor] Maths: getting degrees from radians (or am I wrong?)

2005-09-20 Thread Bernard Lebel
Hello, I have this little math problem. I have this formula from wich I get a dot product between two vectors. cos(ß) = A.B / |A|.|B| = -0.0634 So this would give me radians, right? Then if I use math.degrees( -0.0634 ) This gives me a value of -3.6325524211294193. However I have a book in fr

[Tutor] Threading in a for loop

2005-09-20 Thread Bill Burns
I've got a few questions regarding Threading. I've never used threads before and I want to make sure I'm doing it correctly ;-) I have a GUI app and it processes Tiff files to PDF (or PostScript). The GUI has a ListBox which the user populates with files to convert. You click on a Button and the f

Re: [Tutor] How do you organize code snippets?

2005-09-20 Thread DogWalker
"Mike Hansen" <[EMAIL PROTECTED]> said: [...] http://freshmeat.net/projects/pysnippet/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How do you organize code snippets?

2005-09-20 Thread Mike Hansen
> > > Subject: > Re: [Tutor] How do you organize code snippets? > From: > Poor Yorick <[EMAIL PROTECTED]> > Date: > Sun, 18 Sep 2005 13:28:10 -0400 > > CC: > tutor@python.org > > > List wrote: > >> Is there a way of namin

Re: [Tutor] problem with matplot

2005-09-20 Thread nephish
Danny Yoo wrote: >>>Check with the Debian folks about this one; the problem you're running >>>into looks really specific to the way Debian has packaged libstdc++6. >>>This topic isn't really one that folks on Tutor will necessarily have >>>competence in. Instead, try the debian-python mailing lis

Re: [Tutor] problem with matplot

2005-09-20 Thread Danny Yoo
> >Check with the Debian folks about this one; the problem you're running > >into looks really specific to the way Debian has packaged libstdc++6. > >This topic isn't really one that folks on Tutor will necessarily have > >competence in. Instead, try the debian-python mailing list: > > > >http

Re: [Tutor] problem with matplot

2005-09-20 Thread nephish
Danny Yoo wrote: > > >>anyone have any luck getting up and running with matplot-lib on debian? >>from the website, i followed the instructions to get it with apt. but >>something is messed up in the dependencies. >> >> > >Check with the Debian folks about this one; the problem you're running

Re: [Tutor] problem with matplot

2005-09-20 Thread Danny Yoo
> anyone have any luck getting up and running with matplot-lib on debian? > from the website, i followed the instructions to get it with apt. but > something is messed up in the dependencies. Check with the Debian folks about this one; the problem you're running into looks really specific to the

[Tutor] problem with matplot

2005-09-20 Thread nephish
hey there, anyone have any luck getting up and running with matplot-lib on debian? from the website, i followed the instructions to get it with apt. but something is messed up in the dependencies. i get this import pylab Traceback (most recent call last): File "", line 1, in -toplevel- imp

Re: [Tutor] List of class instances

2005-09-20 Thread Jan Eden
Hi, Orri Ganel wrote on 20.09.2005: >As a side-note, unless you're okay with only being able to access >those instance variables through the fields list (ie fields[0], >fields[1], fields[2]), you may want to actually name them first. Yes, I am fine with that - I actually prefer to have a sorted

Re: [Tutor] List of class instances

2005-09-20 Thread Orri Ganel
As a side-note, unless you're okay with only being able to access those instance variables through the fields list (ie fields[0], fields[1], fields[2]), you may want to actually name them first. Jan Eden wrote: >Hi, > >Jan Eden wrote on 20.09.2005: > > > >>Hi, >> >>I'd like to form a list of

Re: [Tutor] List of class instances

2005-09-20 Thread Kent Johnson
Jan Eden wrote: >>I'd like to form a list of class instances. The following does not work >>(TextfieldLong, Textarea, TextfieldShort etc being class names): >> >> fields = [ >> TextfieldLong(name='title', label='Seitentitel', value=''), >> Textarea(name='content', label='Inhalt', val

Re: [Tutor] List of class instances

2005-09-20 Thread Jan Eden
Hi, Jan Eden wrote on 20.09.2005: >Hi, > >I'd like to form a list of class instances. The following does not work >(TextfieldLong, Textarea, TextfieldShort etc being class names): > >fields = [ >TextfieldLong(name='title', label='Seitentitel', value=''), >Textarea(name='conte

[Tutor] List of class instances

2005-09-20 Thread Jan Eden
Hi, I'd like to form a list of class instances. The following does not work (TextfieldLong, Textarea, TextfieldShort etc being class names): fields = [ TextfieldLong(name='title', label='Seitentitel', value=''), Textarea(name='content', label='Inhalt', value=''), Shor

Re: [Tutor] IDEs

2005-09-20 Thread Cedric BRINER
what about eric3 ? http://www.die-offenbachs.de/detlev/eric3.html Ced. -- Cedric BRINER Geneva - Switzerland ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] OOP fundamentals

2005-09-20 Thread Ed Hotchkiss
I like that, I'm all over it like white on rice! Thanks.   On 9/20/05, János Juhász <[EMAIL PROTECTED]> wrote: Hi Ed,last month I have found this beautifull sample about threads and sockets: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/114642It helped me to a lot to understand how t