[issue15436] __sizeof__ is not documented

2020-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I can add those changes if someone didn't take it already? I think we've decided that this is an implementation specific detail. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed

[issue15436] __sizeof__ is not documented

2020-03-22 Thread Ido Michael
Change by Ido Michael : -- nosy: -Ido Michael ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15436] __sizeof__ is not documented

2019-09-22 Thread Ido Michael
Ido Michael added the comment: I can add those changes if someone didn't take it already? Ido -- nosy: +Ido Michael ___ Python tracker ___

[issue15436] __sizeof__ is not documented

2019-08-08 Thread Philip Dye
Change by Philip Dye : -- nosy: +Philip Dye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15436] __sizeof__ is not documented

2013-01-16 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___

[issue15436] __sizeof__ is not documented

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Stephen Tonkin
Changes by Stephen Tonkin spton...@outlook.com: -- nosy: +sptonkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Michael Dorman
Changes by Michael Dorman mjdo...@gmail.com: -- nosy: +mjdorma ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue15436] __sizeof__ is not documented

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___

[issue15436] __sizeof__ is not documented

2012-08-29 Thread Aaron Iles
Changes by Aaron Iles aaron.i...@gmail.com: -- nosy: +aliles ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list mailing

[issue15436] __sizeof__ is not documented

2012-07-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: rhettinger: users frequently need sys.getsizeof. See, for example, http://stackoverflow.com/questions/1331471/in-memory-size-of-python-stucture http://stackoverflow.com/questions/449560/how-do-i-determine-the-size-of-an-object-in-python

[issue15436] __sizeof__ is not documented

2012-07-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: sys.getsizeof is certainly CPython-specific. However, __sizeof__ is not just an implementation detail of sys.getsizeof, just as __len__ is not an implementation detail of len(). Authors of extension types are supposed to implement it if object.__sizeof__

[issue15436] __sizeof__ is not documented

2012-07-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think there is one difference between __len__ and __sizeof__. __sizeof__ should be overloaded only for C-implemented classes. IMHO, it is a part of C API. That is a reasonable point. So documenting it along with the type slots might be best. --

[issue15436] __sizeof__ is not documented

2012-07-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___ Python-bugs-list

[issue15436] __sizeof__ is not documented

2012-07-25 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: This may be CPython specific. Also, sys.getsizeof() hasn't proved to be very useful (I never see anyone use it or see it in production code). Worse, it doesn't even make sense in the case of shared-key dictionaries and whatnot.

[issue15436] __sizeof__ is not documented

2012-07-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: sys.getsizeof() is not for production code, it's for experimenting and getting information at the command prompt. It's quite useful when you know its limitations. I'd argue that implementing __sizeof__ for user types doesn't make much sense

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: is __sizeof__ part of the language or just an implementation detail? -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: See issue2898. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___ ___

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: It is part of runtime services and is mentioned in the documentation for 'sys.getsizeof' [1]: getsizeof() calls the object’s __sizeof__ method and adds an additional garbage collector overhead if the object is managed by the garbage collector.

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: It is part of runtime services and is mentioned in the documentation for 'sys.getsizeof' [1]: Yes, but it is not mentioned in the index. -- ___ Python tracker rep...@bugs.python.org

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: issue2898 smells like an implementation detail to me. Also, sys.getsizeof() isn't necessarily authoritative here, since the sys module is full of all sorts of implementation details. I'm not saying __sizeof__ shouldn't be made an

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- title: __sizeof__ is not documeneted - __sizeof__ is not documented ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Could you possibly write a patch for 2.7, 3.2 and 3.3? -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436 ___

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Could you possibly write a patch for 2.7, 3.2 and 3.3? No, not for documentation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15436