should "self" be changed?
Marko Rauhamaa
marko at pacujo.net
Tue Jun 2 13:19:53 EDT 2015
Steven D'Aprano <steve at pearwood.info>:
> On Fri, 29 May 2015 12:00 pm, Steven D'Aprano wrote:
>
> [...]
>> in a language where classes are
>> themselves values, there is no reason why a class must be instantiated,
>> particularly if you're only using a single instance of the class. Anyone
>> ever come across a named design pattern that involves using classes
>> directly without instantiating them?
>>
>> I'm basically looking for a less inelegant term for "instanceless class"
>> -- not so much a singleton as a zeroton.
>
> C# has these, and calls them static classes.
I guess Python has them, too, and calls them modules.
Marko
More information about the Python-list
mailing list