Re: Strip white spaces from source

2005-05-10 Thread William Park
[EMAIL PROTECTED] wrote: > Hi all, > I need to limit as much as possible the lenght of a source line, > stripping white spaces (except indentation). > For example: > . . max_move and AC_RowStack.acceptsCards ( self, from_stack, cards > ) > must be reduced to: > . . max_move and AC_RowStack.

Re: Strip white spaces from source

2005-05-10 Thread qwweeeit
Hi Richie, I did not post my solution because I did not want to "pollute" the pythonic way of programming. Young programmers, don't follow me! I hate (because I am not able to use them...) classes and regular expressions. Instead I like lists, try/except (to limit or better eliminate debugging) and

Re: Strip white spaces from source

2005-05-10 Thread Richie Hindle
[qwweeeit] > If someone is interested (I think nobody...) I can give my solution. I'd be interested to see it, certainly. It's always a good idea to post your solution, if only for future reference. It's frustrating to do a Google Groups search for a problem and find that someone else has solved

Re: Strip white spaces from source

2005-05-09 Thread qwweeeit
Hi Richie, thank you for your answer. Your solution is interesting but does not take into account some white spaces (like those after the commas, before or after mathematical operands etc...). Besides that I'm a almost a newbie in Python, and I have the very old programmers' habits (I don't use cla

Re: Strip white spaces from source

2005-05-09 Thread Richie Hindle
[qwweeeit] > I need to limit as much as possible the lenght of a source line, > stripping white spaces (except indentation). > For example: > . . max_move and AC_RowStack.acceptsCards ( self, from_stack, cards > ) > must be reduced to: > . . max_move and AC_RowStack.acceptsCards(self,from_

Strip white spaces from source

2005-05-08 Thread qwweeeit
Hi all, I need to limit as much as possible the lenght of a source line, stripping white spaces (except indentation). For example: . . max_move and AC_RowStack.acceptsCards ( self, from_stack, cards ) must be reduced to: . . max_move and AC_RowStack.acceptsCards(self,from_stack,cards) My s