Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It doesn't look like a good design to me if allow a function be a decorator and 
a decorator fabric at the same time. It always lead to cumbersome and 
errorprone implementation. Currently there is only one example of such design 
in the stdlib, other propositions were rejected.

Checking that the argument is a string and raising exception otherwise looks 
good to me for 3.8. There is no a bug that need to be fixed in maintained 
versions. If you use unittest.skip() improperly, it is your failure. Helping to 
catch such mistakes is a new feature.

----------
nosy: +serhiy.storchaka
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34596>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to