Re: how to comment lot of lines in python

2006-04-05 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Michael Sperlle wrote: > What's wrong with using three sets of double-quotes? One can't comment out code that contains multiline strings. Especially nested comment out does not work. > I do it with kwrite and it works like a charm. Why not Ctrl+D (comment) and Ctrl+Shif

Re: how to comment lot of lines in python

2006-04-04 Thread Michael Sperlle
What's wrong with using three sets of double-quotes? I do it with kwrite and it works like a charm. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to comment lot of lines in python

2006-04-04 Thread jussij
> You should use a decent editor that could automatically > comment/uncomment code upon your request. The Zeus for Windows IDE has just such a feature: http://www.zeusedit.com/python.html To do this in Zeus you basically mark the lines of text that need commenting then use the Macros, Add Com

Re: how to comment lot of lines in python

2006-04-04 Thread Kent Johnson
Rick Zantow wrote: >> Thank you! I don't suppose you have any tricks to make it work with >> UTF-8 data outside the cp1252 character set, do you? >> > > Sadly, I don't. TP claims Unicode support, but I'm not sure what they > mean; it does seem to be restricted to cp1252. TP will correctly read

Re: how to comment lot of lines in python

2006-04-04 Thread Rick Zantow
Kent Johnson <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Rick Zantow wrote: >> Kent Johnson <[EMAIL PROTECTED]> wrote in news:44310867$1_1 >> @newspeer2.tds.net: >> >>> Sion Arrowsmith wrote: Out of curiousity, is there a modern editor which *doesn't* allow you to comment/un

Re: how to comment lot of lines in python

2006-04-03 Thread Kent Johnson
Rick Zantow wrote: > Kent Johnson <[EMAIL PROTECTED]> wrote in news:44310867$1_1 > @newspeer2.tds.net: > >> Sion Arrowsmith wrote: >>> Out of curiousity, is there a modern editor which *doesn't* allow you >>> to comment/uncomment a selected bunch of lines of code? >>> >> TextPad is my editor of ch

Re: how to comment lot of lines in python

2006-04-03 Thread Frank Millman
Kent Johnson wrote: > Sion Arrowsmith wrote: > > Eric Deveaud <[EMAIL PROTECTED]> wrote: > >> some moderns editors allow you to comment/uncomment a selected Bunch > >> of lines of code > > > > Out of curiousity, is there a modern editor which *doesn't* allow you > > to comment/uncomment a select

Re: how to comment lot of lines in python

2006-04-03 Thread Rick Zantow
Kent Johnson <[EMAIL PROTECTED]> wrote in news:44310867$1_1 @newspeer2.tds.net: > Sion Arrowsmith wrote: >> Eric Deveaud <[EMAIL PROTECTED]> wrote: >>> some moderns editors allow you to comment/uncomment a selected Bunch >>> of lines of code >> >> Out of curiousity, is there a modern editor wh

Re: how to comment lot of lines in python

2006-04-03 Thread Kent Johnson
Sion Arrowsmith wrote: > Eric Deveaud <[EMAIL PROTECTED]> wrote: >> some moderns editors allow you to comment/uncomment a selected Bunch >> of lines of code > > Out of curiousity, is there a modern editor which *doesn't* allow you > to comment/uncomment a selected bunch of lines of code? > Tex

Re: how to comment lot of lines in python

2006-04-03 Thread Sion Arrowsmith
Eric Deveaud <[EMAIL PROTECTED]> wrote: >some moderns editors allow you to comment/uncomment a selected Bunch >of lines of code Out of curiousity, is there a modern editor which *doesn't* allow you to comment/uncomment a selected bunch of lines of code? -- \S -- [EMAIL PROTECTED] -- http://ww

Re: how to comment lot of lines in python

2006-03-31 Thread gene tani
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > scite has a feature where you modify your delimiter in block comments, i.e. what comes after "#" http://scintilla.sourceforge.net/SciTEDoc.html -- http://mail.python.org/mailman/listinfo/python-list

Re: how to comment lot of lines in python

2006-03-31 Thread Dave Mandelin
I often use if 0: bunch of lines of code That way, it's very easy to reenable the code, or to add an else, etc. I can even put things like 'if 0 and USE_FOO_FEATURE' to document what is being commented out. It's much more flexible than commenting out. -- Want to play tabletop RPGs over the i

Re: how to comment lot of lines in python

2006-03-31 Thread Michael Hobbs
Eric Deveaud wrote: > [EMAIL PROTECTED] wrote: > >> Eric Deveaud wrote: >> >>> [EMAIL PROTECTED] wrote: >>> Like in C we comment like /* Bunch of lines of code */ Should we use docstring """ """ >>> I would say NO. docstring are disp

Re: how to comment lot of lines in python

2006-03-31 Thread Eric Deveaud
[EMAIL PROTECTED] wrote: > > Eric Deveaud wrote: > > [EMAIL PROTECTED] wrote: > > > Like in C we comment like > > > /* > > > Bunch of lines of code > > > */ > > > > > > Should we use docstring """ """ > > > > I would say NO. docstring are displayed by pydoc, thus a pydoc on your > > code wi

Re: how to comment lot of lines in python

2006-03-31 Thread olsongt
Eric Deveaud wrote: > [EMAIL PROTECTED] wrote: > > Like in C we comment like > > /* > > Bunch of lines of code > > */ > > > > Should we use docstring """ """ > > I would say NO. > docstring are displayed by pydoc, thus a pydoc on your code will display some > inconsistent information ;-) > d

Re: how to comment lot of lines in python

2006-03-31 Thread Eric Deveaud
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ I would say NO. docstring are displayed by pydoc, thus a pydoc on your code will display some inconsistent information ;-) > Or there is something else too ?? some m

Re: how to comment lot of lines in python

2006-03-30 Thread Laurent Rahuel
[EMAIL PROTECTED] wrote: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ > > Or there is something else too ?? > > Every help is appreciated. > > Thanks Hi, Maybe this sounds simplier than regexp and so, just use the """ marker like this : "

Re: how to comment lot of lines in python

2006-03-30 Thread Tim Chase
>>Or there is something else too ?? > > You should use a decent editor that could automatically > comment/uncomment code upon your request. In Vim, you can map a key to do the following: :s/^/# to comment the highlighted lines, and :s/^# to uncomment them. To map them, you c

Re: how to comment lot of lines in python

2006-03-30 Thread Felipe Almeida Lessa
Em Qui, 2006-03-30 às 15:21 -0800, [EMAIL PROTECTED] escreveu: > Like in C we comment like > /* > Bunch of lines of code > */ > > Should we use docstring """ """ > > Or there is something else too ?? You should use a decent editor that could automatically comment/uncomment code upon your request

how to comment lot of lines in python

2006-03-30 Thread diffuser78
Like in C we comment like /* Bunch of lines of code */ Should we use docstring """ """ Or there is something else too ?? Every help is appreciated. Thanks -- http://mail.python.org/mailman/listinfo/python-list