New submission from Jacek Kołodziej:
That's a child issue of #23883, created to propose a patch fixing tokenize
module's __all__ list.
Changes in tests go farther: I've changed import from
from tokenize import ...
to
import tokenize
and adjusted all its usages accordingly.
The module must be imported in order to test its __all__ list through
test.support.check__all__ helper and just adding this single import would
either force us to either do
* import tokenize as tokenize_module
* or from tokenize import tokenize as tokenize_function
I think going third way: with just "import tokenize" and changing its uses in
the rest of tests result in celarer code, but of course I guess this may be too
much for a single patch.
----------
components: Library (Lib)
files: tokenize_all.patch
keywords: patch
messages: 266275
nosy: Unit03
priority: normal
severity: normal
status: open
title: tokenize.__all__ list is incomplete
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42976/tokenize_all.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27112>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com