When Will I actually Use This? | Lazy Python Part 6

Don't Use This Code • James Powell
313 views •

Streamline your Python workflow with decorators, metaclasses, and more. Join the DUTC Discord Server: https://discord.gg/ZhJPKYSfNp Sign up for DUTC Weekly: https://mailchi.mp/dutc/ytweekly LinkedIn: https://www.linkedin.com/company/do-n-t-use-this-code/ Website: https://www.dontusethiscode.com/index.html Upcoming events: learning.dutc.io Looking for training? Contact [email protected] This is part of the Lazy Python series. In this series, we will look to answer the following questions: - When would I actually write a decorator or a higher-order decorator… and why? - When would I actually write a class decorator… and is this really better than other approaches? - When would I actually write a metaclass… and is there a better way? - When would I actually use eval or exec… and should I feel as guilty when I do it? Topics: decorators, higher-order decorators, class decorators, metaclasses, __init_subclass__, metaprogramming, exec, eval

Keyboard shortcuts

On. Switch them off if they collide with your assistive tools; ? still opens this sheet.

Go to

Press g then the letter.

  • gh Latest
  • gs Sources
  • gm Media
  • gv Videos
  • gp Podcasts
  • gc Calendar
  • gd Decoder
  • gz Dataviz
  • ga Datasets
  • gb Blog
  • gk Markets
  • gj Careers
  • gn Prompt Notebook

On this page

  • / Focus search, where there is one
  • t Back to top
  • ? This list
  • Esc Close