Python Decorators: Mastering Functions that Return Functions — LearnFlat
⏱ 3 h 📚 30 lecciones 🎧 Versión en audio

Python Decorators: Mastering Functions that Return Functions

Learn how to write and apply custom Python decorators to modify function behavior, write cleaner code, and manage function metadata with modern type hints.

  • 💬 Instructor de IA
    Pregunta sobre cualquier lección y recibe una respuesta clara al instante, cuando quieras.
  • 🕐 Empieza cuando quieras
    Sin horarios ni fechas límite: aprende a tu ritmo, cuando quieras.
  • 🌐 En español
    Lecciones, tareas y certificado: todo completamente en tu idioma.

Sobre este curso

Have you ever wanted to modify the behavior of a Python function without changing its actual source code? Python decorators offer an elegant, powerful way to wrap functions and extend their capabilities, but understanding how they take and return function objects can be a hurdle for many programmers. This text-based course guides you step-by-step through the core concepts of first-class functions, closures, and decorator syntax. You will transition from writing basic wrapper functions to designing robust, reusable decorators that streamline your development workflow. In this course, you will: - Understand the foundational mechanics of first-class functions and how Python treats functions as objects. - Create custom decorator functions that take other functions as arguments and return modified versions. - Apply functools.wraps to preserve vital function metadata like docstrings and names. - Implement modern Python type hints for decorators to ensure code clarity and robust type checking. - Practice building real-world decorators for logging, timing execution, and access control through written exercises. The course starts with essential terminology and the fundamental mechanics of closures before moving on to practical decorator patterns and modern best practices. You will read clear explanations, analyze structured code examples, and reinforce your learning with targeted written exercises. Designed for beginner to intermediate Python developers who want to deepen their understanding of functional programming concepts. No prior experience with decorators is required, though a basic familiarity with writing standard Python functions is helpful. Start reading today to unlock the full potential of Python's decorator syntax and write more maintainable code.

Lo que obtendrás

  • 📜 Certificado de finalización
    Añádelo a tu perfil de LinkedIn
  • 💬 Tutor AI personal
    ¿Atascado en una lección? Pregúntale a tu tutor integrado lo que quieras, cuando quieras.
  • 🎧 Versión en audio incluida
    Aprende en cualquier momento, sin pantalla
  • ♾️ Acceso de por vida
    Vuelve cuando quieras, sin caducidad
  • 📱 Teléfono o computadora
    Funciona en cualquier dispositivo
  • 💸 Reembolso de 14 días
    Sin preguntas
  • ⚡ Breve y enfocado
    3 h de contenido práctico

Reseñas

Aún no hay reseñas — sé el primero en compartir tu experiencia.

Escribir una reseña

☆☆☆☆☆
Te pediremos iniciar sesión después de enviar — tu borrador se guarda.

Preguntas frecuentes

¿Qué necesito para tomar este curso? +

Solo un teléfono o computadora con internet. Sin instalaciones ni hardware especial.

¿Cómo pago? +

Con tarjeta a través de Stripe. No almacenamos datos de tarjeta — Stripe los gestiona de forma segura.

¿Puedo obtener un reembolso? +

Sí — reembolso completo en 14 días, sin preguntas.

¿Por cuánto tiempo tendré acceso? +

Para siempre. Una vez comprado, el curso es tuyo para revisarlo cuando quieras.

¿Obtendré un certificado? +

Sí. Al finalizar recibirás un certificado que puedes añadir a tu perfil de LinkedIn.

Diseñado para profesionales en
Tecnología Diseño Finanzas Marketing Salud Educación Hostelería Manufactura