Re: Is there any Generic RSS/ATOM generator in Python?

2008-02-13 Thread Terran Melconian
On 2008-02-11, js <[EMAIL PROTECTED]> wrote: > Is there any de-fact standard RSS/ATOM generator? (especially, I'd > like to create Atom's) > Do I have to do it myself from scratch? I looked into similar issues about six months ago. My conclusion was that generally XML generation libraries (unlike

Re: Is it explicitly specified?

2008-02-05 Thread Terran Melconian
>> Exactly, and if you use idiom func(*args, **kwargs) you can distinguish >> all the usage cases: >> >> >>> def func(*args, **kwargs): > > Nice... but I would still like to be able to specify the key's default > value in the func signature, and in this case this would not be The workaround I hav

Re: Naive idiom questions

2008-01-31 Thread Terran Melconian
On 2008-01-31, Bjoern Schliessmann <[EMAIL PROTECTED]> wrote: > Did you measure such impact on your application? > Also see http://www.skymind.com/~ocrow/python_string/ I don't have a real application yet. That was, in fact, exactly the web page which informed me that the MutableString class was

Re: Naive idiom questions

2008-01-31 Thread Terran Melconian
On 2008-02-01, Roger Miller <[EMAIL PROTECTED]> wrote: > On Jan 31, 11:48 am, Grant Edwards <[EMAIL PROTECTED]> wrote: >> I'm not sure what you're asking. AFAIK, the main reason that >> strings are immutable is so they can be used as dict keys. > > I think its more fundamental than that. If strin

Naive idiom questions

2008-01-31 Thread Terran Melconian
* Why are there no real mutable strings available? I found MutableString in UserString, but further research indicates that it is horribly inefficient and actually just wraps immutable strings for the implementation. I want to be able to accumulate a string with +=, not by going