On Jan 31, 9:30 pm, Terran Melconian
<[EMAIL PROTECTED]> wrote:
>
> I want to be able to accumulate a string with +=, not by going
> through an intermediate list and then doing ''.join(), because I
> think the latter is ugly.
As others have observed, you can build a string using += ins
Carl Banks wrote:
> Not a big expert on docstrings (they seem so superfluous...)
>
Say wht?!
/W
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 31 Jan 2008 15:30:09 -0600, Terran Melconian wrote:
> * Is there a way to get headings in docstrings?
>
> I want to create my own sections, like "OVERVIEW", "EXAMPLES",
> "AUTHORS", "BUGS", etc. I can't figure out any way to do this. In
> perldoc, I can easily use =head1, but
Terran Melconian <[EMAIL PROTECTED]> writes:
> I guess for complete symmetry, there should then be frozendicts as well,
> although I don't envision a lot of use for them at the moment.
There should definitely be frozendicts and I've been wanting to write
an implementation. The main thing about th
On Jan 31, 4:30 pm, Terran Melconian
<[EMAIL PROTECTED]> wrote:
> * 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 implementati
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
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
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 strings were mutable
you would be constantly worrying about whe
Terran Melconian <[EMAIL PROTECTED]> writes:
> I want to be able to accumulate a string with +=, not by going
> through an intermediate list and then doing ''.join(), because I
> think the latter is ugly. There are also times when I'd like to use
> the string as a modifiable buffer
Terran Melconian wrote:
> * 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.
Did you measure such impact on you
On 2008-01-31, Terran Melconian <[EMAIL PROTECTED]> wrote:
> * Why are there no real mutable strings available?
[...]
> I want to be able to accumulate a string with +=, not by going
> through an intermediate list and then doing ''.join(),
So what's stopping you?
>>> s = "one"
>>> s +=
* 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
12 matches
Mail list logo