SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

SF Patch #744104: Remove eval() from csv

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.
R
Raymond Hettinger committed
39a55920018ef19cc01b53063a2f090fe05d4982
Parent: 1546bc4