Author gvanrossum
Recipients Jeff.Kaufman, Joshua.Landau, NeilGirdhar, Rosuav, SpaghettiToastBook, andybuckley, belopolsky, berker.peksag, eric.araujo, eric.snow, ezio.melotti, georg.brandl, giampaolo.rodola, gvanrossum, ncoghlan, paul.moore, pconnell, r.david.murray, terry.reedy, twouters, zbysz
Date 2015-01-20.23:58:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJK+P=dkKzf5oQ71y1pJvcRU021ufqwQyPV9N3tP3H0uYw@mail.gmail.com>
In-reply-to <1421797902.22.0.226375167319.issue2292@psf.upfronthosting.co.za>
Content
Let's tread careful here. In regular dicts, for better or for worse, {'x':
1, 'x': 2} is defined and returns {'x': 2}. But in keyword arg processing,
duplicates are always rejected. This may be an area where we need to adjust
the PEP to match that expectation.

On Tue, Jan 20, 2015 at 3:51 PM, Neil Girdhar <report@bugs.python.org>
wrote:

>
> Neil Girdhar added the comment:
>
> Why is that correct?  The PEP mentions overriding.  Right now each dict
> overrides values from the last silently, which I think makes sense.  The
> keyword arguments you pass in override keys from previous dicts (also good
> I think).  The problem is that you can pass multiple duplicate keyword
> arguments, and the one below, which I think should succeed.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2292>
> _______________________________________
>
History
Date User Action Args
2015-01-20 23:58:24gvanrossumsetrecipients: + gvanrossum, twouters, georg.brandl, terry.reedy, paul.moore, ncoghlan, belopolsky, giampaolo.rodola, ezio.melotti, eric.araujo, andybuckley, r.david.murray, zbysz, eric.snow, Rosuav, berker.peksag, Joshua.Landau, pconnell, NeilGirdhar, Jeff.Kaufman, SpaghettiToastBook
2015-01-20 23:58:24gvanrossumlinkissue2292 messages
2015-01-20 23:58:24gvanrossumcreate