29 Jun
2019
29 Jun
'19
12:38 a.m.
Rhodri James wrote:
scanf (or rather sscanf) always looks like a brilliant idea right up until I come to use it, at which point I almost always do something else that gives me better control.
My experience is similar, but that's largely because error detection and reporting with the C version of sscanf is pretty terrible. At best all you can say is "there is something wrong with this line of input". If the Python version could produce better diagnostics, it might find more use. -- Greg