Re: XML(JSON?)-over-HTTP: How to define API?

2009-07-03 Thread Ken Dyck
On Jul 2, 6:17 pm, Allen Fowler wrote: > Since I need to work with other platforms, pickle is out...  what are the > alternatives?  XML? JSON? Don't forget YAML (http://yaml.org). Libraries available for Python and .NET, among others. -Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is it that str.replace doesn't work sometimes?

2009-06-24 Thread Ken Dyck
On Jun 24, 12:11 pm, humn wrote: > I'm confused as to why this works: > > if '\chapter' in line: >         line = line.replace('\chapter{', '[b][u]') >         line = line.replace('}', '[/b][/u]') > > but this doesn't: > > if '\title' in line: >         line = line.replace('\title{', '[size=150][b