Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dc2928

Browse files
committed
reword readme
1 parent 49579f5 commit 0dc2928

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# PyMemory
2-
1+
# pymemory
32
inspect memory footprint of python objects.
43

5-
for example, we'd like to determine size of str `abc`?
6-
7-
in ascii, each char is 1 byte and a python str object has 37 bytes of overhead, so that means `abc` takes up 40 bytes.
4+
for example, we'd like to determine size of str `abc`. in ascii, each char is 1 byte and a python str object consumes 37 bytes of overhead, so we should expect 40 bytes for `abc`.
85

96
## install
107
```
@@ -16,6 +13,6 @@ python setup.py install
1613
## example
1714
```
1815
>>> from pymemory import deep_getsizeof
19-
>>> x = '1234567'
20-
>>> deep_getsizeof(x, set()) # prints 44 bytes
16+
>>> x = 'abc'
17+
>>> deep_getsizeof(x, set()) # prints 40 bytes
2118
```

0 commit comments

Comments
 (0)