Sujet : Re: New VSI post on Youtube
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 26. Aug 2024, 00:37:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vagf8c$24uu6$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
User-Agent : Pan/0.160 (Toresk; )
On Sun, 25 Aug 2024 10:22:27 -0400, Arne Vajhøj wrote:
Python modules are not exactly like packages/namespaces, but OK close.
Python does have package namespaces. You can do longwinded Java-style
hierarchies, if you want. It’s just not common.
I guess there are two approaches to naming:
shorter is better -> less typing and smaller files
There is another useful approach, and that is
import «long-winded-name» as «short-name»
Python supports this, too.
Java, which needs it more, doesn’t.