Hello, I've just picked up the Python language and am really enjoying it.
I've just signed up to this mailing list and I'm looking forward to taking
part in some discussions.
My first post is a question I've been pondering for the last couple of days:
For relatively static data (such as a list),
? Really?
I think I should have said process start up, for example a long running
process that can supply the object to new ones, loaded on webserver start
up.
I appreciate comments, It is purely so I can understand python and program
design better.
Regards,
Mike
On Feb 1, 2008 12:09 AM, S
ugh it would be much
safer.
I'll continue to investigate, thanks for your input.
On Feb 1, 2008 11:00 AM, Steve Holden <[EMAIL PROTECTED]> wrote:
> Mike D wrote:
> > Steve,
> >
> > Thanks for the response. My question really comes down to, as you
> > suggest
I have a simple requirement: A user belongs to groups and groups contain
items.
Based on user/group I want to display items.
Based on user I want to display groups.
What would be the best method of implementing this? A dictionary of objects?
I'd usually just use a database but I feel it's quite
Hello,
I'm using XML Reader (xml.sax.xmlreader.XMLReader) to create an rss reader.
I can parse the file but am unsure how to extract the elements I require.
For example: For each element I want the title and description.
I have some stub code; I want to create a list of objects which include a
On 3/3/08, Mike D <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm using XML Reader (xml.sax.xmlreader.XMLReader) to create an rss
> reader.
>
> I can parse the file but am unsure how to extract the elements I require.
> For example: For each element I want the tit
Hello, I've spent the morning trying to parse a simple xml file and have the
following:
import sys
from xml.dom import minidom
doc=minidom.parse('topstories.xml')
items = doc.getElementsByTagName("item")
text=''
for i in items:
t = i.firstChild
print t.nodeName
if t.nodeType == t.TEXT
I really should say net cast as I think it's a better term ;)
Does anyone have any recommended net casts on Python, or programming in
general?
Whats everyone listening to?
Cheers Guys!
--
http://mail.python.org/mailman/listinfo/python-list