Design question - Sharing of single object by multiple processes

2008-01-30 Thread Mike D
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),

RE: Design question - Sharing of single object by multiple processes

2008-01-31 Thread Mike D
? 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

Re: Design question - Sharing of single object by multiple processes

2008-01-31 Thread Mike D
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

Recommended data structure/ implementation

2008-02-12 Thread Mike D
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

Trouble using XML Reader

2008-03-03 Thread Mike D
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

Re: Trouble using XML Reader

2008-03-04 Thread Mike D
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

DOM parsing not working!

2008-03-07 Thread Mike D
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

PODCasts

2008-03-19 Thread Mike D
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