Re: [Tutor] sqrt?

2010-04-25 Thread Emile van Sebille
On 4/24/2010 9:00 PM Steven D'Aprano said... On Sun, 25 Apr 2010 01:00:50 pm Kirk Z Bailey wrote: Importing math does not import a sqrt function. Hmm... mine's there, but hey, it's easy to roll your own: ActivePython 2.6.1.1 (ActiveState Software Inc.) based on Python 2.6.1 (r261:67515, Dec

Re: [Tutor] sqrt?

2010-04-25 Thread Alan Gauld
"Kirk Z Bailey" wrote som quadratic equation work. This involves squareroots. So I fired uop the interactive idle and imported math. I then tried to play with sqrt. Nothing. Importing math does not import a sqrt function. So what error do you get? Please post it. Did you try dir(math) t

[Tutor] Which Designer

2010-04-25 Thread Sharon
Hi, I am a newbie to python but would like to use a designer for simplicity. Which would be the easiest to use: WxGlade Qt 4 Designer Glade Interface Designer (Gtk) At this point in time I would be looking at the simplest for a newbie until my programming skills in Python improve. Appreciat

Re: [Tutor] Which Designer

2010-04-25 Thread eire1130
Sent from my Verizon Wireless BlackBerry -Original Message- From: Sharon Date: Sun, 25 Apr 2010 14:34:56 To: Tutor Python Subject: [Tutor] Which Designer Hi, I am a newbie to python but would like to use a designer for simplicity. Which would be the easiest to use: WxGlade Qt 4

Re: [Tutor] sqrt?

2010-04-25 Thread Hugo Arts
On Sun, Apr 25, 2010 at 5:00 AM, Kirk Z Bailey wrote: > ok gang, My desktop runs 2.5, and for my college algebra I needed to do som > quadratic equation work. This involves squareroots. So I fired uop the > interactive idle and imported math. I then tried to play with sqrt. > > Nothing. > > Import

[Tutor] sqrt?

2010-04-25 Thread Hugo Arts
Forwarding for the benefit of the list. There I go again, ranting for nothing ;-) Hugo -- Forwarded message -- From: Kirk Z Bailey Date: Sun, Apr 25, 2010 at 4:44 PM Subject: Re: [Tutor] sqrt? To: Hugo Arts I have solved the problem;  the . key has keybounce and needs cleaning

Re: [Tutor] the binary math "wall"

2010-04-25 Thread Lowell Tackett
>From the virtual desk of Lowell Tackett --- On Tue, 4/20/10, Steven D'Aprano wrote: > From: Steven D'Aprano > Subject: Re: [Tutor] the binary math "wall" > To: tutor@python.org > Date: Tuesday, April 20, 2010, 7:39 PM > On Wed, 21 Apr 2010 02:58:06 am > Lowell Tackett wrote: > > I'm runni

Re: [Tutor] sqrt?

2010-04-25 Thread bob gailer
On 4/24/2010 11:00 PM, Kirk Z Bailey wrote: ok gang, My desktop runs 2.5, and for my college algebra I needed to do som quadratic equation work. This involves squareroots. So I fired uop the interactive idle and imported math. I then tried to play with sqrt. Nothing. As Hugo pointed out - a

Re: [Tutor] sqrt?

2010-04-25 Thread Eric Walker
From: bob gailer To: tutor@python.org Sent: Sun, April 25, 2010 12:52:10 PM Subject: Re: [Tutor] sqrt? On 4/24/2010 11:00 PM, Kirk Z Bailey wrote: > ok gang, My desktop runs 2.5, and for my college algebra I needed to do som > quadratic equation work. This inv

Re: [Tutor] Binary search question

2010-04-25 Thread Dave Angel
Lie Ryan wrote: On 04/24/10 23:39, Robert Berman wrote: -Original Message- From: tutor-bounces+bermanrl=cfl.rr@python.org [mailto:tutor- bounces+bermanrl=cfl.rr@python.org] On Behalf Of Alan Gauld Sent: Friday, April 23, 2010 7:41 PM To: tutor@python.org Subject: Re: [Tutor] B

Re: [Tutor] Which Designer

2010-04-25 Thread Alan Gauld
"Sharon" wrote I am a newbie to python but would like to use a designer for simplicity. Which would be the easiest to use: WxGlade Qt 4 Designer Glade Interface Designer (Gtk) These are all GUI builders so I assume you want to write GUIs? If so which GUI toolkit are you intending to use

Re: [Tutor] Which Designer

2010-04-25 Thread Sharon
I think you are probably right. The only other sort of programming I did before I started on python was really 'VBA' and everything was done with GUI. I think that is what was in my mind. I have started using Tkinter and it isn't so bad. I just like the idea of having the visual side of actuall

Re: [Tutor] Which Designer

2010-04-25 Thread Steve Willoughby
On Mon, Apr 26, 2010 at 01:48:24AM +0100, Sharon wrote: > I think you are probably right. The only other sort of programming I did > before I started on python was really 'VBA' and everything was done with > GUI. I think that is what was in my mind. I have started using Tkinter > and it isn't so

[Tutor] module import problems

2010-04-25 Thread Rayon
I have a module with the name _table in the same directory I have another by the name of _module I would like to import _table into _module can someone tall me how. from tables.report_db_engine import * ___ Tutor maillist - Tutor@python.

Re: [Tutor] module import problems

2010-04-25 Thread bob gailer
On 4/25/2010 9:56 PM, Rayon wrote: I have a module with the name _table in the same directory I have another by the name of _module I would like to import _table into _module What exactly does that mean? The import statement, when executed, imports a module into the module containing the imp

Re: [Tutor] module import problems

2010-04-25 Thread Steven D'Aprano
On Mon, 26 Apr 2010 11:56:06 am Rayon wrote: > I have a module with the name _table > in the same directory I have another by the name of _module > > I would like to import _table into _module > > can someone tall me how. At the beginning of the _module module (what a name! yuck! don't you have a