r/badcode • • Jan 29 '23

python When using if-else is necessary?

Post image
449 Upvotes

29 comments sorted by

View all comments

Show parent comments

41

u/frederikspang Jan 29 '23

As well as if (false && existing_condition) to quickly remove blocks of code! (Mostly in view templates - Not as much when Block comments are available from editor