[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.
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
[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
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
[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_
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