What does "next" under if-statement do?

Viewed 29

I'm trying to create a schedule with regular expressions and given this piece of code, I don't understand the functionality of "next" here and how it could be compared to "continue", "pass" or "break", etc.

for j, line in enumerate(lines):
    m = reg_expr_w.match(line)
    if (m != None):
        week_variabel = m.group(4)
        next
1 Answers

This is a very odd thing to have. next is a function. So that line doesn't do anything. Could you be missing part of the code? Otherwise this is a mistake of some kind, either a bug or a remnant of some older piece of code that wasn't fully cleaned up. Where did you get it?

Related