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 terry.reedy
Recipients terry.reedy
Date 2016-06-22.23:50:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466639410.98.0.125658419843.issue25588@psf.upfronthosting.co.za>
In-reply-to
Content
The premise of the issue is this: if IDLE is started with 'pythonx', then running 'filex' from a IDLE editor is equivalent to running "python x -i filex" at a command line.  For instance, loading test.__main__ into an editor and running should give the same result as 
f:/python/dev> 36\pcbuild\win32\python_d.exe -i 36\Lib\test.__main__

However, 
Traceback (most recent call last):
  File "F:\Python\dev\36\Lib\test\__main__.py", line 2, in <module>
    main()
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 508, in main
    Regrtest().main(tests=tests, **kwargs)
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 446, in main
    self._main(tests, kwargs)
  File "F:\Python\dev\36\lib\test\libregrtest\main.py", line 458, in _main
    setup_tests(self.ns)
  File "F:\Python\dev\36\lib\test\libregrtest\setup.py", line 18, in setup_tests
    faulthandler.enable(all_threads=True)
io.UnsupportedOperation: fileno

The pseudofile socket wrappers are not real files with a fileno.  I should take a better look as sys.stdout and _stdout (and stderr) when connected to a console,
History
Date User Action Args
2016-06-22 23:50:11terry.reedysetrecipients: + terry.reedy
2016-06-22 23:50:10terry.reedysetmessageid: <1466639410.98.0.125658419843.issue25588@psf.upfronthosting.co.za>
2016-06-22 23:50:10terry.reedylinkissue25588 messages
2016-06-22 23:50:10terry.reedycreate