[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: https://mail.p

[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: https://mail.pyth

[issue15436] __sizeof__ is not documented

2013-01-16 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15436] __sizeof__ is not documented

2013-01-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Michael Dorman
Changes by Michael Dorman : -- nosy: +mjdorma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Stephen Tonkin
Changes by Stephen Tonkin : -- nosy: +sptonkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15436] __sizeof__ is not documented

2012-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch type: -> enhancement versions: +Python 3.4 ___ Python tracker ___ ___ Python-

[issue15436] __sizeof__ is not documented

2012-08-29 Thread Aaron Iles
Changes by Aaron Iles : -- nosy: +aliles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[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-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: 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 http://stackoverflow.com

[issue15436] __sizeof__ is not documented

2012-07-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue15436] __sizeof__ is not documented

2012-07-25 Thread Antoine Pitrou
Antoine Pitrou 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 (except C extensi

[issue15436] __sizeof__ is not documented

2012-07-25 Thread Raymond Hettinger
Raymond Hettinger 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. Accordingly, there is litt

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Eric Snow
Eric Snow 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 official part of the language, bu

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Serhiy Storchaka
Serhiy Storchaka 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 _

[issue15436] __sizeof__ is not documented

2012-07-24 Thread Meador Inge
Meador Inge 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. """ [1] http:

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue2898. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Eric Snow
Eric Snow added the comment: is __sizeof__ part of the language or just an implementation detail? -- nosy: +eric.snow ___ Python tracker ___

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Could you possibly write a patch for 2.7, 3.2 and 3.3? No, not for documentation. -- ___ Python tracker ___ __

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly write a patch for 2.7, 3.2 and 3.3? -- nosy: +jcea ___ Python tracker ___ ___ P

[issue15436] __sizeof__ is not documented

2012-07-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: __sizeof__ is not documeneted -> __sizeof__ is not documented ___ Python tracker ___ ___ Pytho