I'd like to point out sf bug #1494314 (
http://sourceforge.net/tracker/index.php?func=detail&aid=1494314&group_id=5470&atid=105470
) as an important one to fix before 2.5. It's clearly a regression and the
fix should be simple (there's a patch on the ticket).
Jean-Paul
On 5/24/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Fredrik Lundh wrote:
> > so, which one is correct ?
> >
> > Python 2.4.3
> > >>> "".replace("", "a")
> > ''
> > >>> u"".replace(u"", u"a")
> > u'a'
>
> Probably there shouldn't be any "correct" in this case,
> i.e. the result of replacing an emp
[/F]
>> so, which one is correct ?
>>
>> Python 2.4.3
>> >>> "".replace("", "a")
>> ''
>> >>> u"".replace(u"", u"a")
>> u'a'
[Greg Ewing]
> Probably there shouldn't be any "correct" in this case,
> i.e. the result of replacing an empty string should be
> undefined (because any string contains in
Fredrik Lundh wrote:
> so, which one is correct ?
>
> Python 2.4.3
> >>> "".replace("", "a")
> ''
> >>> u"".replace(u"", u"a")
> u'a'
Probably there shouldn't be any "correct" in this case,
i.e. the result of replacing an empty string should be
undefined (because any string contains infinitely
Ian Bicking wrote:
> Phillip J. Eby wrote:
>
>>At 02:32 PM 4/28/2006 -0500, Ian Bicking wrote:
>>
>>>I'd like to include paste.lint with that as well (as wsgiref.lint or
>>>whatever). Since the last discussion I enumerated in the docstring all
>>>the checks it does. There's still some outstandin
On 5/24/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> so, which one is correct ?
>
> Python 2.4.3
> >>> "".replace("", "a")
> ''
> >>> u"".replace(u"", u"a")
> u'a'
Since 'x'.replace('', 'a') and u'x'.replace('', u'a') return 'axa' and
u'axa', respectively, I conclude that the unicode version i
We've done some more research on it, and Richard Jones is working on it
right now. We'll see how it works, probably tomorrow.
Thanks,
Sean
--
If you don't have time to do it right, when will you ever find time to do
it over?
Sean Reifschneider, Member of Technical Staff <[EMAIL PROTECTED]>
tum
so, which one is correct ?
Python 2.4.3
>>> "".replace("", "a")
''
>>> u"".replace(u"", u"a")
u'a'
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/opti
On 5/23/06, Andrew Dalke <[EMAIL PROTECTED]> wrote:
> Me [Andrew Dalke] said:
> > The relevant code in stringobject uses PySequence_Fast_GET_ITEM(seq,
> > i),
> > which likely doesn't know about my derived __getitem__.
>
> Oops, I didn't know what the code was doing well enough. The
> relevant pro
On Wed, May 24, 2006 at 11:36:52AM +0100, Michael Hudson wrote:
>Could it just be that instantiating instances of new-style classes is
>slower than instantiating instances of old-style classes? There's not
>anything in what you've posted to suggest that exceptions are involved
>directly.
Sorry, I
Fredrik Lundh wrote:
>> Could it just be that instantiating instances of new-style classes is
>> slower than instantiating instances of old-style classes? There's not
>> anything in what you've posted to suggest that exceptions are involved
>> directly.
for completeness, here's the corresponding
Michael Hudson wrote:
> Could it just be that instantiating instances of new-style classes is
> slower than instantiating instances of old-style classes? There's not
> anything in what you've posted to suggest that exceptions are involved
> directly.
python -mtimeit -s "class Exception(object):
Sean Reifschneider <[EMAIL PROTECTED]> writes:
> We're working at the sprint on tracking this down. I want to provide some
> history first and then what we're looking for feedback on.
>
> Steve Holden found this on Sunday, the pybench try/except test shows a ~60%
> slowdown from 2.4.3 to 2.5a2.
We're working at the sprint on tracking this down. I want to provide some
history first and then what we're looking for feedback on.
Steve Holden found this on Sunday, the pybench try/except test shows a ~60%
slowdown from 2.4.3 to 2.5a2. The original test is, roughly:
for i in range(N):
14 matches
Mail list logo