Message258756
| Author |
vstinner |
| Recipients |
David MacIver, Kevin Shweh, Tijs Van Oevelen, abarry, arigo, donmez, ezio.melotti, fijall, mark.dickinson, ncoghlan, r.david.murray, rhettinger, serhiy.storchaka, torsten, vstinner |
| Date |
2016年01月21日.12:49:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1453380546.38.0.478915480931.issue25843@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Updated patch version 5.
> I meant that set shouldn't be handled in _PyCode_ConstantKey at all. Only frozenset constants can be considered equal. Sets as well as lists all should be different.
Ok, I dropped support for set type to only keep support for frozenset. set are now always considered as different, as list and other "unsupported types".
> There is yet one issue with string and bytes literals. When run Python with the -b option:
> (...)
> May be the type should be the first item in the key.
Oh, good catch. It's an old bug.
Yeah, putting the type as the first parameter fixes the issue. I made this change. I had to update compile.c to exchange the type and the value in the tuple. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年01月21日 12:49:06 | vstinner | set | recipients:
+ vstinner, arigo, rhettinger, mark.dickinson, ncoghlan, donmez, ezio.melotti, r.david.murray, torsten, fijall, serhiy.storchaka, David MacIver, abarry, Kevin Shweh, Tijs Van Oevelen |
| 2016年01月21日 12:49:06 | vstinner | set | messageid: <1453380546.38.0.478915480931.issue25843@psf.upfronthosting.co.za> |
| 2016年01月21日 12:49:06 | vstinner | link | issue25843 messages |
| 2016年01月21日 12:49:06 | vstinner | create |
|