[New-bugs-announce] [issue27112] tokenize.__all__ list is incomplete
report at bugs.python.org
Tue May 24 16:56:35 EDT 2016
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 ...
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)
title: tokenize.__all__ list is incomplete
versions: Python 3.6
Added file: http://bugs.python.org/file42976/tokenize_all.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce