[Python-Dev] Issue: 92359 - Python 3.10 IDLE 64-bit doesn't open any files names code (code.py, code.pyw) - found a partial fix but looking for input

2022-05-13 Thread ward . davidj
Hello,
   Link to the github issue page is here 
https://github.com/python/cpython/issues/92359

   This bug has been lurking in waiting for roughly 7 years or possibly longer. 
 The root issue is that the "Edit with IDLE" context menu executes idle with 
`python.exe -m idlelib` which puts the current working directory in sys.path 
but inside idlelib it has a `from code import ...` statement.A kind of ugly 
hack is sitting in my fork of cpython here 
https://github.com/devdave/cpython/blob/issue_92359/Lib/idlelib/__main__.py .  
All I did was put the Lib directory at the front of sys.path.
Perhaps this is the best solution?  I don't know.

   Would appreciate any ideas for an alternative fix (ex perhaps changing how 
"Edit with IDLE" works?) or like I said, perhaps my fix is the best option 
because of how simple it is?

Thanks, 
   DevDave
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/NKMXPIQPISOPOV6OGASKXV4DEDZUH355/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Advice/proceedures for setting up cPython on WSL with cLion

2022-05-27 Thread ward . davidj
Hello,
 I can build cPython with PCbuild/build.bat and also in WSL/Debian `make` 
works fine but if I try to use the WSL toolchain/build configuration I get 
`g++: fatal error: no input files`.   Clion is better geared for cmake projects 
and there is the 
`https://github.com/python-cmake-buildsystem/python-cmake-buildsystem` project. 
  

Has anyone made a tutorial/recipe for getting cLion and cpython to play 
nice?

If I can't get cLion to work directly with cpython, I am curious what other 
Window's centric people use:  Visual Studio or just the PCbuild.bat script?

Thanks,
DevDave/David
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/COAZZQ2YFOKOP2LQE6MBRTSXPNRTYKXJ/
Code of Conduct: http://python.org/psf/codeofconduct/