[issue21880] IDLE: Ability to run 3rd party code checkers

Terry J. Reedy report at bugs.python.org
Tue Oct 9 16:25:27 EDT 2018


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Idlelib modules OutputWindow and configHandler are now outwin and config.

I discovered a non-checker .py file consumer.  Pygame Zero enables use of pygame to create games without boilerplate.
https://pygame-zero.readthedocs.io/en/stable/ide-mode.html
One can run a mygame.py file containing, for instance,

WIDTH = 800
HEIGHT = 600

def draw():
    screen.clear()
    screen.draw.circle((400, 300), 30, 'white')

from a command line with 'pgzrun mygame.py'.

In this case, one can instead run from an IDE by adding boilerplate lines 'import pgzrun' and 'pgzrun.go()' at top and bottom.  But there might be people (or instructors) who prefer, if possible, to enable pgzrun as a 3rd party .py file consumer with the 'checker' option.


One issue with configparser is that it does not read comments in a .cfg file and therefore overwrites them when overwriting a file.  We might add a multiline 'comment' option to each application section.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21880>
_______________________________________


More information about the Python-bugs-list mailing list