Re: PythonTidy

2016-02-18 Thread cjcollier
at http://perltidy.sourceforge.net On Thursday, November 30, 2006 at 6:52:40 PM UTC-8, Chuck Rhode wrote: > Thomas Heller wrote this on Thu, Nov 30, 2006 at 09:50:25PM +0100. My > reply is below. > > > The two things that bother me at the moment are how the comments are > &g

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 to

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 >> Win

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 shou

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-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 va

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 ba

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

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-02 Thread Chuck Rhode
ce if I could call > 'PythonTidy.py 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 be

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: > > > -def comptr_setitem(self, index, value): > -# We override the __setitem__ method of the > -

Re: PythonTidy

2006-12-01 Thread Thomas Heller
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: Please give an example of a standard command that > I might emulate w.r.t. standard argument use. Well, at least it would be nic

Re: PythonTidy

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

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 > sid

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

Re: PythonTidy

2006-11-30 Thread Chuck Rhode
ks for the link. I was unaware 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 nee

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 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

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/

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 interp

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-tester

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 > sid

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 help