What I learned

Liste des GroupesRevenir à cl python 
Sujet : What I learned
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 15. Feb 2025, 20:46:50
Autres entêtes
Organisation : Stefan Ram
Message-ID : <Final-20250215204537@ram.dialup.fu-berlin.de>
  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



Date Sujet#  Auteur
15 Feb 25 o What I learned1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal