Geoffrey Sneddon added the comment:
Like, where in the documentation can I learn that MappingView's initializer
takes an argument "mapping"?
--
___
Python tracker
<https://bugs.pyt
Geoffrey Sneddon added the comment:
You've missed my point: the arguments that MappingView.__init__ takes are
undocumented. Nowhere mentions class MappingView(mapping), as I would expect
from how initializers are documented else
Geoffrey Sneddon added the comment:
Then I guess what I consider a bug is "__init__ is undocumented".
--
___
Python tracker
<https://bugs.python.o
Geoffrey Sneddon added the comment:
How do you use ItemsView without:
* relying on __init__ and _mapping, which are both private implementation
details, or
* reimplementing __len__, __contains__, and __iter__?
Given you can't use the mixin implementations of __len__, __contains__
New submission from Geoffrey Sneddon :
The mixin methods on MappingView and its subclasses all rely on the
undocumented MappingView._mapping (set in the undocumented
MappingView.__init__).
This should probably be documented at least insofar as Set._from_iterable is.
--
assignee
New submission from Geoffrey Sneddon :
The compile built-in documentation says:
> Compile the source into a code or AST object.
It doesn't however go on to say when it returns each!
It does however note:
> If you want to parse Python code into its AST representation, see ast.p
Changes by Geoffrey Sneddon :
--
nosy: +gsnedders
___
Python tracker
<http://bugs.python.org/issue17909>
___
___
Python-bugs-list mailing list
Unsubscribe: