language-specifications

Is the shortcircuit behaviour of Python's any/all explicit?

Is the shortcircuit behaviour of Python's any/all explicit? Question: Prompted by the discussion here The docs suggest some equivalent code for the behaviour of all and any Should the behaviour of the equivalent code be considered part of the definition, or can an implementation implement them in a non-shortcircuit manner? Here is the relevant excerpt …

Total answers: 4

Can you add new statements to Python's syntax?

Can you add new statements to Python's syntax? Question: Can you add new statements (like print, raise, with) to Python’s syntax? Say, to allow.. mystatement “Something” Or, new_if True: print “example” Not so much if you should, but rather if it’s possible (short of modifying the python interpreters code) Asked By: dbr || Source Answers: …

Total answers: 13