Hi there!

I need help with two questions for an interface (to the FindStat database) 
I'm writing on http://trac.sagemath.org/ticket/17818.

a design question: it appears that, in sage, python properties are hardly 
used at all.  Since the interface allows submitting edits to entries, it 
seemed natural to use properties.  Eg., "statistic.description = ..." will 
set the description of a statistic, and "statistic.submit()" will then 
submit it for review by the FindStat people.

However, there are other objects, which currently (this will probably 
change in future) cannot be edited, like collections.  So I use 
"collection.description()" there to fetch it from the database.

This seems inconsistent.  Should I change everything to properties, or 
should I provide setters, i.e., "statistic.set_description(...)", for those 
that can be edited?

Thanks,

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to