On Thu, 17 Feb 2005 15:54:43 -0800 (PST), Terry Carroll <[EMAIL PROTECTED]>
wrote:
> On Wed, 16 Feb 2005, Robert Campbell wrote:
>
> > I am not a programmer, but have decided to learn Python. I am wondering
> > if anyone has used the Activestate ActivePython and what are the
> > advantages/disad
I'm using HTMLParser.py to parse XHTML and invalid tag is throwing an
exception. How do I handle this?
1. Below is the faulty markup. Notice the missing >. Both Firefox
and IE6 correct automatically but HTMLParser is less forgiving. My
code has to be able to treat this gracefully because I don
Hi Kent,
>So the layering is
>GUI - user interaction
>Application functionality
>CbDao - application-specific database access
>DbAccess - generic database access, easy to use
>JDBC connection - raw database access, not so easy to use
This sounds a lot like what I'm aiming for in a project, the
On Wed, 16 Feb 2005, Robert Campbell wrote:
> I am not a programmer, but have decided to learn Python. I am wondering
> if anyone has used the Activestate ActivePython and what are the
> advantages/disadvantages of using it rather than the standard Python
> tools.
If you're on Windows, I recomme
. Sm0kin'_Bull wrote:
No-one answered question
So, I e-mail it again
Help me please
I wrote this to add 2 numbers...
print "Please input data"
number1 = int(raw_input(" "))
number2 = int(raw_input("+ "))
total = number1 + number2
print total
raw_input("")
I want to make output like this...
1 + 1 =
On Feb 17, 2005, at 23:11, . Sm0kin'_Bull wrote:
I wrote this to add 2 numbers...
print "Please input data"
number1 = int(raw_input(" "))
number2 = int(raw_input("+ "))
total = number1 + number2
print total
raw_input("")
I want to make output like this...
1 + 1 = 2
But, actually... it looks like th
> Does it make sense to do this:
That depends on what you are trying to do!
If its to make scrambled eggs thewn nope, no sense
whatsoever, but if writing a programme storing an
instance inside another instance is very common
indeed! :-)
> In [2]: class AB:
>...: pass
>...:
> In [3
Luis N wrote:
Does it make sense to do this:
In [2]: class AB:
...: pass
...:
In [3]: a = AB()
In [4]: a
Out[4]: <__main__.AB instance at 0x8428bec>
In [5]: class BC:
...: def __init__(self, foo):
...: self.foo = foo
In [6]: b = BC(a)
In [7]: b.foo
Out[7]: <__main__.AB i
No-one answered question
So, I e-mail it again
Help me please
I wrote this to add 2 numbers...
print "Please input data"
number1 = int(raw_input(" "))
number2 = int(raw_input("+ "))
total = number1 + number2
print total
raw_input("")
I want to make output like this...
1 + 1 = 2
But, actually... it
Does it make sense to do this:
In [2]: class AB:
...: pass
...:
In [3]: a = AB()
In [4]: a
Out[4]: <__main__.AB instance at 0x8428bec>
In [5]: class BC:
...: def __init__(self, foo):
...: self.foo = foo
In [6]: b = BC(a)
In [7]: b.foo
Out[7]: <__main__.AB instance a
Thanks that's much nicer.
On Fri, 11 Feb 2005 22:28:55 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote:
> If you iterate over the author nodes you can check the user name and password
> of each in turn.
>
> Not tested code!
>
> def authenticateAuthor(author, password):
> authorxml = 'author.x
At 03:04 PM 2/16/2005, Brian van den Broek wrote:
Terry Carroll said unto the world upon 2005-02-16 16:18:
On Fri, 11 Feb 2005, Bob Gailer wrote:
Whenever you find yourself writing an if statement ask whether this
would be better handled by subclasses. Whenever you find yourself about
to write a gl
Chris Bromley said unto the world upon 2005-02-17 11:05:
Prior to running the script I use the check button in the
PythonWin and the scripts syntax is fine. When I run the script
though, the message
Script C:\ dBase_File_To_Shapefile.py returned exit code 0
appears in the status bar at the
Kevin Hine wrote:
Hello I'm very new to python but need to write a script to update a
single geodatabase table in arcview9 from several dbf files. If I can do
this I can then use windows scheduled tasks to up date the tables
automatically. The field names in the dbs files are or can be slightly
Hello again,
First off, please accept my apologies for my last message, which was sorely
lacking in the detail department. I'm such a beginner with programming that I
assumed the error would be glaringly obvious to an experienced programmer and
would jump of the page/screen right away. This was
Hello I'm very new to python but need to write a script to update a single geodatabase table in arcview9 from several dbf files. If I can do this I can then use windows scheduled tasks to up date the tables automatically. The field names in the dbs files are or can be slightly different from those
Hi,
>
> Anyway, why don't you tell us more about what you are trying to do and we can
> give better suggestions.
>
> Kent
I told you it was vague. ; )
Ok, so if you'll tolerate some bad ASCII, I've been narrowing down
what I want to do, and I think it's like this.
Title: RE:
robert wrote
Message: 1
Date: Wed, 16 Feb 2005 21:49:14 -0600
From: "Robert Campbell" <[EMAIL PROTECTED]>
Subject: [Tutor] Active Python
To:
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
I am not a programmer, but have decided to lear
Brian van den Broek wrote:
So, sorry, I don't know what's wrong with the code you sent me, and I
fear that if I tried to work it out, I'd do more damage. I yield the
floor as I am off to write "Don't post untested code 1000 times.
for i in range(1000):
print "Don't post untested code"
(tested,
Brian van den Broek schrieb:
Brian van den Broek said unto the world upon 2005-02-17 03:51:
> jrlen balane said unto the world upon 2005-02-17 02:41:
sir, what seemed to be the problem with this:
def process(list_of_lines):
data_points = []
for line in list_of_lines:
data_points.a
> >> Traceback (most recent call last):
> >> File "C:\Python23\practices\opentxt", line 12, in -toplevel-
> >> process(data)
> >> File "C:\Python23\practices\opentxt", line 6, in process
> >> data_points.append(int(line))
> >> ValueError: invalid literal for int():
Hi Brian,
Ah, th
Brian van den Broek said unto the world upon 2005-02-17 03:51:
> jrlen balane said unto the world upon 2005-02-17 02:41:
sir, what seemed to be the problem with this:
def process(list_of_lines):
data_points = []
for line in list_of_lines:
data_points.append(int(line))
return dat
Brian van den Broek wrote:
jrlen balane said unto the world upon 2005-02-17 02:41:
[...]
data_file = open('C:/Documents and Settings/nyer/Desktop/nyer.txt', 'r')
[...]
The immediate one, due to my advice, is that each line of your file ends
with a newline character ('\n'). So, you cannot call int
Brian van den Broek said unto the world upon 2005-02-17 03:51:
jrlen balane said unto the world upon 2005-02-17 02:41:
sir, what seemed to be the problem with this:
Hi,
I think the traceback is my fault from an oversight in the code I sent
you when you posted before. Sorry about that :-[
In cas
Robert Campbell mchsi.com> writes:
> I am not a programmer, but have decided to learn Python. I am
> wondering if anyone has used the Activestate ActivePython and what are the
> advantages/disadvantages of using it rather than the standard Python
> tools.
I use it, but I haven't used an offic
jrlen balane said unto the world upon 2005-02-17 02:41:
sir, what seemed to be the problem with this:
def process(list_of_lines):
data_points = []
for line in list_of_lines:
data_points.append(int(line))
return data_points
data_file = open('C:/Documents and Settings/nyer/Desktop
26 matches
Mail list logo