This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryk sun
Recipients eryk sun, frostyelsa, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2016-12-19.18:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482172365.4.0.370819350011.issue29014@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like you've accidentally created and selected an auto-generated association between .py and python.exe. You should be able to restore the original file association to get the "Edit with IDLE" menu back. In Windows 10 the "open with" menu has an option to "choose another app". In the dialog select "always use this app to open .py files". Or go to the control panel's "default programs" app, and choose "associate a file type" and double click on ".py" in the list. Either way, select the "Python" entry with a rocket on the icon. Hopefully this selects the "Python.File" ProgId that was configured by Python's installer.

What we're trying to do here is modify the contents of the registry key "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice". Python's installer doesn't have anything to do with this key. It's based on what the user selects in Explorer, and it's intentionally difficult for code to directly modify this key. It's protected by an access control entry that denies the user (i.e. programs running as the user) the right to modify the key directly, plus a hash of the user's selection. But one thing you can still do is to delete the key, which will restore the default user and system file association.
History
Date User Action Args
2016-12-19 18:32:45eryk sunsetrecipients: + eryk sun, terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower, frostyelsa
2016-12-19 18:32:45eryk sunsetmessageid: <1482172365.4.0.370819350011.issue29014@psf.upfronthosting.co.za>
2016-12-19 18:32:45eryk sunlinkissue29014 messages
2016-12-19 18:32:45eryk suncreate