self.__dict__ tricks

Tim Golden mail at timgolden.me.uk
Fri Oct 30 11:43:17 EDT 2009


MRAB wrote:
> Steven D'Aprano wrote:
>> On Fri, 30 Oct 2009 15:55:04 +1100, Ben Finney wrote:
>>
>>> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>>>
>>>> On Thu, 29 Oct 2009 21:16:37 -0500, Tim Johnson wrote:
>>>>> class formLoader():
>>>> Idiomatic Python is to use CamelCase for classes.
>>> Or rather: Instead of camelCase names, idiomatic Python is to use
>>> TitleCase names.
>> Thank you for the correction. I always mix up those two.
>>
> Wouldn't it be clearer if they were called dromedaryCase and
> BactrianCase? :-)

It's not often I really get a laugh out of this
mailing list, but that really made me chuckle.

Thanks :)

TJG



More information about the Python-list mailing list