Hi,
I'm trying to create a desktop weather program using the weather.gov SOAP
XML feed[1] and (after I get the insides all sorted out) Tkinter. However,
this is my first major program and I was wondering if anyone could offer me
some guidance in the construction of it.
I have settled on using SO
Alan Gauld wrote:
> "Ricardo Aráoz" <[EMAIL PROTECTED]> wrote
>
> In = open(r'E:\MyDir\MyDoc.txt', 'rb')
> Out = open(r'E:\MyDir\MyUpperDoc.txt', 'wb')
> Out.write(In.read().upper())
> In.close()
> Out.close()
>> Pretty simple program. The question is : If 'In' is a HUGE file,
Hello All,
We are still soliciting ideas for tutorials to put on at PyCon in Chicago
next spring. PyCon is all about our community; under the direction of the
PSF, planned, organized and run by volunteers just like you. We are asking
for topics that you want to see covered on the tutorial day (t
"Ricardo Aráoz" <[EMAIL PROTECTED]> wrote
In = open(r'E:\MyDir\MyDoc.txt', 'rb')
Out = open(r'E:\MyDir\MyUpperDoc.txt', 'wb')
Out.write(In.read().upper())
In.close()
Out.close()
>
> Pretty simple program. The question is : If 'In' is a HUGE file, how
> does Python process
"Ara Kooser" <[EMAIL PROTECTED]> wrote
> So I have a class set up and running. My question is how you append
> a
> list (such as self.contents = [ ]) using a method like def
> AddObject?
> class Area:
>#Methods. What you can do.
>def AddObject(self,thing):
>#pass
>self
Hi, I am in doubt :
>>> In = open(r'E:\MyDir\MyDoc.txt', 'rb')
>>> Out = open(r'E:\MyDir\MyUpperDoc.txt', 'wb')
>>> Out.write(In.read().upper())
>>> In.close()
>>> Out.close()
Pretty simple program. The question is : If 'In' is a HUGE file, how
does Python process it? Does it treat it as a stream
Thank you for the help on getting started on classes. I have a basic
understanding of how they are used and I reread the tutorials again.
So I have a class set up and running. My question is how you append a
list (such as self.contents = [ ]) using a method like def AddObject?
The code I am trying
"jim stockford" <[EMAIL PROTECTED]> wrote
>your example is interesting, but reading right to left
> doesn't work well, which bothers me.
It works OK if you treat the entire right hand side as an
expression that evaluates to a value which is bound to
the name on the left.
In the list cae
"Dave Kuhlman" <[EMAIL PROTECTED]> wrote
>> >> The response comes back as XML document but when I check it with
>> >> type(result) it shows the the response is a string.
> This is the point of using SOAPpy. XML is the underlying (and
> mostly hidden) data representation that is sent "across the
On Sat, Sep 01, 2007 at 10:24:24AM -0600, Eric Brunson wrote:
> Alan Gauld wrote:
> > "Sean Cronin" <[EMAIL PROTECTED]> wrote
> >
> >
> >> The response comes back as XML document but when I check it with
> >> type(result) it shows the the response is a string.
> >>
> >
> > Thats right the s
essentially right reinterpretation. I believe Pythonists
use the term "bind" to describe the action of what we're
used to thinking of as the assignment operator =
the name 'a' is bound to the list, in your former
example.
Everything is an object in Python, including integers.
Every ob
Alan Gauld wrote:
> "Sean Cronin" <[EMAIL PROTECTED]> wrote
>
>
>> The response comes back as XML document but when I check it with
>> type(result) it shows the the response is a string.
>>
>
> Thats right the string is the XML document, just as if you had read it
> from a file with the rea
Re: date matching with python and sqlite3
I sorry, maybe I am stupid at the moment but I cannot follow your
question,
I'm sorry, I didn't describe that too clearly...have coffee now, let's
try that again.
The user will have a choicebox that has options of "today", "this week",
"this mont
"Sean Cronin" <[EMAIL PROTECTED]> wrote
> The response comes back as XML document but when I check it with
> type(result) it shows the the response is a string.
Thats right the string is the XML document, just as if you had read it
from a file with the read() method.
> Does anyone have any sugg
"Righard/Riku van Roy" <[EMAIL PROTECTED]> wrote
> If you copy a list into another variable, and then change the second
> one, the first gets changed as well, for example:
>
a = [10, 40, 30, 20]
b = a
This is not a copy its a name assignment.
You have created a list object and assigned
Greetings,
I recently found a rather obscure book that looks pretty good.
The Reader Level is Beginner to Advanced, so I thought I'd share
it with the list (something for everyone).
Game Programming, The L Line, The Express Line To Learning.
Andy Harris.
Published by Wiley in February 1995.
ISBN:
jim stockford wrote:
> seems to me this is an artifact of the language.
'artifact of the language' to me implies some sort of unintended
consequence. In fact it is fundamental to the way assignment works in
Python.
This is good reading:
http://tinyurl.com/ysz8sr
> reading right to left
Thanks for your explenation, so essentialy a = b, copys the pointer of a
to b rather than the actual content. This explains why a[:] does work.
Do you have an explenation why this is not the case with integers ie.
>>> a, b = 10, a
>>> b = b + 10
>>> a, b
(10, 20)
thx
Op za, 01-09-2007 te 07:50
seems to me this is an artifact of the language.
reading right to left:
"make a list that contains 10,40,30,20, then create a
name 'a' to be used as a label to identify that list, then
(next line) create a label 'b' to attach to whatever is
the thing 'a' refers to, then (next line) modify
If you copy a list into another variable, and then change the second
one, the first gets changed aswell, for example:
>>> a = [10, 40, 30, 20]
>>> b = a
>>> b.sort()
>>> a
[10, 20, 30, 40]
>>> b
[10, 20, 30, 40]
or:
>>> a = [10, 40, 30, 20]
>>> b = a
>>> b[0] = 99
>>> a
[99, 40, 30, 20]
>>> b
[
I'm using SOAPpy to access weather data from the NOAA National Digital
Forecast Database XML Web Service [1] and I've been having
trouble figuring out how to parse the data.
The response comes back as XML document but when I check it with
type(result) it shows the the response is a string. Does a
I sorry, maybe I am stupid at the moment but I cannot follow your
question,
1) User can select a date, or a range of dates.
2) At the moment you are only able to let the user select a date that
has entered the database today.
3) A value from a table called duratation will be returned for the
I don't usually post general announcements and news items here but we
did recently have a discussion about whether Python 3000 is real or
fictional. It's very real...
Last week over twenty developers came together for a successful Py3k
sprint. As a result the first alpha release is expected in
"Dick Moores" <[EMAIL PROTECTED]> wrote
> > > And another question is, exactly what should go into PYTHONPATH?
>
> >Its what goes into sys.path.
>
> >In other words its where your local modules are stored.
> >Much more flexible. I'm a big fan of environment variables!
>
> I don't think I follow y
24 matches
Mail list logo