fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Tim Schilling

@ehmatthes I enjoyed the latest Mostly Python email about checking for missing attributes. Something that crossed my mind reading the conclusion is that the intention is clearer, but it may be harder to find that usage now that the property is in a hasattr call. A person searching where an attribute is all used may search for `.attrname` which wouldn't be found. Removing the leading dot would avoid it, but sometimes a attribute name is a common word, so the dot increases the specificity.