What do you mean by a decorator? Name some PDB commands and their uses.

devquora
devquora

Posted On: Feb 22, 2018

 

A decorator is defined as a function that adds functionality to another function without changing it. It wraps the function to add some functionality to it.Some PDB commands include

  • <b>: It adds a breakpoint
  • <c>: It resumes the execution
  • <s>: It debugs step by step
  • <n>: It moves to next line
  • <l>: It lists the source code
  • <p>: It prints an expression

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Python Flask Interview Questions

    What are the features of Flask Python?

    Flask Python is one of the newest frameworks of Python and is used for designing web applications for the following feat..

    Python Flask Interview Questions

    What are the advantages of Flask Python?

    Flask Python comes with all the advantages of Python and some additional pros of it are:Flasks design is lightweight ..

    Python Flask Interview Questions

    What is Flask-WTF and what are their features?

    Flask-WTF is featured to offer simple integration with WTForms. The Features include for Flask WTF are:Provides Integr..