On 6/21/05, Michael Urman <[EMAIL PROTECTED]> wrote:
> Go for the singular form, whether prop or property.
> 
> label.property.text = 'Caption' reads better than
> label.properties.text = 'Caption'

I disagree. Although "label - property - text" makes sense on a basic
level because we are getting a "property" named "text", it doesn't fit
the way my brain things about objects and attributes in python.

Specifically, I think that label.properties makes more sense because
"properties" is effectively an object holding GObject attributes. It
should only be called "property" if it only holds one property at a
time.

Thus, the get_property() method name makes sense for a method to get a
single property, but "properties" strikes me as the better name to use
for an object that lets me reference all GObject properties.

As an native English speaker, I prefer to type "props", but I also
have no problem typing properties and I think those who prefer this
nomenclature have made reasonable arguments for using standard English
here.

Tom
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to