Author tomcl
Recipients tomcl
Date 2009-08-04.09:50:47
SpamBayes Score 6.30916e-07
Marked as misclassified No
Message-id <1249379450.59.0.450192814076.issue6637@psf.upfronthosting.co.za>
In-reply-to
Content
NB - (discussion of significance of this bug)

Defaultdict called with no argument is anomalous & this problem can be 
avoided in such cases by using dict. However this is not possible if 
default value can change and the documentation specifically defines 
behavior when called with no parameter, so this case is allowed.

Furthermore this bug is unpleasant because when the default values are 
never used it is very counterintuitive to imagine that the an error in 
the default value function could have any effect on the output.

Possible solutions:
(1) raise error in this case, change documentation (I prefer)
(2) mend behaviour in this case

Best wishes, Tom
History
Date User Action Args
2009-08-04 09:50:50tomclsetrecipients: + tomcl
2009-08-04 09:50:50tomclsetmessageid: <1249379450.59.0.450192814076.issue6637@psf.upfronthosting.co.za>
2009-08-04 09:50:48tomcllinkissue6637 messages
2009-08-04 09:50:47tomclcreate