Loading ...
Sorry, an error occurred while loading the content.

RE: [jasspa] Python Indentation

Expand Messages
  • Phillips, Steven
    Unfortunately not - python uses the indentation to indicate the programmers intent, i.e. if you change the indentation of a line it can effect the program. The
    Message 1 of 3 , Dec 8, 2005
    • 0 Attachment
      Unfortunately not - python uses the indentation to indicate the
      programmers intent, i.e. if you change the indentation of a line it can
      effect the program. The indentation must therefore be determined but the
      programmer and not messed with by ME,

      Steve

      > -----Original Message-----
      > From: jasspa@yahoogroups.com [mailto:jasspa@yahoogroups.com] On Behalf
      Of
      > cp200205
      > Sent: Friday, December 09, 2005 1:14 AM
      > To: jasspa@yahoogroups.com
      > Subject: [jasspa] Python Indentation
      >
      > Can the MicroEmacs indentation engine support a language such as
      Python?
      >
      >
      >
      >
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      >
      ________________________________________________________________________
      __
      >
      > This is an unmoderated list. JASSPA is not responsible for the content
      of
      > any material posted to this list.
      >
      > To unsubscribe, send a mail message to
      >
      > mailto:jasspa-unsubscribe@yahoogroups.com
      >
      > or visit http://groups.yahoo.com/group/jasspa and
      > modify your account settings manually.
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
    • Jeremy Cowgar
      ... That s correct, however the system could do some smart indentation, for instance: if 1 == 1:[ENTER] [TAB]print 1 is actually 1 The system could figure
      Message 2 of 3 , Dec 9, 2005
      • 0 Attachment
        On Friday 09 December 2005 02:57, Phillips, Steven wrote:
        > Unfortunately not - python uses the indentation to indicate the
        > programmers intent, i.e. if you change the indentation of a line it can
        > effect the program. The indentation must therefore be determined but the
        > programmer and not messed with by ME,

        That's correct, however the system could do some smart indentation, for
        instance:

        if 1 == 1:[ENTER]
        [TAB]print "1 is actually 1"

        The system could figure that out, along with def myFunction():, while xxx:,
        for yyy:, etc... Also, it could figure out unindents like:

        if 1 == 1:[ENTER]
        [TAB]return 10
        [UNINDENT]

        Jeremy
      Your message has been successfully submitted and would be delivered to recipients shortly.