• Raymond Hettinger's avatar
    SF Patch #744104: Remove eval() from csv · 39a55920
    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.
    39a55920
csv.py 15.4 KB