Is pythonic version of scanf() or sscanf() planned?

r rt8396 at gmail.com
Mon Oct 12 00:32:59 EDT 2009


On Oct 3, 8:17 pm, Grant Edwards <inva... at invalid.invalid> wrote:
(--snip--)
> One of the fist things I remember being taught as a C progrmmer
> was to never use scanf.  Programs that use scanf tend to fail
> in rather spectacular ways when presented with simple typos and
> other forms of unexpected input.  
>
> Given the bad behavior and general fragility of scanf(), I
> doubt there's much demand for something equally broken for
> Python.

I don't think you can blame scanf() for that. More the "bad behavior"
of humans and "uncanny" ability of human fingers to press the the
wrong damn keys.




More information about the Python-list mailing list