News for hackers. Stuff that matters.
Re:A function decorator that rewrites the bytecode to enable... by nerdponx on Monday September 20, 2021 @11:20PM (#28601767)
Doesn't Perl also have this? It would be a great feature in Python, although I wouldn't use it very often.
Re:A function decorator that rewrites the bytecode to enable... by gnubison on Monday September 20, 2021 @11:39PM (#28601859)
In Perl, any “bare block” is equivalent to a loop that only runs once. Useful in conjunction with redo too.