pysize icon indicating copy to clipboard operation
pysize copied to clipboard

Measure size of memory object in python

Results 7 pysize issues
Sort by recently updated
recently updated
newest added

> ...F.FF... > > FAIL: test_list_of_collections (__main__.TestPysize) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "D:/pysize-master/test_pysize.py", line 23, in test_list_of_collections > pysize.get_size(collection_list)) > AssertionError: 260 != 248 >...

P. S. Would you like to have a Travis integration automating publishing to PyPI?

Use iterative approach to find object sizes, added test for OrderedDict, although test needs to be updated with non-hardcoded value fixes #7

Hi. The iterable check on Line 25 doesn't work when encountering types. https://github.com/bosswissam/pysize/blob/e94d25c9e240ab359f22ffaea7f99f00b736c24e/pysize.py#L25 I believe this should be changed to ```python elif isinstance(obj, collections.Iterable) and not isinstance(obj, (str, bytes, bytearray)):...

`OrderedDict` is a special case. It has the same behavior as `dict`, but being treated as a custom object in `get_size` ``` Python 2.7.13 (default, Dec 23 2016, 05:05:58) [GCC...