Re: [Tutor] cx_Oracle help

2011-01-05 Thread Christian Witts
On 05/01/2011 16:33, F1r3f1y wrote: This guide helped me a lot with cx_Oracle http://codingtutorials.co.uk/blog/?p=31 Greg Lindstrom-3 wrote: Hello, I'm trying to help out a friend and am stumped. Can you help me out? Thanks, --greg - - - - - - - - - - - - - - - - - - - - - - - - - - -

Re: [Tutor] wx accelerator table: one keystroke seems skipped

2011-01-05 Thread Octavian Rasnita
From: "Alex Hall" Hello all, First, this is about a wx accelerator table, so if it is too off-topic for this list, let me know. I have a table with 23 entries, all of which work. I added another entry last night, and it does not work. The odd thing, though, is that I do not get an error of any

Re: [Tutor] wx accelerator table: one keystroke seems skipped

2011-01-05 Thread Corey Richardson
On 01/05/2011 04:41 PM, Alex Hall wrote: > Hello all, > First, this is about a wx accelerator table, so if it is too off-topic > for this list, let me know. > > [snip] I would go ask the wxPython mailing list or similar, just my 2 cents. ~Corey Richardson

Re: [Tutor] user input help

2011-01-05 Thread Alan Gauld
"Jason Staudenmayer" wrote I'm working on a small program to add users to a sqlite db. Try the database topic in my tutorial where I do a very similar thing... code follows - def promptInput(): ... result = (lname, fname, email) return result def getEmplyInfo():

Re: [Tutor] range function and floats?

2011-01-05 Thread Steven D'Aprano
Wayne Werner wrote: On Wed, Jan 5, 2011 at 10:43 AM, Steven D'Aprano wrote: Wayne Werner wrote: The decimal module allows you to get rid of those pesky floating point errors. See http://docs.python.org/library/decimal.html for more info. That's a myth. Decimal suffers from the same floatin

Re: [Tutor] range function and floats?

2011-01-05 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Wayne Werner wrote: On Wed, Jan 5, 2011 at 10:43 AM, Steven D'Apranowrote: Wayne Werner wrote: The decimal module allows you to get rid of those pesky floating point errors. See http://docs.python.org/library/decimal.html for more info. That's a myth. Decimal s

[Tutor] wx accelerator table: one keystroke seems skipped

2011-01-05 Thread Alex Hall
Hello all, First, this is about a wx accelerator table, so if it is too off-topic for this list, let me know. I have a table with 23 entries, all of which work. I added another entry last night, and it does not work. The odd thing, though, is that I do not get an error of any kind anywhere in the

Re: [Tutor] user input help

2011-01-05 Thread Jason Staudenmayer
> -Original Message- > From: Alex Hall [mailto:mehg...@gmail.com] > Sent: Wednesday, January 05, 2011 3:23 PM > To: Jason Staudenmayer > Cc: tutor@python.org > Subject: Re: [Tutor] user input help > > > On 1/5/11, Jason Staudenmayer wrote: > > Hi all, I'm pretty new to programming in ge

Re: [Tutor] user input help

2011-01-05 Thread Alex Hall
On 1/5/11, Jason Staudenmayer wrote: > Hi all, I'm pretty new to programming in general and figured I'd try out > python. > I'm working on a small program to add users to a sqlite db. The problem I'm > having it dealing with the user input, I'd like to be able to repeat the > function to get the i

[Tutor] user input help

2011-01-05 Thread Jason Staudenmayer
Hi all, I'm pretty new to programming in general and figured I'd try out python. I'm working on a small program to add users to a sqlite db. The problem I'm having it dealing with the user input, I'd like to be able to repeat the function to get the input if the user doesn't accept it. here's

Re: [Tutor] range function and floats?

