Google News
logo
Flask - Interview Questions
What do you mean by a decorator? Name some PDB commands and their uses.
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
Advertisement