Author belopolsky
Recipients belopolsky, j5
Date 2008-04-17.04:43:46
SpamBayes Score 0.0769351
Marked as misclassified No
Message-id <1208407430.17.0.748110669736.issue2646@psf.upfronthosting.co.za>
In-reply-to
Content
I would say this is a good idea for 2.6.

Note that C functions are more forgiving:

>>> from datetime import *
>>> date(1,2,**{u'day':10})
datetime.date(1, 2, 10)
>>> dict(**{u'x':1,2:3,():5})
{u'x': 1, 2: 3, (): 5}

but

>>> date(1,2,**{u'day':10,u'x':20})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: keywords must be strings

I would not advocate making ** completely promiscuous (as in dict(..) 
above), but permitting unicode strings will allow for easier 3.0 
transitions.

I'll submit a patch.
History
Date User Action Args
2008-04-17 04:43:50belopolskysetspambayes_score: 0.0769351 -> 0.0769351
recipients: + belopolsky, j5
2008-04-17 04:43:50belopolskysetspambayes_score: 0.0769351 -> 0.0769351
messageid: <1208407430.17.0.748110669736.issue2646@psf.upfronthosting.co.za>
2008-04-17 04:43:49belopolskylinkissue2646 messages
2008-04-17 04:43:48belopolskycreate