[Python-Dev] Excess help() output (original) (raw)
anatoly techtonik techtonik at gmail.com
Tue Jul 1 07:16:52 CEST 2014
- Previous message: [Python-Dev] PEP 471 -- os.scandir() function -- a better and faster directory iterator
- Next message: [Python-Dev] PEP 471: scandir(fd) and pathlib.Path(name, dir_fd=None)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
The help() output is confusing for beginners:
class B(object): ... pass ... help(B) Help on class B in module main:
class B(builtin.object) | Data descriptors defined here: | | dict | dictionary for instance variables (if defined) | | weakref | list of weak references to the object (if defined)
Is it possible to remove this section from help output? Why is it here at all?
dir(B) ['class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref']
-- anatoly t.
- Previous message: [Python-Dev] PEP 471 -- os.scandir() function -- a better and faster directory iterator
- Next message: [Python-Dev] PEP 471: scandir(fd) and pathlib.Path(name, dir_fd=None)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]