[issue42733] io's r+ mode truncate(0)

2020-12-28 Thread 施文峰
施文峰 added the comment: hi Terry you are right i download python version 3.0.1 to check this case ''' Python 3.0.1 (r301:69556, Dec 28 2020, 14:14:02) [GCC 7.5.0] on linux5 Type "help", "copyright", "credits" or "license" for more information. >>> from test_case import test [43552 refs] >>>

[issue42733] io's r+ mode truncate(0)

2020-12-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sat, Dec 26, 2020 at 02:19:55AM +, Terry J. Reedy wrote: > "Enhancements" (non-bugfix feature changes) can only be applied to > future versions. However, you are asking for the reversion of an > intentional feature change made in a 'bugfix' release#

[issue42733] io's r+ mode truncate(0)

2020-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: "Enhancements" (non-bugfix feature changes) can only be applied to future versions. However, you are asking for the reversion of an intentional feature change made in a 'bugfix' release# for (I believe) 3.1. Before the change, as I remember, truncating to