Overloadable Assignment PEP

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Fri Apr 4 01:08:44 EST 2003


Drew Moore wrote:
> # modify the voltages, in a very simple, readable syntax.
> vdduc = -3.8 # try a reduced supply
> vreset = -3.2 # and increased reset drive...
> vbias = 2.3 # and decreas the bias a little..

Maybe our brains work differently, but I'd find it
FAR less confusing if the dac were an object and
one did

   dac.vdduc = -3.8
   dac.vreset = -3.2
   dac.vbias = 2.3

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list