scanf in python
amdescombes at gmail.com
Tue Jul 22 06:58:29 CEST 2008
Robert Kern a écrit :
> AMD wrote:
>> I often need to parse strings which contain a mix of characters,
>> integers and floats, the C-language scanf function is very practical
>> for this purpose.
>> I've been looking for such a feature and I have been quite surprised
>> to find that it has been discussed as far back as 2001 but never
> The second Google hit is a pure Python implementation of scanf.
I had seen this pure python implementation, but it is not as fast or as
elegant as would be an implementation written in C directly within
python with no need for import.
More information about the Python-list