My quarterly question on Design by Contract in Python...
Laurent POINTAL
pointal at lure.u-psud.fr
Tue May 11 08:32:29 EDT 1999
On Sat, 08 May 1999 18:26:13 GMT, wtanksle at dolphin.openprojects.net
(William Tanksley) wrote:
>: On Fri, 07 May 1999 22:25:40 +1000, Stuart Hungerford wrote:
>: >Hi all,
>:
>: >Every so often after a minor or major Python
>: >release I like to ask the gurus of this group
>: >about implementing Design By Contract mechanisms
>: >(a-la Eiffel) in Python.
>:
>: Nobody seems to have made this connectionn yet, but...
>:
>: Sommeone posted a system a while ago which allowed addition of arbitrary
>: code before and after a function. With some work, that system could be
>: mixed into a class (perhaps even a metaclass) to implement pre/post
>: conditions and invariants.
I'm the guy. If interested by the 'patching' module, email to me, I
will give you the code (too large to be posted here I think) and the
html doc file.
A+
Laurent.
---
Laurent POINTAL - CNRS/LURE - Service Informatique Experiences
Tel/fax: 01 64 46 82 80 / 01 64 46 41 48
email : pointal at lure.u-psud.fr ou lpointal at planete.net
More information about the Python-list
mailing list