On 07/17/2012 01:58 PM, Terry Reedy wrote:
On 7/17/2012 11:18 AM, Monte Milanuk wrote:
Just a thought... since pep8 is supposed to be *the* standard for
python coding,
and IDLE is the default 'IDE' included for beginning use... would it
not make a
certain amount of sense to integrate pep8 into IDLE so as to
encourage new users
to code to the standard...
If you mean 'enforce' pep8, that is out of the question. If you mean
'run a style checker' (as a new option of the run submene*) , I
suspect there may already be an idle extension for that. If and when
we get idle somewhat properly documented, that would include doc of
the extension mechanism and perhaps suggestions of some good ones. Or
we might include more that we do now.
I'm unaware of a publicly available PEP-8 style check extension for IDLE.
There is a checker available on pypi:(http://pypi.python.org/pypi/pep8).
All IDLE extension in the standard distribution only call into the
standard library. An extension which relies on pep8.py would likely need
to be distributed separately.
If you are looking to write an extension, check out the IdleX project.
The Horizontal.py extension is designed as an example for writing IDLE
extensions.
* I had to look on the help page to fine that 'check module' means
'check syntax'. Anyone disagree that the latter is clearer?
The menu has several slightly unclear items. I agree that "check syntax"
is clearer than "check module".
- Roger
_______________________________________________
IDLE-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/idle-dev