Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

SIMPLIFY your code with decorators (+ typing)

Автор: Carberra

Загружено: 2024-05-27

Просмотров: 4822

Описание:

Decorators are amazing in Python, but have a habit of tripping a lot of people up! This video will cover the basics of creating simple and parametrised decorators (also known as decorator factories), as well as how to type them.

00:00 - Intro
00:49 - Creating a simple decorator
05:59 - Typehinting simple decorators
08:25 - Creating a parametrised decorator (decorator factory)
12:18 - Typehinting parametrised decorators
13:31 - Outro

—

If you want to see more of me, join my Discord server!
  / discord  

I get a lot of people asking, so here's my setup!
• Visual Studio Code:    • My Visual Studio Code setup! (2024)  
• Terminal:    • Make your terminal look AMAZING  

—

If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto

SIMPLIFY your code with decorators (+ typing)

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Implementing OAuth 2.0 from SCRATCH

Implementing OAuth 2.0 from SCRATCH

Generics are VITAL in typed Python

Generics are VITAL in typed Python

Скомпилированный Python БЫСТРЫЙ

Скомпилированный Python БЫСТРЫЙ

Java Collections: The Ultimate Guide to Arrays vs. HashMaps vs. Lists

Java Collections: The Ultimate Guide to Arrays vs. HashMaps vs. Lists

Avoid These BAD Practices in Python OOP

Avoid These BAD Practices in Python OOP

PLEASE Use These 5 Python Decorators

PLEASE Use These 5 Python Decorators

Are descriptors the most MISUNDERSTOOD part of Python?

Are descriptors the most MISUNDERSTOOD part of Python?

Are metaclasses the HARDEST thing in Python?

Are metaclasses the HARDEST thing in Python?

Python 3.14: The NEW T-strings are Awesome

Python 3.14: The NEW T-strings are Awesome

Python's contextlib is a HIDDEN GEM

Python's contextlib is a HIDDEN GEM

Python Typing Generics and Python 3.11 Variadic Generics

Python Typing Generics and Python 3.11 Variadic Generics

Pydantic is OP, here's why

Pydantic is OP, here's why

Are exception groups Python's MOST UNDERUSED feature?

Are exception groups Python's MOST UNDERUSED feature?

Из чего состоит зарплата программиста и как ее повышают

Из чего состоит зарплата программиста и как ее повышают

7 Things I Never Knew About Decorators (Python) Until Recently

7 Things I Never Knew About Decorators (Python) Until Recently

5 Useful Python Decorators (ft. Carberra)

5 Useful Python Decorators (ft. Carberra)

Декораторы Python: полное руководство

Декораторы Python: полное руководство

ДАМПЫ В JAVA на практике, разбираем проблемы

ДАМПЫ В JAVA на практике, разбираем проблемы

Modern Python logging

Modern Python logging

Debugging 101: Replace print() with icecream ic()

Debugging 101: Replace print() with icecream ic()

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com