2 ms·
Yes, sorry if that was confusing -- perhaps I shouldn't have brought up ImportError. The point was that uncovering SyntaxError could possibly be as challenging
by wyldfire 8y ago
Yes, sorry if that was confusing -- perhaps I shouldn't have brought up ImportError. The point was that uncovering SyntaxError could possibly be as challenging as other feature tests.
try:
import collections
except ImportError:
# fallback impl of collections:
import something_that_uses_print_statement