at the moment are how the comments are
> > formatted (dunno if that can be customized or changed easily), and
> > it would be good if the script took command line args instead of
> > working as a filter only.
>
> Thank you for trying PythonTidy.
>
> o Command-line args
PythonTidy cleans up, regularizes, and reformats the text of Python
scripts.
It is released under the GNU General Public License.
Python scripts are usually so good looking that no beautification is
required. However, from time to time, it may be necessary to alter
the style to conform
PythonTidy cleans up, regularizes, and reformats the text of Python
scripts.
It is released under the GNU General Public License.
Python scripts are usually so good looking that no beautification is
required. However, from time to time, it may be necessary to alter
the style to conform
PythonTidy cleans up, regularizes, and reformats the text of Python
scripts.
It is released under the GNU General Public License. This is the
first public release.
Python scripts are usually so good looking that no beautification is
required. However, from time to time, it may be necessary
Chuck Rhode schrieb:
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My
reply is below.
There is still one major issue. pythonTidy uses open(input-file,
rb) to open the Python module to tidy up. That does not work on
Windows, at least if the file has (as it should) \r
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My
reply is below.
There is still one major issue. pythonTidy uses open(input-file,
rb) to open the Python module to tidy up. That does not work on
Windows, at least if the file has (as it should) \r\n newlines.
Thank you
That went well. PythonTidy has been looked at at least 10**2 times,
and I have received a couple of complaints, which I hope I have
addressed satisfactorily -- plenty good enough for a beta test. The
basic concept stands.
PythonTidy.py cleans up, regularizes, and reformats the text of
Python
Chuck Rhode schrieb:
That went well. PythonTidy has been looked at at least 10**2 times,
and I have received a couple of complaints, which I hope I have
addressed satisfactorily -- plenty good enough for a beta test. The
basic concept stands.
Sure.
There is still one major issue
Chuck Rhode [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
That went well. PythonTidy has been looked at at least 10**2
times, and I have received a couple of complaints, which I hope
I have addressed satisfactorily -- plenty good enough for a beta
test. The basic concept stands
rzed wrote this on Tue, Dec 05, 2006 at 08:19:28PM -0500. My reply is
below.
I ran PythonTidy on a wxPython sample, and found that wx.CONSTANTS
were being translated to wx.Constants, which won't do at all.
Find the first line in the PythonTidy code where the following global
variables
Thomas Heller wrote this on Tue, Dec 05, 2006 at 07:06:30PM +0100. My
reply is below.
I suggest you open the file with open(input-file, rU).
This doesn't work so pretty good while reading from sys.stdin, so I'm
still at the drawing board.
--
.. Chuck Rhode, Sheboygan, WI, USA
.. 1979 Honda
Thomas Heller wrote this on Fri, Dec 01, 2006 at 10:12:38PM +0100. My reply is
below.
Here is part of a diff before and after running PythonTidy on it:
start
-def comptr_setitem(self, index, value):
-# We override the __setitem__ method of the
-# POINTER
mymodule.py' to tidy up the mymodule.py file.
I've uploaded a new version of PythonTidy:
o http://www.lacusveris.com/PythonTidy/PythonTidy-1.4.python
It fixes several problems. Also it allows file names as arguments.
Here is part of a diff before and after running PythonTidy on it:
start
line args instead of
working as a filter only.
Thank you for trying PythonTidy.
o Command-line args: Please give an example of a standard command that
I might emulate w.r.t. standard argument use.
Well, at least it would be nice if I could call
'PythonTidy.py mymodule.py' to tidy up
Chuck Rhode wrote:
I couldn't find a routine to clean up, regularize, and reformat Python
code, so I wrote one:
http://www.lacusveris.com/PythonTidy/PythonTidy.python
Now, I'm looking for beta-testers. Compensation is a bit on the low
side. In fact it's limited to the satisfaction
Roberto Bonvallet a écrit :
Chuck Rhode wrote:
I couldn't find a routine to clean up, regularize, and reformat Python
code, so I wrote one:
http://www.lacusveris.com/PythonTidy/PythonTidy.python
Now, I'm looking for beta-testers. Compensation is a bit on the low
side. In fact it's
[Roberto]
# vim: set fileencoding=utf-8 :
...
# -*- coding: utf-8 -*-
...
About changing the encoding declaration from vim-style to emacs-style:
I'll take it as an insult :)
[Laurent]
This is not emacs-style, this is Python normalized source encoding
directive for correct interpretation
Laurent Pointal wrote:
...
# vim: set fileencoding=utf-8 :
...
# -*- coding: utf-8 -*-
...
This is not emacs-style, this is Python normalized source encoding
directive for correct interpretation of u... strings by Python
interpreter.
See http://www.python.org/dev/peps/pep-0263/
The
In [EMAIL PROTECTED], Laurent Pointal wrote:
Roberto Bonvallet a écrit :
# vim: set fileencoding=utf-8 :
...
# -*- coding: utf-8 -*-
...
About changing the shebang line: I'll take it as a bug.
About changing the encoding declaration from vim-style to emacs-style:
I'll take it as an
Laurent Pointal a écrit :
See http://www.python.org/dev/peps/pep-0263/
Aye, sorry for my missreading...
[seem I hurt the emacs guy]
--
http://mail.python.org/mailman/listinfo/python-list
of the /usr/bin/env technique and
the controversy surrounding it.
Thanks, too, for trying *PythonTidy*.
As you have no doubt perceived, *PythonTidy* is *not* table driven.
It is a script after all. I decided before writing it that I didn't
really need to externalize all the options; nevertheless
Chuck Rhode wrote:
[...]
Thanks, too, for trying *PythonTidy*.
No, thanks you for writing such a tool!
[...] nevertheless, most [options] are declared near the beginning where
they sit just begging for end-user involvement. See: CODING_SPEC and
SHEBANG.
The fact that I immediately noticed
Chuck Rhode schrieb:
I couldn't find a routine to clean up, regularize, and reformat Python
code, so I wrote one:
http://www.lacusveris.com/PythonTidy/PythonTidy.python
Now, I'm looking for beta-testers. Compensation is a bit on the low
side. In fact it's limited to the satisfaction
of
working as a filter only.
Thank you for trying PythonTidy.
o Command-line args: Please give an example of a standard command that
I might emulate w.r.t. standard argument use.
o Comments: Input is parsed twice: I use *tokenize.generate_tokens* to
extract the comments and *compiler.parse* to generate
I couldn't find a routine to clean up, regularize, and reformat Python
code, so I wrote one:
http://www.lacusveris.com/PythonTidy/PythonTidy.python
Now, I'm looking for beta-testers. Compensation is a bit on the low
side. In fact it's limited to the satisfaction of helping out.
Thanks
25 matches
Mail list logo