Re: PythonTidy

2016-02-18 Thread cjcollier
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 1.10

2007-01-19 Thread Chuck Rhode
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 1.10

2007-01-18 Thread Chuck Rhode
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 1.9

2007-01-09 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-07 Thread Thomas Heller
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

Re: PythonTidy

2006-12-06 Thread Chuck Rhode
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

PythonTidy

2006-12-05 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-05 Thread Thomas Heller
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

Re: PythonTidy

2006-12-05 Thread rzed
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

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-05 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-02 Thread Chuck Rhode
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

Re: PythonTidy

2006-12-01 Thread Thomas Heller
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

Re: PythonTidy

2006-11-30 Thread Roberto Bonvallet
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

Re: PythonTidy

2006-11-30 Thread Laurent Pointal
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

Re: PythonTidy

2006-11-30 Thread Richie Hindle
[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

Re: PythonTidy

2006-11-30 Thread Roberto Bonvallet
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

Re: PythonTidy

2006-11-30 Thread Marc 'BlackJack' Rintsch
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

Re: PythonTidy

2006-11-30 Thread Laurent Pointal
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

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
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

Re: PythonTidy

2006-11-30 Thread Roberto Bonvallet
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

Re: PythonTidy

2006-11-30 Thread Thomas Heller
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

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
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

PythonTidy

2006-11-29 Thread Chuck Rhode
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