• Raymond Hettinger's avatar
    SF Patch #744104: Remove eval() from csv · f316930b
    Raymond Hettinger authored
    Eliminates the eval() step in the csv module resulting in better
    security, more clarity, and a little speed.
    
    The idea is to make successive attempts to coerce the string to
    a python type:
        int(s), long(s), float(s), etc.
    
    As a by-product, eliminates a bare 'except' statement.
    f316930b
csv.py 15.4 KB