New submission from Pavel Tyslyatsky:
This proposal look preaty close to pep-463:
http://legacy.python.org/dev/peps/pep-0463/, but in assertion context.
Now python test libraries have different aproach for assertions, some try use
own implementations, for example, for equality `assertEqual`
Brett Cannon added the comment:
The best way to get language changes made is to first propose them on the
python-ideas mailing list
(https://docs.python.org/devguide/faq.html#suggesting-changes).
--
nosy: +brett.cannon
___
Python tracker
Ezio Melotti added the comment:
Agreed, but there are a few problems with the proposals:
1) it requires the addition of a new keyword (raises), and that will break any
program that uses it as an identifier;
2) the use case is arguably limited;
3) assertRaises is consistent with the other
Pavel Tyslyatsky added the comment:
Thanks for reply, I really missed many cases. I will try look deeper.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21930
___
Ezio Melotti added the comment:
See also https://mail.python.org/pipermail/python-ideas/2014-June/028206.html
for a list of things to keep in mind while adding new features (especially
keywords).
--
___
Python tracker rep...@bugs.python.org