Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38860

any chance for contracts and invariants in Python?

X-Received by 10.224.208.9 with SMTP id ga9mr595858qab.8.1360842146755; Thu, 14 Feb 2013 03:42:26 -0800 (PST)
X-Received by 10.49.60.40 with SMTP id e8mr1542182qer.40.1360842146696; Thu, 14 Feb 2013 03:42:26 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p13no16409385qai.0!news-out.google.com!k2ni32873qap.0!nntp.google.com!p13no16409379qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Thu, 14 Feb 2013 03:42:26 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=195.212.29.172; posting-account=bNceIwoAAAA0MLu9EMoyyrFytGTzg5Q6
NNTP-Posting-Host 195.212.29.172
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <70c4a8a5-0e8d-4e5c-b0cd-e4ccd90c5cb3@googlegroups.com> (permalink)
Subject any chance for contracts and invariants in Python?
From mrkafk@gmail.com
Injection-Date Thu, 14 Feb 2013 11:42:26 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:38860

Show key headers only | View raw


This PEP seems to be gathering dust:

http://www.python.org/dev/peps/pep-0316/

I was thinking the other day, would contracts and invariants not be better than unit tests? That is, they could do what unit tests do and more, bc they run at execution time and not just at development time?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

any chance for contracts and invariants in Python? mrkafk@gmail.com - 2013-02-14 03:42 -0800
  Re: any chance for contracts and invariants in Python? Philipp Hagemeister <phihag@phihag.de> - 2013-02-14 18:03 +0100
  Re: any chance for contracts and invariants in Python? Ian Kelly <ian.g.kelly@gmail.com> - 2013-02-14 11:05 -0700
  Re: any chance for contracts and invariants in Python? MRAB <python@mrabarnett.plus.com> - 2013-02-14 18:18 +0000
  Re: any chance for contracts and invariants in Python? Ethan Furman <ethan@stoneleaf.us> - 2013-02-14 10:33 -0800
  Re: any chance for contracts and invariants in Python? Mark Janssen <dreamingforward@gmail.com> - 2013-02-14 18:33 -0800

csiph-web