New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

help(importlib.resources) outputs many noise. In particular it contains the 
description of builtin open() which is longer than descriptions of all 
functions defined in importlib.resources. It also contains references to typing 
classes in the DATA section.

There are two ways of solving this problem. First way: make all imported names 
underscored (for example _open instead of builtin_open). Second way: add 
__all__.

Actually I don't understand why buildin_open is used instead of just open. And 
_zipimport_get_resource_reader looks unused.

----------
components: Library (Lib)
messages: 316802
nosy: brett.cannon, eric.snow, ncoghlan, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Help on importlib.resources outputs the builtin open description
type: behavior
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33537>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to