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
- - - - - - - - - - - - - - - - - - - - - - - - - - -
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
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
"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():
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
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
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
> -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
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
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
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
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
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
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]
>
> "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
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
>
> 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
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
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
"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
"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
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,
22 matches
Mail list logo