2011-01-05 Thread Wayne Werner
On Wed, Jan 5, 2011 at 10:43 AM, Steven D'Aprano wrote: > Wayne Werner wrote: > > The decimal module allows you to get rid of those pesky floating point >> errors. See http://docs.python.org/library/decimal.html for more info. >> > > That's a myth. Decimal suffers from the same floating point iss

Re: [Tutor] cx_Oracle help

2011-01-05 Thread F1r3f1y
This guide helped me a lot with cx_Oracle http://codingtutorials.co.uk/blog/?p=31 Greg Lindstrom-3 wrote: > > Hello, > > I'm trying to help out a friend and am stumped. Can you help me out? > Thanks, > --greg > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > I will

Re: [Tutor] range function and floats?

2011-01-05 Thread Steven D'Aprano
Wayne Werner wrote: The decimal module allows you to get rid of those pesky floating point errors. See http://docs.python.org/library/decimal.html for more info. That's a myth. Decimal suffers from the same floating point issues as binary floats. It's quite easy to demonstrate the same sort

Re: [Tutor] range function and floats?

2011-01-05 Thread Wayne Werner
On Wed, Jan 5, 2011 at 5:14 AM, Steven D'Aprano wrote: > Alan Gauld wrote: > > ...this is more about learning how the range function and floats work than >>> about writing a super-efficient program. >>> >> >> Unfortunately they don't work together. >> >> range(0.1,0.5,0.1) -> [0.1,0.2,0.3,0.4]

Re: [Tutor] syntax error that i cant spot!

2011-01-05 Thread Noah Hall
> > "Please" and "Thank you" are rude? Oh my, have you lived a sheltered life > :) > Nej, it was your condescension that I found rude. Also, you did it again, perhaps on purpose though.. ;) ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] syntax error that i cant spot!

2011-01-05 Thread Steven D'Aprano
Noah Hall wrote: Please quote enough of the previous message to establish context -- when you are replying to the message, it is fresh in your mind. When others read your reply (possibly days later like I'm doing now), the context is anything but clear and your message comes across as merely mys

Re: [Tutor] syntax error that i cant spot!

2011-01-05 Thread Noah Hall
> > Please quote enough of the previous message to establish context -- when > you are replying to the message, it is fresh in your mind. When others read > your reply (possibly days later like I'm doing now), the context is anything > but clear and your message comes across as merely mysterious a

Re: [Tutor] syntax error that i cant spot!

2011-01-05 Thread Steven D'Aprano
Noah Hall wrote: He has no classes in there. Therefore, there is no place it should be in this code. Please remember this is Python, and not Java nor anything else. [...] It just makes life easier. Oh the irony... talking about making life easier, who are you talking to? What about? Please

Re: [Tutor] range function and floats?

2011-01-05 Thread Steven D'Aprano
Alan Gauld wrote: ...this is more about learning how the range function and floats work than about writing a super-efficient program. Unfortunately they don't work together. range(0.1,0.5,0.1) -> [0.1,0.2,0.3,0.4] doesn't work you need to do: for n in range(1,5): use( n/10 ) There ar

Re: [Tutor] range function and floats?

2011-01-05 Thread Alan Gauld
"Joel Knoll" wrote I'm trying to write a simple program to give the sine of each of a range of numbers, including multiples of pi. I keep getting a syntax error, highlighting my use of 2pi as an argument in the range, range requires integers. You need to scale your floats appropriately

Re: [Tutor] print stack traces not caused by errors

2011-01-05 Thread Alan Gauld
"Corey Richardson" wrote And of course print statements work too within the console window. I've done almost all my debugging via print statements at crucial points. It's a good way to go, IMO. It's a good way to go for short simple programs. The big disadvantage is that the larger the pr

[Tutor] range function and floats?

2011-01-05 Thread Joel Knoll
I'm new to Python and to programming in general. I'm trying to write a simple program to give the sine of each of a range of numbers, including multiples of pi. I keep getting a syntax error, highlighting my use of 2pi as an argument in the range, saying something like "expected integers,