homepage

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 lukasz.langa
Recipients eric.smith, holdenweb, lukasz.langa, michael.foord
Date 2010年11月25日.17:36:50
SpamBayes Score 2.6713716e-08
Marked as misclassified No
Message-id <1290706612.85.0.157018776283.issue10533@psf.upfronthosting.co.za>
In-reply-to
Content
Both arguments are true and definitive. Last possibility would be to introduce a factory function for defaultdicts that would only accept concrete values:
 from collections import fallbackdict
Then this factory could produce defaultdict instances like this:
 fallbackdict(0, some_key=1) --> defaultdict(lambda: 0, some_key=1)
That would be safe for future type changes as well.
If this version does not sound appealing, I can't see any other way of reliably introducing this shortcut.
History
Date User Action Args
2010年11月25日 17:36:52lukasz.langasetrecipients: + lukasz.langa, holdenweb, eric.smith, michael.foord
2010年11月25日 17:36:52lukasz.langasetmessageid: <1290706612.85.0.157018776283.issue10533@psf.upfronthosting.co.za>
2010年11月25日 17:36:50lukasz.langalinkissue10533 messages
2010年11月25日 17:36:50lukasz.langacreate

AltStyle によって変換されたページ (->オリジナル) /