From Eason.Zhang0731 at outlook.com Wed Jul 22 06:51:12 2020 From: Eason.Zhang0731 at outlook.com (Eason Zhang) Date: Wed, 22 Jul 2020 10:51:12 +0000 Subject: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! Message-ID: Hello, I created a new py file that can be saved and run on IDLE v3.8.3. I also created a new py file on IDLE v3.8.4 but it can NOT be saved! Tried to edited an old version(e.g. v3.8.3) created py file on IDLE v3.8.4 , it can be saved! That's so strange! It still cannot save on current latest version v3.8.5!! I tested this function both on 32-bits and 64-bits and they are all CANNOT work!! Please check and fix this bug ASAP! Regards, Eason -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Wed Jul 22 09:04:12 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Wed, 22 Jul 2020 09:04:12 -0400 Subject: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! In-Reply-To: References: Message-ID: <9d21a903-b0e2-1a93-18ed-04c54b0217d4@udel.edu> On 7/22/2020 6:51 AM, Eason Zhang wrote: > I created a new py file that can be saved and run on IDLE v3.8.3. > I also created a new py file on IDLE v3.8.4?but it can NOT be saved! > Tried to edited an old version(e.g. v3.8.3) created py file on IDLE > v3.8.4 , it can be saved! That's so strange! The specific bug in 3.8.4 is not saving files with non-ascii characters. Either put 'import io' at the top of /Lib/idlelib/iomenu.py or install 3.8.5, which has the fix. > It still cannot save on current latest version v3.8.5!! I just saved and ran print('eyes ?? snakes ?') Note that the snake emoji is not in the Basic Multilingual Plane and such characters are not officially supported by the tcl/tk gui framework. They mess up editing a bit, but I put it in to test the fix. > I tested this > function both on 32-bits and 64-bits and they are all CANNOT work!! Perhaps your system or file has another issue. Reduce your file to the minimum content that has a problem. Then copy it in a response. TJReedy From tjreedy at udel.edu Thu Jul 23 00:08:09 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Thu, 23 Jul 2020 00:08:09 -0400 Subject: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! In-Reply-To: References: Message-ID: On 7/22/2020 6:51 AM, Eason Zhang wrote: > Hello, > > I created a new py file that can be saved and run on IDLE v3.8.3. > I also created a new py file on IDLE v3.8.4?but it can NOT be saved! > Tried to edited an old version(e.g. v3.8.3) created py file on IDLE > v3.8.4 , it can be saved! That's so strange! > > It still cannot save on current latest version v3.8.5!! I tested this > function both on 32-bits and 64-bits and they are all CANNOT work!! In response to my response about missing 'import io' and the fix on 3.8.5/3.9.0b5, Eason privately sent me QUOTE""""""""""""""""""""""""""""""""""""""""""""" Video1 (No bug on v3.8.3): https://www.screencast.com/users/lonlon29/folders/Default/media/a0626e93-2c1c-4921-9560-955eb6111466 Video2(Bug was found on v3.8.5): https://www.screencast.com/t/xrbA7bQpRbuZ System environment: Windows 8.1 64-bits OS and Windows 7 64-bits OS. """"""""""""""""""""""""""""""""""""""""""""""" System has Chinese set as its language. Video2 shows existing C:/Users/Administrators/Documents/test.py containing Chinese characters being edited, saved, and run multiple times with 3.8.5. So he is not running into the 3.8.4 no non-ascii chars bug. In my response, I said Eason might be running into another issue. Videa2 continues with Windows 7/8.1 File Explorer > Create New > Text file* > name 385.py > right click > Edit with IDLE 3.8. (*I cannot read Chinese but recognize positions of clicks. 'Edit ...' is the English installed by the python Windows installer.) I did the same with 'Edit with IDLE 3.9' as for some reason my installation of 3.8 did not add 'Edit with IDLE 3.8'. I had the same no-save problem. When I tried editing the file from a command line with C:\Users\Terry>py -3.8 -m idlelib f:/python/a/385.py I got a traceback in Command Prompt ending with File "C:\Programs\Python38\lib\idlelib\iomenu.py", line 252, in fixnewlines text = text.replace("\n", self.eol_convention) TypeError: replace() argument 2 must be str, not None I suspect that this is only a Windows issue. Someone with *nix or Mac could check. An immediate fix is to change the condition on the previous line, iomenu.py, line 251. if self.eol_convention not in (None, '', "\n"): This or a better fix should be in the next release, likely 3.9.0rc1. A new file created with File => New can be saved as usual. -- Terry Jan Reedy From tjreedy at udel.edu Thu Jul 23 00:08:09 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Thu, 23 Jul 2020 00:08:09 -0400 Subject: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! In-Reply-To: References: Message-ID: On 7/22/2020 6:51 AM, Eason Zhang wrote: > Hello, > > I created a new py file that can be saved and run on IDLE v3.8.3. > I also created a new py file on IDLE v3.8.4?but it can NOT be saved! > Tried to edited an old version(e.g. v3.8.3) created py file on IDLE > v3.8.4 , it can be saved! That's so strange! > > It still cannot save on current latest version v3.8.5!! I tested this > function both on 32-bits and 64-bits and they are all CANNOT work!! In response to my response about missing 'import io' and the fix on 3.8.5/3.9.0b5, Eason privately sent me QUOTE""""""""""""""""""""""""""""""""""""""""""""" Video1 (No bug on v3.8.3): https://www.screencast.com/users/lonlon29/folders/Default/media/a0626e93-2c1c-4921-9560-955eb6111466 Video2(Bug was found on v3.8.5): https://www.screencast.com/t/xrbA7bQpRbuZ System environment: Windows 8.1 64-bits OS and Windows 7 64-bits OS. """"""""""""""""""""""""""""""""""""""""""""""" System has Chinese set as its language. Video2 shows existing C:/Users/Administrators/Documents/test.py containing Chinese characters being edited, saved, and run multiple times with 3.8.5. So he is not running into the 3.8.4 no non-ascii chars bug. In my response, I said Eason might be running into another issue. Videa2 continues with Windows 7/8.1 File Explorer > Create New > Text file* > name 385.py > right click > Edit with IDLE 3.8. (*I cannot read Chinese but recognize positions of clicks. 'Edit ...' is the English installed by the python Windows installer.) I did the same with 'Edit with IDLE 3.9' as for some reason my installation of 3.8 did not add 'Edit with IDLE 3.8'. I had the same no-save problem. When I tried editing the file from a command line with C:\Users\Terry>py -3.8 -m idlelib f:/python/a/385.py I got a traceback in Command Prompt ending with File "C:\Programs\Python38\lib\idlelib\iomenu.py", line 252, in fixnewlines text = text.replace("\n", self.eol_convention) TypeError: replace() argument 2 must be str, not None I suspect that this is only a Windows issue. Someone with *nix or Mac could check. An immediate fix is to change the condition on the previous line, iomenu.py, line 251. if self.eol_convention not in (None, '', "\n"): This or a better fix should be in the next release, likely 3.9.0rc1. A new file created with File => New can be saved as usual. -- Terry Jan Reedy From Eason.Zhang0731 at outlook.com Wed Jul 22 10:06:35 2020 From: Eason.Zhang0731 at outlook.com (Eason Zhang) Date: Wed, 22 Jul 2020 14:06:35 +0000 Subject: [Idle-dev] =?utf-8?b?5Zue5aSNOiAgW0JVR106IENhbiBub3Qgc2F2ZSBh?= =?utf-8?q?nything_on_IDLE_since_v3=2E8=2E4!!?= In-Reply-To: <9d21a903-b0e2-1a93-18ed-04c54b0217d4@udel.edu> References: , <9d21a903-b0e2-1a93-18ed-04c54b0217d4@udel.edu> Message-ID: Hi TJReedy, Thanks for your response. You can watch below two videos that you will know how bug comes. Video1 (No bug on v3.8.3): https://www.screencast.com/users/lonlon29/folders/Default/media/a0626e93-2c1c-4921-9560-955eb6111466 Video2(Bug was found on v3.8.5): https://www.screencast.com/t/xrbA7bQpRbuZ System environment: Windows 8.1 64-bits OS and Windows 7 64-bits OS. Looking forward to your reply! Regards, Eason ________________________________ ???: Terry Reedy ????: 2020?7?22? 21:04 ???: Eason Zhang ; idle-dev at python.org ??: Re: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! On 7/22/2020 6:51 AM, Eason Zhang wrote: > I created a new py file that can be saved and run on IDLE v3.8.3. > I also created a new py file on IDLE v3.8.4 but it can NOT be saved! > Tried to edited an old version(e.g. v3.8.3) created py file on IDLE > v3.8.4 , it can be saved! That's so strange! The specific bug in 3.8.4 is not saving files with non-ascii characters. Either put 'import io' at the top of /Lib/idlelib/iomenu.py or install 3.8.5, which has the fix. > It still cannot save on current latest version v3.8.5!! I just saved and ran print('eyes ?? snakes ?') Note that the snake emoji is not in the Basic Multilingual Plane and such characters are not officially supported by the tcl/tk gui framework. They mess up editing a bit, but I put it in to test the fix. > I tested this > function both on 32-bits and 64-bits and they are all CANNOT work!! Perhaps your system or file has another issue. Reduce your file to the minimum content that has a problem. Then copy it in a response. TJReedy -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eason.Zhang0731 at outlook.com Thu Jul 23 06:53:23 2020 From: Eason.Zhang0731 at outlook.com (Eason Zhang) Date: Thu, 23 Jul 2020 10:53:23 +0000 Subject: [Idle-dev] =?gb2312?b?u9i4tDogW0JVR106IENhbiBub3Qgc2F2ZSBhbnl0?= =?gb2312?b?aGluZyBvbiBJRExFIHNpbmNlIHYzLjguNCEh?= In-Reply-To: References: , Message-ID: Hi Terry, Thanks for response again. I tried to create a new file with "File => New" on 3.8.5. It's true that can be saved as usual. I will take this advice for temporarily. Sorry for the inconvenience as you don't know Chinese. I just used numbers, English characters and Chinese characters to test print. It's proved that whatever characters are all cannot be saved. As you mentioned that this fix will be released on 3.9.0 or later version, isn't it ? Regards, Eason ________________________________ ???: Terry Reedy ????: 2020?7?23? 12:08 ???: Eason Zhang ; idle-dev at python.org ??: Re: [BUG]: Can not save anything on IDLE since v3.8.4!! On 7/22/2020 6:51 AM, Eason Zhang wrote: > Hello, > > I created a new py file that can be saved and run on IDLE v3.8.3. > I also created a new py file on IDLE v3.8.4 but it can NOT be saved! > Tried to edited an old version(e.g. v3.8.3) created py file on IDLE > v3.8.4 , it can be saved! That's so strange! > > It still cannot save on current latest version v3.8.5!! I tested this > function both on 32-bits and 64-bits and they are all CANNOT work!! In response to my response about missing 'import io' and the fix on 3.8.5/3.9.0b5, Eason privately sent me QUOTE""""""""""""""""""""""""""""""""""""""""""""" Video1 (No bug on v3.8.3): https://www.screencast.com/users/lonlon29/folders/Default/media/a0626e93-2c1c-4921-9560-955eb6111466 Video2(Bug was found on v3.8.5): https://www.screencast.com/t/xrbA7bQpRbuZ System environment: Windows 8.1 64-bits OS and Windows 7 64-bits OS. """"""""""""""""""""""""""""""""""""""""""""""" System has Chinese set as its language. Video2 shows existing C:/Users/Administrators/Documents/test.py containing Chinese characters being edited, saved, and run multiple times with 3.8.5. So he is not running into the 3.8.4 no non-ascii chars bug. In my response, I said Eason might be running into another issue. Videa2 continues with Windows 7/8.1 File Explorer > Create New > Text file* > name 385.py > right click > Edit with IDLE 3.8. (*I cannot read Chinese but recognize positions of clicks. 'Edit ...' is the English installed by the python Windows installer.) I did the same with 'Edit with IDLE 3.9' as for some reason my installation of 3.8 did not add 'Edit with IDLE 3.8'. I had the same no-save problem. When I tried editing the file from a command line with C:\Users\Terry>py -3.8 -m idlelib f:/python/a/385.py I got a traceback in Command Prompt ending with File "C:\Programs\Python38\lib\idlelib\iomenu.py", line 252, in fixnewlines text = text.replace("\n", self.eol_convention) TypeError: replace() argument 2 must be str, not None I suspect that this is only a Windows issue. Someone with *nix or Mac could check. An immediate fix is to change the condition on the previous line, iomenu.py, line 251. if self.eol_convention not in (None, '', "\n"): This or a better fix should be in the next release, likely 3.9.0rc1. A new file created with File => New can be saved as usual. -- Terry Jan Reedy -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjreedy at udel.edu Thu Jul 23 20:06:16 2020 From: tjreedy at udel.edu (Terry Reedy) Date: Thu, 23 Jul 2020 20:06:16 -0400 Subject: [Idle-dev] [BUG]: Can not save anything on IDLE since v3.8.4!! In-Reply-To: References: Message-ID: On 7/23/2020 6:53 AM, Eason Zhang wrote: > As you mentioned that this fix will be released on 3.9.0 or?later > version, isn't it ? 3.9.0rc1 (release candidate 1) is due August 10. The issue is https://bugs.python.org/issue41373. -- Terry Jan Reedy