We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8dd29f commit bc26cacCopy full SHA for bc26cac
dictresize.py
@@ -1,4 +1,5 @@
1
import itertools
2
+from sys import argv
3
from sys import getsizeof as memsize
4
5
@@ -54,7 +55,7 @@ def get_size_format(name):
54
55
56
57
if __name__ == '__main__':
- format_name = 'full'
58
+ format_name = argv[1]
59
display_sizes(get_size_format(format_name))
60
print('') # support 2.7
61
display_resizes(get_resize_format(format_name))
dictresize.sh
@@ -2,5 +2,5 @@
for version in 2.7 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12
do
- python$version dictresize.py > results$version.txt
+ python$version dictresize.py $1 > results$version.txt
6
done
0 commit comments