1. Ronald Oussoren
  2. pyobjc
  3. Issues


Issue #38 resolved

add __sizeof__ support

Ronald Oussoren
repo owner created an issue

Add support for sys.getsizeof to PyObjC by implementing a sizeof method for PyObjC objects.

See: http://docs.python.org/2/library/sys.html#sys.getsizeof

Open issues:

  • This can only return information about PyObjC's memory usage, not the size of Objective-C or CoreFoundation objects.

I'm therefore not sure if adding sizeof to objc-object will be useful.

Comments (3)

  1. Log in to comment