Why not using Regular function to take the arguments and do the same thing as decoretor does | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why not using Regular function to take the arguments and do the same thing as decoretor does

For instance: def wrap(args): .... def decorate(args): print 40 * '=' wrap(args) print 40 * '='

18th Oct 2016, 12:21 AM
mohsen jamali
mohsen jamali - avatar
1 Answer
0
Decorator are used to many functions It reduce the size
8th Nov 2016, 5:56 AM
рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐
рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐ - avatar