nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
benchmarks: Added CSV benchmark to bench suite
[nit.git]
/
benchmarks
/
csv
/
scripts
/
python_stdcsv.py
diff --git a/benchmarks/csv/scripts/python_stdcsv.py
b/benchmarks/csv/scripts/python_stdcsv.py
new file mode 100644
(file)
index 0000000..
b78cb15
--- /dev/null
+++ b/
benchmarks/csv/scripts/python_stdcsv.py
@@ -0,0
+1,8
@@
+import sys
+import csv
+
+lst = list();
+with open(sys.argv[1], 'r') as f:
+ reader = csv.reader(f, delimiter=':', quoting=csv.QUOTE_NONE)
+ for row in reader:
+ list.append(lst, row)