[docs] [issue10021] Format parser is too permissive
report at bugs.python.org
Mon Oct 4 19:10:35 CEST 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Mon, Oct 4, 2010 at 1:02 PM, Eric Smith <report at bugs.python.org> wrote:
> Ah, but I don't need to in order to comply with the PEP!
This is true and this is the reason I changed this issue from bug to
doc. I seem to remember this having been discussed before, but I
cannot find the right thread. There are at least two reasons cpython
docs should mention this:
1. From current documentation, users are likely to expect a value
error from format(".$#@", ..) rather than an attribute error.
2. Naive proxy objects may implement __getattribute__ that blindly
inserts attribute name into database queries leading to all kinds of
Python tracker <report at bugs.python.org>
More information about the docs