Hi, > http://hg.python.org/cpython/rev/447f521ac6d9 > user: Antoine Pitrou <solipsis at pitrou.net> > date: Tue Oct 04 16:04:01 2011 +0200 > summary: > When expandtabs() would be a no-op, don't create a duplicate string > > diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py > --- a/Lib/test/test_unicode.py > +++ b/Lib/test/test_unicode.py > @@ -1585,6 +1585,10 @@ > return > self.assertRaises(OverflowError, 't\tt\t'.expandtabs, sys.maxsize) > > + def test_expandtabs_optimization(self): > + s = 'abc' > + self.assertIs(s.expandtabs(), s) Shouldn’t that be marked CPython-specific?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4