Message263895
I suggest to remove the micro-optimization from Python 3.5 for safety. I'm ok to experiment a new safer implementation on Python 3.6 ;-) We have more time to fix the code in Python 3.6 if new issues are found. Setting the tuple size to zero looks simple and safe, but the overall hack deserves a comment to explain: * why you use a cached tuple * why the reference count can be different than 2: recursive calls * why do you change the tuple size | |
Date | User | Action | Args | 2016-04-21 08:06:22 | vstinner | set | recipients: + vstinner, brett.cannon, rhettinger, ncoghlan, larry, eric.snow, serhiy.storchaka, random832, xiang.zhang | 2016-04-21 08:06:22 | vstinner | set | messageid: <1461225982.36.0.541231496411.issue26811@psf.upfronthosting.co.za> | 2016-04-21 08:06:22 | vstinner | link | issue26811 messages | 2016-04-21 08:06:22 | vstinner | create | | |