Message327655
I have two options for solving this result.
1. Add necessary checks for the list case. This will add a bunch of code and will slow down handling all lists because of additional checks.
2. Use the optimization for lists only when there are no other references to it. If no other references, the list can not be changed. This will not add much code, and may even slightly speed up cases for tuples and lists. But the code will be more fragile.
Of course there is an option of removing this optimization at all. But bytes([x]) and bytes((x,)) are common cases. |
|
Date |
User |
Action |
Args |
2018-10-13 15:36:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, alexandre.vassalotti |
2018-10-13 15:36:50 | serhiy.storchaka | set | messageid: <1539445010.19.0.788709270274.issue34973@psf.upfronthosting.co.za> |
2018-10-13 15:36:50 | serhiy.storchaka | link | issue34973 messages |
2018-10-13 15:36:50 | serhiy.storchaka | create | |
|