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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/TYT6ACMNIVW4M3CKWSWB7B4SFEHPNAOE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to