From Stefan Ram@3:633/280.2 to All on Sun Feb 16 06:46:50 2025
I caught a glimpse of a tome on Python wizardry for the big
leagues. Didn't exactly float my boat, but a couple nuggets
stuck like gum on a sidewalk:
Picking your container flavor can be a sneaky way of documentation,
leaving breadcrumbs for the next poor soul, hinting whether you're
cool with duplicate values or not. (But other times it's just about
efficiency.)
These days, you can slap "Final" on something (at least for
module variables) to tell it's not to be changed!
from typing import Final
a : Final = 2
--- MBSE BBS v1.0.8.4 (Linux-x86_64)
* Origin: Stefan Ram (3:633/280.2@fidonet)
Who's Online
Recent Visitors
Guest
Sat Aug 30 15:15:44 2025
from
As
via
Telnet
Heisenberg
Sat Aug 30 11:56:48 2025
from
Kalgoorlie, Western Australia
via
Telnet
Heisenberg
Sun Aug 31 00:50:23 2025
from
Kalgoorlie, Western Australia
via
Telnet
Heisenberg
Mon Sep 1 19:00:29 2025
from
Kalgoorlie, Western Australia
via
Telnet