Skip to content

Conversation

paulmon
Copy link
Contributor

@paulmon paulmon commented May 8, 2019

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
Copy link
Contributor Author

paulmon commented May 8, 2019

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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants