On Thu, Dec 2, 2010 at 1:11 AM, Lorin Rivers <lriv...@mosasaur.com> wrote: > I tried making a generic function that created a table variable by > concatenating strings. > > myTable = tableBuilder('inverter',period=5) > > def tableBuilder(element,period=0): > if element == 'inverter': > if period = 0:
if period == 0: with a double equals char. -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/ Registered Linux user #438078 (http://counter.li.org/) I hang out on identi.ca: http://identi.ca/foxbunny Gimp Brushmakers Guild http://bit.ly/gbg-group