[OT] Python indentation
Dan Bishop
danb_83 at yahoo.com
Thu Jul 8 15:09:18 EDT 2004
bruno modulix <onurb at xiludom.gro> wrote in message news:<40ec6036$0$21700$626a14ce at news.free.fr>...
> Tor Iver Wilhelmsen a écrit :
> > "Sateesh" <ext-sateesh.kavuri at nokia.com> writes:
> >
> >
> >>Why can't the indentation not so strict so as to give better freedom to the
> >>user?
> >
> >
> > It's a core syntactical feature of the language. Your request is like
> > asking, say, a C family language to adopt BEGIN and END instead of
> > those weird braces, because you're used to it from Pascal.
>
> Quite easy :
> #define BEGIN {
> #define END }
Yeah, but Pascal is case-insensitive, so you have to write:
#define begin {
#define Begin {
#define bEgin {
#define BEgin {
#define beGin {
#define BeGin {
// etc.
:-)
More information about the Python-list
mailing list