[Python-ideas] Why is design-by-contracts not widely adopted?

Chris Angelico rosuav at gmail.com
Wed Sep 26 09:08:35 EDT 2018

On Wed, Sep 26, 2018 at 11:04 PM Marko Ristin-Kaufmann
<marko.ristin at gmail.com> wrote:
> @Chris Angelico  would annotating pathlib convince you that contracts are useful? Is it general enough to start with?

I won't promise it'll convince me, but it'll certainly be a
starting-point for real discussion. Also, it's a fairly coherent
"library-style" module - a nice warm-up. So, when you're ready for a
REAL challenge, annotate tkinter :)

Actually, annotating the builtins might be worth doing too. Either
instead of or after pathlib.


More information about the Python-ideas mailing list