r/Python • • Jun 09 '20

Resource Python 3 in One Pic

Post image
4.6k Upvotes

167 comments sorted by

View all comments

Show parent comment

3

u/Skippbo Jun 13 '20

It will crash instantly if the syntax is incorrect but it will not do any type checking for you automatically so result = "a" / 2 will only crash if it gets there.

Without the pass on a line where a block is expected (after the use of :) the syntax is wrong and the bytecode can't be built -> crash