Skip to content

bpo-36778: Avoid functools in encodings.cp65001 - #13211

Closed
paulmon wants to merge 1 commit into
python:masterfrom
paulmon:cp65001_no_functools
Closed

paulmon wants to merge 1 commit into
python:masterfrom
paulmon:cp65001_no_functools

Conversation

@paulmon

@paulmon paulmon commented May 8, 2019 •

Copy link
Copy Markdown
Contributor

based on #13110

Replace functools.partial() with lambda to reduce the number of
imports at startup. Avoid the following imports at startup:

_collections
_functools
_heapq
_operator
collections
functools
heapq
itertools
keyword
operator
reprlib

https://bugs.python.org/issue36778

@paulmon

paulmon commented May 8, 2019

Copy link
Copy Markdown
Contributor Author

Still seeing one failure in my local test pass

FAIL: test_incremental_surrogatepass (test.test_codecs.CP65001Test)

Traceback (most recent call last):
File "C:\master\pythond\lib\test\test_codecs.py", line 436, in test_incremental_surrogatepass
self.assertEqual(dec.decode(data[i:], True), '\uD901')
AssertionError: '' != '\ud901'

  • \ud901

@paulmon paulmon closed this May 10, 2019
@paulmon
paulmon deleted the cp65001_no_functools branch May 10, 2019 00:37
@vstinner

Copy link
Copy Markdown
Member

I merged my PR #13230 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants