am getting desperate on this, please help me, I just can't figure out
how to read those tabs
please help me!
On Tue, 29 Mar 2005 22:16:11 -0800, jrlen balane <[EMAIL PROTECTED]> wrote:
> I need the string representation of the data read so that i can put it
> on a wxGrid
> while i am goin to nee
I need the string representation of the data read so that i can put it
on a wxGrid
while i am goin to need the integer representation of the data so that
i can plot it.
anybody, please help!!!
On Tue, 29 Mar 2005 20:56:16 -0800, jrlen balane <[EMAIL PROTECTED]> wrote:
> how should i modify this
how should i modify this data reader:
(assumes that there is only one entry per line followed by '\n')
data_file = open(os.path.normpath(self.TextFile.GetValue()), 'r')
data = data_file.readlines()
self.irradianceStrings = map(str, data)
self.irradianceIntegers = map(int, data)
self.IrradianceExe
This is not a great way to start on this list, but I am having trouble
with an annoyance that I have not been able to solve and have not found
an answer to elsewhere.
(Dual 2.5 Mac G5; 10.3.8; Python 2.3; retired software engineer getting
started with Python)
I don't like using Python via the
>From what little SQL I know,
try using your quotation marks differently, see if it helps.
strUpdate = 'UPDATE table SET firstname = "JOSEPH" WHERE lastname = "SMITH" '
Good luck,
Liam Clarke
On Tue, 29 Mar 2005 15:35:24 -0800, Williams, Thomas
<[EMAIL PROTECTED]> wrote:
> I have placed seve
Is that all the code? It's not going to be giving you any feedback.
Chuck a few print commands in it.
i.e.
connection = cx_Oracle.connect("db/[EMAIL PROTECTED]")
cursor = connection.cursor()
print "Cursor created"
strUpdate = " UPDATE table SET firstname = 'JOSEPH' WHERE lastname = 'SMITH' "
Greetings,
I am attempting to update an Oracle table
using python. When I execute the code, the python script appears to hang,
in that nothing else happens.
As always, any assistance you can provide
will be appreciated.
Code:
connection = cx_Oracle.connect("db/[EMAIL PROTECTED
Oops, to list also.
-- Forwarded message --
From: Liam Clarke <[EMAIL PROTECTED]>
Date: Wed, 30 Mar 2005 11:01:36 +1200
Subject: Re: [Tutor] Text and Tkinter
To: Igor Riabtchuk <[EMAIL PROTECTED]>
Yes I suppose.
I don't use Tkinter overly much, so this may not be correct,
b
Kevin wrote:
I figured out how to create a very simple socket server. Though this
socket server does exactly nothing special. I can however get it to
send only one line of data back to the telnet client.
You need two nested loops - an outer loop to accept the connection and an inner loop to proces
Hi,
As I am sure you know, the text widget in Tkinter
by default prints keyboard output left-to-right. Is there a way
to make it print right-to-left?
Igor
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Richard Lyons wrote:
I have little experience with programming. I have Python installed on a
Windows XP system. What code do I need to use to send output from a
Python script to a local printer attached to my workstation? to a
network printer?
The win32print module (in Matt Hammond's windows
I figured out how to create a very simple socket server. Though this
socket server does exactly nothing special. I can however get it to
send only one line of data back to the telnet client.
import socket
##
HOST = ""
PORT = 4000
##
s = socket.socket(socket
> I have little experience with programming. I have Python installed
on a
> Windows XP system. What code do I need to use to send output from
a
> Python script to a local printer attached to my workstation? to a
> network printer?
Printing in windows is inordinately difficult although there a
> Is it possible for me to make a command do multiple things instead
of 1?
Yes, its called writing a function or method.
> self.submit_bttn = Button(self, text = "Tries: 0", command =
self.reveal, self.update_count)
> I have tried putting the code as 2 commands on separate lines,
Try putting th
Smith, Jeff wrote:
Which is just what you'd expect.
It's absolutey absurd to tell someone to have *NO* faith in floating
numbers. It's like anything else in programming: you have to understand
what you are doing.
Unless a float that has been through a round function I do not trus it.
That is what
Brian van den Broek wrote:
> Sean Perry said unto the world upon 2005-03-29 03:48:
>
>> Kent Johnson wrote:
>>
Not without using round. Have *NO* faith in floating points. This
is
especially true when you are creating the decimals via division and
the like.
>>>
>>> Can you be
Well I think I am going to learn how to create small little server the
will just send and recive a message from a client. I just want to know
is it easier to use twistedmatrix or just plain socket to create
servers?
Thanks
Kevin
On Tue, 29 Mar 2005 06:11:46 -0500, Kent Johnson <[EMAIL PROTECTED]
I have little experience with programming. I have Python installed on a
Windows XP system. What code do I need to use to send output from a
Python script to a local printer attached to my workstation? to a
network printer?
Any help would be appreciated.
_
Bill Kranec wrote:
Hello,
This might be slightly OT, but I hope I can get a few pointers. Is it
possible to have an HTML form pass values to a Python script on a local
computer, and execute that script? (I'm running Win XP, if that matters.)
You have to have a server process running. It can be on
Hello,
This might be slightly OT, but I hope I can get a few pointers. Is it
possible to have an HTML form pass values to a Python script on a local
computer, and execute that script? (I'm running Win XP, if that matters.)
I would like to set up such a form to do some data entry. I understand
th
Brian van den Broek wrote:
Sean Perry said unto the world upon 2005-03-29 03:48:
Kent Johnson wrote:
Not without using round. Have *NO* faith in floating points. This is
especially true when you are creating the decimals via division and
the like.
Can you be more specific about what kinds of prob
Kevin wrote:
Well I just noticed somthing about the entire sServer.py file. All the
code under each def is not indented
sServer.py mixes tabs and spaces for indentation. If you view it in an editor that indents 8 spaces
for a tab it is fine.
You might be interested in the reindent.py and untabify
On Tuesday, Mar 22, 2005, at 15:34 America/Chicago,
[EMAIL PROTECTED] wrote:
When I adjust coumadin doses I normal have to use whole or half pills
of the medicien the patient already has.
Fer Instance, if a pt takes 5mg of coumadin a day, that's 35mg of
coumadin week
and suppose I do a test that
> gerardo arnaez wrote:
>
>> On Mon, 28 Mar 2005 09:27:11 -0500, orbitz
>> wrote:
>>
>>> Floats are inherintly inprecise. So if thigns arn't working like
you
>>> expect don't be surprised if 0.15, 0.12, and 0.1 are closer to the
same
>>> number than you think.
>>
>>
>>
>> Are you telling me tha
Sean Perry said unto the world upon 2005-03-29 03:48:
Kent Johnson wrote:
Not without using round. Have *NO* faith in floating points. This is
especially true when you are creating the decimals via division and
the like.
What?!?!
OK, floats don't necessarily have the exact values you expect (the
Danny Yoo said unto the world upon 2005-03-29 03:37:
*Almost* all ints are fixed points for the hashing function in the
sense that hash(some_int) == some_int. Almost all as:
>>> hash(-1)
-2
Any idea why -1 is the sole exception?
[warning: beginners, skip this. Completely inconsequential CPython d
[EMAIL PROTECTED] said unto the world upon 2005-03-29 03:14:
Quoting Brian van den Broek <[EMAIL PROTECTED]>:
I had thought lookup was by hash value, and thus expected the access
to some_dict to cause troubles. Yet it worked. Is it that lookup is by
hash value, and then equality if need be so as
On Monday, Mar 28, 2005, at 22:11 America/Chicago,
[EMAIL PROTECTED] wrote:
[cut]
the mere fact that floats are difficult to check with equality has
bitten me more than anything I've met yet in python.
[cut]
I understand what you are talking about, but I tend toward just making
it one of the thin
Kent Johnson wrote:
Not without using round. Have *NO* faith in floating points. This is
especially true when you are creating the decimals via division and
the like.
What?!?!
OK, floats don't necessarily have the exact values you expect (they may
have errors after many decimal places), and com
> *Almost* all ints are fixed points for the hashing function in the
> sense that hash(some_int) == some_int. Almost all as:
>
> >>> hash(-1)
> -2
>
> Any idea why -1 is the sole exception?
[warning: beginners, skip this. Completely inconsequential CPython detail
ahead.]
Hi Brian,
Yeah, I reme
On Tue, 29 Mar 2005, Diana Hawksworth wrote:
> Is it possible for me to make a command do multiple things instead of 1?
> For instance, I have a button that allows me to "submit" some user input
> (that is, show it in a window), but I also want it to count the number
> of times that submit button
Quoting Brian van den Broek <[EMAIL PROTECTED]>:
> I had thought lookup was by hash value, and thus expected the access
> to some_dict to cause troubles. Yet it worked. Is it that lookup is by
> hash value, and then equality if need be so as to settle ambiguity, or
> have I completely misunders
32 matches
Mail list logo