Am 24.02.2012 08:57, schrieb Georg Brandl:
> Of course it's permitted; just like
>
> try:
> if True:
> while True:
> pass
>
> would also be permitted. That doesn't mean that you want to write (or
> see) code like that :)
>
thanks, Georg, that helps.
Think we agree the example given looks like bad coding style.
OTOH Python-mode is not designed to impose a certain style - beside the
indent range between 2-8 `py-guessed-sanity-check' already does.
If we prevent certain styles, we run into a mess at other places with
some probability.
Python-mode got some complexity already...
In the precise case: how could that happen?
Python-mode by themselves would not propose that final indent.
So it was inserted deliberately. Why?
Think before doing any change here, we should learn something about the
workflow.
Am 24.02.2012 08:57, schrieb Georg Brandl:
> Of course it's permitted; just like
>
> try:
> if True:
> while True:
> pass
>
> would also be permitted. That doesn't mean that you want to write (or
> see) code like that :)
>
thanks, Georg, that helps.
Think we agree the example given looks like bad coding style.
OTOH Python-mode is not designed to impose a certain style - beside the sanity- check' already does.
indent range between 2-8 `py-guessed-
If we prevent certain styles, we run into a mess at other places with
some probability.
Python-mode got some complexity already...
In the precise case: how could that happen?
Python-mode by themselves would not propose that final indent.
So it was inserted deliberately. Why?
Think before doing any change here, we should learn something about the
workflow.
Andreas