use of properties

Robert Collins robertc at robertcollins.net
Thu Jan 5 02:00:08 GMT 2006


Hi, 
	We seem to have some varied uses of properties. I'd like to draw
everyones attention to a recent PEP8 change, which is that properties
should not be used for anything that has non trivial performance
implications. (To me, this means anything that reads or writes from disk
should never be a property).

The thing that got me dropping this mail to the list is 'branch.nick'
which can potentially take many seconds on slow transports: a get and
set method is entirely appropriate here.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060105/d0147392/attachment.pgp 


More information about the bazaar mailing list