This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients josh.r, lebedov, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2014-05-15.07:12:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400137921.65.0.986342118984.issue21507@psf.upfronthosting.co.za>
In-reply-to
Content
"I think the argument against using PyObject_LengthHint for the general iterable case is that for inputs other than sets or dicts, the assumption is that significant deduplication will occur."

Oh... I'm dumb :) Sorry.

Another option for frozenset only: we may adjust the internal size when the frozenset is created from an iterator.
History
Date User Action Args
2014-05-15 07:12:01vstinnersetrecipients: + vstinner, rhettinger, pitrou, serhiy.storchaka, josh.r, lebedov
2014-05-15 07:12:01vstinnersetmessageid: <1400137921.65.0.986342118984.issue21507@psf.upfronthosting.co.za>
2014-05-15 07:12:01vstinnerlinkissue21507 messages
2014-05-15 07:12:01vstinnercreate