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 serhiy.storchaka
Recipients SilentGhost, justanr, rhettinger, serhiy.storchaka
Date 2015-02-01.18:53:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1422816802.24.0.357754012998.issue23372@psf.upfronthosting.co.za>
In-reply-to
Content
It may be written simpler:

    d = defaultdict(factory)
    for i in constants:
        d[i]

or

    d = defaultdict(factory, {i: factory() for i in constants})

I'm inclined to reject this proposition. It serves very special use case.
History
Date User Action Args
2015-02-01 18:53:22serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, SilentGhost, justanr
2015-02-01 18:53:22serhiy.storchakasetmessageid: <1422816802.24.0.357754012998.issue23372@psf.upfronthosting.co.za>
2015-02-01 18:53:22serhiy.storchakalinkissue23372 messages
2015-02-01 18:53:22serhiy.storchakacreate