Skip to content

Instantly share code, notes, and snippets.

@grubberr
Created September 1, 2023 12:48
Show Gist options
  • Save grubberr/da8c0a9db0ac818bca01c86613ca8fab to your computer and use it in GitHub Desktop.
Save grubberr/da8c0a9db0ac818bca01c86613ca8fab to your computer and use it in GitHub Desktop.
csv field limit error
import io
import csv
buff = io.StringIO("field\nvalue1\nvalue" + csv.field_size_limit() * 'e')
reader = csv.reader(buff)
for row in reader:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment