3 ms·
"how is ':' less onerous than underscores i.e. '.__'?" There is no difference at all, just one char vs five if we count ending double-underscores too, and more
by Kilimanjaro 15y ago
"how is ':' less onerous than underscores i.e. '.__'?"
There is no difference at all, just one char vs five if we count ending double-underscores too, and more visual noise. They both accomplish the same.
Being both the same, what difference do you think there is between, in one hand .init() and .__init__(), and on the other hand .init() and :init()
Just syntactic sugar, I rather pick my colon ;-)