[issue21930] new assert raises syntax proposal

2014-07-07 Thread Pavel Tyslyatsky
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`

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Brett Cannon
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

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Ezio Melotti
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

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Pavel Tyslyatsky
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 ___

[issue21930] new assert raises syntax proposal

2014-07-07 Thread Ezio Melotti
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