2 new comment-like characters in Python to aid development?

Paddy paddy3118 at googlemail.com
Sun Mar 11 04:44:59 EDT 2007


On Mar 9, 10:30 am, Nick Craig-Wood <n... at craig-wood.com> wrote:
> dbhbar... at googlemail.com <dbhbar... at googlemail.com> wrote:
> >  What if 2 new 'special' comment-like characters were added to Python?:
>
> >  1. The WIP (Work In Progress) comment:
>
> I use # FIXME for this purpose or /* FIXME */ in C etc.
>
> I have an emacs macro which shows it up in bright red / yellow text so
> it is easy to see and the company has a system which makes a web page
> with a list of all the FIXMEs on.
>
> FIXME is easy to grep for, language neutral and a lot of people use
> something similar (eg XXX or TODO).
>
> >  2. The HALT comment:
>
> You can so this with triple quotes.  ''' and ''' (if you normally use
> """ """ for docstrings)
>
> Python just ignores strings that lie around.
>
> --
> Nick Craig-Wood <n... at craig-wood.com> --http://www.craig-wood.com/nick

Vim will highlight the following comments too:
  #FIXME
  #TODO
  #XXX

- Paddy




More information about the Python-list mailing list