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


Groups > comp.lang.python > #19519

Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <nathan.alexander.rice@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.064
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'names.': 0.07; 'subject:based': 0.07; 'subject:code': 0.07; 'projects,': 0.15; 'ats': 0.16; 'subject: \n ': 0.16; 'subject:release': 0.16; '>>>': 0.18; 'thanks,': 0.18; 'suggest': 0.20; 'header:In-Reply-To:1': 0.22; 'guess': 0.25; "i'm": 0.27; 'message-id:@mail.gmail.com': 0.28; 'specifically': 0.30; 'values': 0.32; 'thanks': 0.32; 'languages': 0.32; 'to:addr:python-list': 0.33; 'align': 0.34; 'probably': 0.35; 'things': 0.35; 'be.': 0.35; 'received:209.85.160.46': 0.35; 'received:mail- pw0-f46.google.com': 0.35; 'received:209.85.160': 0.35; 'to:name :python-list': 0.36; 'skip:" 10': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'allows': 0.38; 'received:209.85': 0.38; 'think': 0.38; 'should': 0.38; 'received:209': 0.39; 'doing': 0.39; 'subject:: ': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'types': 0.61; 'your': 0.61; 'projects': 0.62; 'ideas.': 0.77; 'constraint': 0.84; 'nathan': 0.84; 'step,': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=anPahl5jnt7ALyf2VaGwZJBvlQVo5c42fNMzVeQ414Q=; b=evGdT3ucFuhD/eYZn2hZP1RzO+WmAfGKG0WR5CH0lh85ZDqmE7EwIbbVQW75EXBTDP eKDwPH3wpzvKW+FqQs0/zleOUNoR24iCGBzufDdlWU5AHo6lZzGE7VOHdn6XJCcsLslc 9/T5wHr0T89TdA/o9/bX+eGzVwGdjJWNxHDoI=
MIME-Version 1.0
In-Reply-To <CABicbJKwpG-Eo-5xEWD7yLQJcSqkA4JN0+UPp465b=YtBMW7Xg@mail.gmail.com>
References <CAOFbRm+sJF=+hqkgHSzZ1WmEU6+SNPp5LcaY3xfZ_OFVioTkbQ@mail.gmail.com> <CABicbJK6mVOVO=4h+WNCq_rQyfX4RiOQMzMbN_HsNCeiW64Xdg@mail.gmail.com> <CAOFbRmK1HOYurh962S7_JFK6L8kBiUcj6pyihmT21cRbNXPk-w@mail.gmail.com> <CABicbJKwpG-Eo-5xEWD7yLQJcSqkA4JN0+UPp465b=YtBMW7Xg@mail.gmail.com>
Date Fri, 27 Jan 2012 01:38:44 -0500
Subject Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks
From Nathan Rice <nathan.alexander.rice@gmail.com>
To python-list <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5152.1327646328.27778.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327646328 news.xs4all.nl 6847 [2001:888:2000:d::a6]:35814
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19519

Show key headers only | View raw


> May I suggest a look at languages such as ATS and Epigram? They use
> types that constrain values specifically to prove things about your
> program. Haskell is a step, but as far as proving goes, it's less
> powerful than it could be. ATS allows you to, at compile-time, declare
> that isinstance(x, 0 <= Symbol() < len(L)) for some list L. So it
> might align well with your ideas.

Thanks for the tip.

>>> Probably deserves a better name than "constraintslib", that makes one
>>> think of constraint satisfaction.
>>
>> As you can probably tell from my other projects, I'm bad at coming up
>> with snappy names.
>
> I'm bad at doing research on previous projects ;)

I guess I'm not plugging my other projects enough...  You should check
out elementwise.

Thanks,

Nathan

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


Thread

Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-01-27 01:38 -0500
  Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks Jon Clements <joncle@googlemail.com> - 2012-01-27 13:59 -0800

csiph-web