Constants in Python: Implementation and Best Practices

Constants in Python: Implementation and Best Practices

Samuel Chan via YouTube Direct link

Intro

1 of 10

1 of 10

Intro

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Constants in Python: Implementation and Best Practices

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Background: const vs var
  3. 3 Why / when to use constants const?
  4. 4 Benefits / Advantages of const
  5. 5 dataclasses' frozen param Frozen dataclasses
  6. 6 raise TypeError in __setattr__
  7. 7 python's design philosophy on const
  8. 8 typing.final / @final decorator
  9. 9 from typing import Final typecheck
  10. 10 summary including const into your python programming toolkit

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.