Hi David, I'm writing contracts for pathlib as a proof-of-concept. See pypackagery for an example of a project on pypi that uses contracts: https://pypi.org/project/pypackagery/
The docs with contracts are available at: https://pypackagery.readthedocs.io/en/latest/packagery.html Mind that the interface to icontract might change soon so I'd wait a month or two before it stabilizes. Cheers, Marko Le mer. 26 sept. 2018 à 20:12, David Stanek <dsta...@dstanek.com> a écrit : > On Wed, Sep 26, 2018 at 12:49 AM Marko Ristin-Kaufmann > <marko.ris...@gmail.com> wrote: > > > >> An extraordinary claim is like "DbC can improve *every single project* > >> on PyPI". That requires a TON of proof. Obviously we won't quibble if > >> you can only demonstrate that 99.95% of them can be improved, but you > >> have to at least show that the bulk of them can. > > > > > > I tried to give the "proof" (not a formal one, though) in my previous > message. > > > > I have to admit that I haven't kept up with the discussion today, but > I was also hoping to see some proof. I'm genuinely interested in > seeing if this is something that can help me and the teams I work > with. I was very interested in DbC a long time ago, but never found a > way to make it valuable to me. > > I'd like to see a project from PyPI converted to use DbC. This would > make it easy to see the real world difference between an > implementation developed using DbC compared to one that is well > documented, tested and maybe even includes type hints. Toy or > cherry-picked examples don't help me get a feel for it. > > -- > david stanek > web: https://dstanek.com > twitter: https://twitter.com/dstanek > linkedin: https://www.linkedin.com/in/dstanek/ > _______________________________________________ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/