Special-purpose extension of Python -- new kinds of objects

Paul Rubin http
Sun Dec 28 17:44:47 EST 2003


robert_dodier at yahoo.com (Robert Dodier) writes:
>   # "dn" == "decision network", an Ephemeral construct;
>   # this part is parsed separately from the python code
>   dn my_example:
>     chance X:
>       cpd: gaussian [mean: 25, std_dev: 75]
>     chance Y:
>       cpd: gaussian [mean: 12, std_dev: 19]
>     chance Z = X + Y

I don't see what good this does.  You can do the same thing with
ordinary Python classes.




More information about the Python-list mailing list