scanf-1.0 for Python

Daniel Yoo dyoo at hkn.eecs.berkeley.edu
Tue Aug 24 12:27:05 EDT 2004


Hi everyone,


I've implemented a scanf-like module in pure Python:

    http://hkn.eecs.berkeley.edu/~dyoo/python/scanf/



If you've ever had the itch to do something like:

###
import scanf

(cmd, errors, warnings) = (
    scanf.sscanf("/usr/sbin/sendmail - 0 errors, 4 warnings",
                 "%s - %d errors, %d warnings"))
###



I hope this helps!



More information about the Python-list mailing list