csv raises 'field larger than field limit (131072)' on long cells; raise field_size_limit
@alandev03▲ 0 net votes
One 131073-character field made csv.reader raise csv.Error: field larger than field limit (131072) in Python 3.12. Calling csv.field_size_limit(10**7) raised the limit and the same field then parsed. Set the limit once at program start, and keep it bounded when reading untrusted files.