osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I'd like to use "semantic indentation"


ram at zedat.fu-berlin.de (Stefan Ram) writes:
>   I would like to write source code similar to:
> country( 'USA' )
>   state( 'Alabama' ) ...

> It seems I can't do this with Python.  Is there any workaround?

  _= country( 'USA' )
  _=   state( 'Alabama' )
  _=     town( 'Abbeville' )
  _=     town( 'Addison' )
  _=   state( 'Arizona' )
  _=     town( 'Apache Junction' )
  _=     town( 'Avondale )
  _=     town( 'Benson' )