@@ -0,0 +1,1115 @@
+%22%22%22%0Asys.getsizeof() %E3%81%A8 __sizeof__() %E3%81%A7 %E8%BF%94%E3%81%95%E3%82%8C%E3%82%8B%E5%80%A4%E3%81%8C%E7%95%B0%E3%81%AA%E3%82%8B%E6%99%82%E3%81%8C%E3%81%82%E3%82%8B%E3%81%AE%E3%82%92%E7%A2%BA%E8%AA%8D%E3%81%99%E3%82%8B%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%0A%0AREFERENCES:: http://bit.ly/2GTVkbs%0A%22%22%22%0Aimport sys%0A%0Afrom trypython.common.commoncls import SampleBase%0A%0A%0Aclass Sample(SampleBase):%0A    def exec(self):%0A        # sys.getsizeof() %E3%81%AF GC %E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%81%AE%E5%88%86%E3%82%92%E5%8A%A0%E7%AE%97%E3%81%99%E3%82%8B%E3%81%AE%E3%81%A7%0A        # __sizeof__() %E3%81%8C%E8%BF%94%E3%81%99%E5%80%A4%E3%81%A8%E7%95%B0%E3%81%AA%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%8C%E3%81%82%E3%82%8B%0A        list_data = %5B10, 20%5D%0A        sys_sizeof = sys.getsizeof(list_data)%0A        dunder_sizeof = list_data.__sizeof__()%0A%0A        self._print(type(list_data), sys_sizeof, dunder_sizeof)%0A%0A        # %E5%90%8C%E3%81%98%E3%82%82%E3%81%AE%E3%82%82%E3%81%82%E3%82%8B%0A        str_data = %22hello world%22%0A        sys_sizeof = sys.getsizeof(str_data)%0A        dunder_sizeof = str_data.__sizeof__()%0A%0A        self._print(type(str_data), sys_sizeof, dunder_sizeof)%0A%0A        int_data = 1_000_000_000%0A        sys_sizeof = sys.getsizeof(int_data)%0A        dunder_sizeof = int_data.__sizeof__()%0A%0A        self._print(type(int_data), sys_sizeof, dunder_sizeof)%0A%0A    # noinspection PyMethodMayBeStatic%0A    def _print(self, t: type, sys_sizeof: int, dunder_sizeof: int):%0A        print(f'%7Bt%7D:%5Ctsys.getsizeof: %7Bsys_sizeof%7D%5Ctdunder_sizeof: %7Bdunder_sizeof%7D')%0A%0A%0Adef go():%0A    obj = Sample()%0A    obj.exec()%0A

Add sys.getsizeof() vs ```__sizeof__()``` difference example