On Sun, Aug 23, 2009 at 1:21 PM, Simon King <simon.k...@nuigalway.ie> wrote:
> > Hi! > > On Aug 23, 8:42 pm, William Stein <wst...@gmail.com> wrote: > [...] > > Don't make it upper case. Make the attribute _is_field. Otherwise the > > above sounds great to me. > > Or one could have a single attribute "_properties", which is a > dictionary, and then one can define > self._properties['integrally_closed'] = True > self._properties['field'] = False > ... > That's a great idea. I guess this would provide some flexibility, but I don't know if it > would be a "clean" thing to do. > Since I am not an experienced programmer: At this point you are too an experienced programmer. How many "lines of code" have you written? > Are there reasons to not use > a dictionary for those kind of things? > I can't think of any. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---