Python Decorators: Building a Custom Repeat Decorator — LearnFlat
⏱ 2 h 42 min 📚 27 aulas 🎧 Versão em áudio

Python Decorators: Building a Custom Repeat Decorator

Learn how to write, configure, and apply Python decorators by building a custom repeat decorator that automates function execution with modern type hints.

  • 💬 Instrutor de IA
    Pergunte sobre qualquer aula e receba uma resposta clara na hora, quando quiser.
  • 🕐 Comece quando quiser
    Sem horários nem prazos: aprenda no seu ritmo, quando quiser.
  • 🌐 Em português
    Aulas, tarefas e certificado: tudo totalmente no seu idioma.

Sobre este curso

Python decorators are powerful tools for modifying function behavior, yet they often seem mysterious to developers starting out. Understanding how to build and configure decorators is key to writing clean, reusable, and professional Python code. In this practical, text-based course, you will demystify decorators by building a fully functional repeat decorator from scratch. You will transition from understanding basic function wrappers to constructing advanced decorators that accept custom arguments, allowing you to run any function a specified number of times automatically. What you'll learn: — Understand the core concepts of first-class functions and closures in Python; — Build basic decorators to extend function behavior without modifying original code; — Design decorators that accept arguments to control execution flow dynamically; — Apply modern Python type hints to decorators to ensure code editor support and safety; — Handle function metadata properly using tools like wraps from the functools module; — Test and debug custom decorators to ensure they handle various edge cases smoothly. The course starts with foundational definitions, explaining how Python treats functions as first-class citizens. You will then progress step-by-step through writing basic wrappers, adding arguments to your decorators, and implementing modern type-safe practices. This course is designed for beginner to intermediate Python developers who want to master metaprogramming concepts. No prior experience with decorators is required, though a basic familiarity with Python functions and syntax is recommended. Start reading today to unlock the full potential of Python decorators and write cleaner, more modular code.

O que você vai receber

  • 📜 Certificado de conclusão
    Adicione ao seu perfil do LinkedIn
  • 💬 Tutor AI pessoal
    Travou em uma aula? Pergunte ao seu tutor integrado qualquer coisa, a qualquer hora.
  • 🎧 Versão em áudio incluída
    Estude em qualquer lugar, sem tela
  • ♾️ Acesso vitalício
    Volte quando quiser, sem expirar
  • 📱 Celular ou computador
    Funciona em qualquer dispositivo
  • 💸 Reembolso em 14 dias
    Sem perguntas
  • ⚡ Curto e focado
    2 h 42 min de conteúdo prático

Avaliações

Ainda não há avaliações — seja o primeiro a compartilhar sua experiência.

Escrever uma avaliação

☆☆☆☆☆
Pediremos para fazer login após enviar — o rascunho fica salvo.

Perguntas frequentes

O que preciso para fazer este curso? +

Só um celular ou computador com internet. Sem instalações nem hardware especial.

Como faço para pagar? +

Com cartão via Stripe. Não guardamos dados do cartão — o Stripe processa com segurança.

Posso pedir reembolso? +

Sim — reembolso integral em 14 dias, sem perguntas.

Por quanto tempo terei acesso? +

Para sempre. Uma vez comprado, o curso é seu para revisar quando quiser.

Vou receber um certificado? +

Sim. Ao concluir, você recebe um certificado que pode adicionar ao seu perfil do LinkedIn.

Feito para profissionais em
Tecnologia Design Finanças Marketing Saúde Educação Hotelaria Indústria