Re: goto

2005-07-18 Thread Dan Bishop
rbt wrote: > On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: > > Hayri ERDENER wrote: > > > what is the equivalent of C languages' goto statement in python? > > > > Download the goto module: > > http://www.entrian.com/goto/ > > And y

Re: goto

2005-07-18 Thread Steven Bethard
Hayri ERDENER wrote: > what is the equivalent of C languages' goto statement in python? Download the goto module: http://www.entrian.com/goto/ And you can use goto to your heart's content. And to the horror of all your friends/coworkers. ;) STeVe -- http://mail.pytho

Re: goto

2005-07-18 Thread rbt
On Mon, 2005-07-18 at 12:27 -0600, Steven Bethard wrote: > Hayri ERDENER wrote: > > what is the equivalent of C languages' goto statement in python? > > Download the goto module: > http://www.entrian.com/goto/ > And you can use goto to your heart's content. A

Re: goto

2005-07-18 Thread Gerhard Haering
On Mon, Jul 18, 2005 at 08:40:16AM -0700, Kay Schluehr wrote: > Hayri ERDENER schrieb: > > hi, > > what is the equivalent of C languages' goto statement in python? > > best regards > > No, but some of goto's use cases can be covered by unconditional jumps &g

Re: goto

2005-07-18 Thread Kay Schluehr
Hayri ERDENER schrieb: > hi, > what is the equivalent of C languages' goto statement in python? > best regards No, but some of goto's use cases can be covered by unconditional jumps provided by exceptions. Here is a C function using goto: void main() { int i, j;

Re: goto

2005-07-18 Thread Mage
[EMAIL PROTECTED] wrote: >>>> what is the equivalent of C languages' goto statement in python? > >>> You really shouldn't use goto. >>> Fortunately you can't. > >Steven> Of course you can :-) > >Steven&g

Re: goto

2005-07-18 Thread Peter Hansen
Hayri ERDENER wrote: > what is the equivalent of C languages' goto statement in python? Steven offered the best reply here, in that he wondered what you actually need this for. What usage of "goto" in C are you hoping to emulate? It's a certainty that some other non

Re: goto

2005-07-18 Thread Comcast
In python there is no goto statement. In C I use goto only in one case: to exit more then one level of blocks (as a matter of fact, I always use goto EXIT in C, where EXIT is the label of the end of the function). In python you can mimic this by throwing an exception and catching it. Exception

Re: goto

2005-07-18 Thread skip
>>> what is the equivalent of C languages' goto statement in python? >> You really shouldn't use goto. >> Fortunately you can't. Steven> Of course you can :-) Steven> You can write your own Python interpreter, in Python, and a

Re: goto

2005-07-18 Thread John Roth
"Mage" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hayri ERDENER wrote: > >>hi, >>what is the equivalent of C languages' goto statement in python? >>best regards >> >> > You really shouldn't use goto. True.

Re: goto

2005-07-18 Thread Steven D'Aprano
On Mon, 18 Jul 2005 14:06:14 +0200, Mage wrote: > Hayri ERDENER wrote: > >>hi, >>what is the equivalent of C languages' goto statement in python? >>best regards >> >> > You really shouldn't use goto. > > Fortunately you can't. Of c

Re: goto

2005-07-18 Thread Simon Brunning
On 7/18/05, Hayri ERDENER <[EMAIL PROTECTED]> wrote: > hi, > what is the equivalent of C languages' goto statement in python? > best regards http://groups-beta.google.com/group/comp.lang.python/browse_thread/thread/832906c6122dc137 Let's not go through *that* agai

Re: goto

2005-07-18 Thread Mage
Hayri ERDENER wrote: >hi, >what is the equivalent of C languages' goto statement in python? >best regards > > You really shouldn't use goto. Fortunately you can't. Mage -- http://mail.python.org/mailman/listinfo/python-list

goto

2005-07-18 Thread Hayri ERDENER
hi, what is the equivalent of C languages' goto statement in python? best regards -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-28 Thread Mikhail 'Xen' Kashkin
If you use ssh, then you must to learn 'scp'. Or buy books about programming ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-26 Thread jfouhy
statement 3 _pc = 17 # GOTO 17 elif pc == 4: # statement 4 _pc = _pc + 1 ... else: # Fallen off the end of our program. break -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-26 Thread jfouhy
Maxim Kasimov wrote: > > Maxim Kasimov <[EMAIL PROTECTED]> writes: > >>WOW, just greate! ... but i'd like to relax at some more > >>interesting way than to comment each of rows > but what if i just can't to do this becouse i'm working thrue ssh, and have to > use only installed editors (such as vi)

Re: goto statement

2005-04-22 Thread Peter Hansen
Grant Edwards wrote: Sure, but what about the case where his program is on paper tape and all he has for an editor is an ice pick? Paper tape? Luxury -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-22 Thread Grant Edwards
On 2005-04-22, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >>>> Sure, but what about the case where his program is on paper >>>> tape and all he has for an editor is an ice pick? >>> >>> Then inserting goto doesn't seem to be an acceptable

Re: goto statement

2005-04-22 Thread Reinhold Birkenfeld
;> > - enter :'a,.s/^/###/ (insert 3 comment chars at begin of line, >>> >starting from line marked as 'a' to current line) >>> >>> Sure, but what about the case where his program is on paper >>> tape and all he has for an editor is an ic

Re: goto statement

2005-04-22 Thread Reinhold Birkenfeld
Grant Edwards wrote: > On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: > >>>>>> Well, I'm writing for embedded realtime systems in C/C++ and >>>>>> have never encountered a single need to use goto. >>>>> >>>>

Re: goto statement

2005-04-21 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-04-21, Roy Smith <[EMAIL PROTECTED]> wrote: >> Grant Edwards <[EMAIL PROTECTED]> wrote: >>>Sure, but what about the case where his program is on paper >>>tape and all he has for an editor is an ice pick? >> >> Can't you emulate that in emacs wit

Re: goto statement

2005-04-21 Thread John Roth
"praba kar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Dear All, In Python what is equivalent to goto statement Sheesh! It took 20 days for this to get to my mail server! John Roth regards, praba -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Ron
Grant Edwards wrote: On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: Well, I'm writing for embedded realtime systems in C/C++ and have never encountered a single need to use goto. I have encountered situations in C programs where the best thing to use was a goto. Those situ

Re: goto statement

2005-04-21 Thread Ivan Van Laningham
Hi All-- Fredrik Lundh wrote: > > Maxim Kasimov wrote: > > > how do use this here: > > are you still claiming you're not a troll? > > *plonk* > Oh, I don't think he's a troll, but his license to use Python should be revoked. I think RPG would be a good language for him, don't you? Metta, I

Re: goto statement

2005-04-21 Thread Grant Edwards
in of line, >> >starting from line marked as 'a' to current line) >> >> Sure, but what about the case where his program is on paper >> tape and all he has for an editor is an ice pick? > > Then inserting goto doesn't seem to be an acceptabl

Re: goto statement

2005-04-21 Thread Grant Edwards
On 2005-04-21, Roy Smith <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> wrote: >>Sure, but what about the case where his program is on paper >>tape and all he has for an editor is an ice pick? > > Can't you emulate that in emacs with M-X inclusive-or-overwrite-mode? Heck, emacs pr

Re: goto statement

2005-04-21 Thread R. C. James Harlow
On Thursday 21 April 2005 17:42, Maxim Kasimov wrote: > > Have you tried the triple quote comment technique? > how do use this here: Simple. > sql = ''' > some long query > ''' Change this to: sql = """ some long query """ since you shouldn't be using multiple quoting styles in one module, an

Re: goto statement

2005-04-21 Thread Mage
Maxim Kasimov wrote: > > how do use this here: > > print "hello world" There are cases when you can't do it in any language. php: /* this is a debug comment function1(); function2(); /* this is a normal multiline comment block it ends here */ function3(); */ end of debug comment

Re: goto statement

2005-04-21 Thread Fredrik Lundh
Maxim Kasimov wrote: how do use this here: are you still claiming you're not a troll? *plonk* -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Maxim Kasimov
dbye world" This means that you have only two locations to remove the blocked out code. This is identical to having to remove the goto statement and the marker. Hope that helps. how do use this here: print "hello world" ... ... ... sql = ''' some long query ''

Re: goto statement

2005-04-21 Thread pythonUser_07
s means that you have only two locations to remove the blocked out code. This is identical to having to remove the goto statement and the marker. Hope that helps. -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Sergei Organov
ut what about the case where his program is on paper > tape and all he has for an editor is an ice pick? Then inserting goto doesn't seem to be an acceptable option either ;) -- Sergei. -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Roy Smith
Grant Edwards <[EMAIL PROTECTED]> wrote: >Sure, but what about the case where his program is on paper >tape and all he has for an editor is an ice pick? Can't you emulate that in emacs with M-X inclusive-or-overwrite-mode? -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Grant Edwards
On 2005-04-21, Peter Maas <[EMAIL PROTECTED]> wrote: > Maxim Kasimov schrieb: >> but what if i just can't to do this becouse i'm working thrue ssh, and >> have to use only installed editors (such as vi) > > - at first line of block enter: ma (mark line as 'a') > - go to last line of block > - ente

Re: goto statement

2005-04-21 Thread Grant Edwards
On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: >>>>> Well, I'm writing for embedded realtime systems in C/C++ and >>>>> have never encountered a single need to use goto. >>>> >>>> I have encountered situations in C progra

Re: goto statement

2005-04-21 Thread Peter Maas
Maxim Kasimov schrieb: but what if i just can't to do this becouse i'm working thrue ssh, and have to use only installed editors (such as vi) - at first line of block enter: ma (mark line as 'a') - go to last line of block - enter :'a,.s/^/###/ (insert 3 comment chars at begin of line, starting

Re: goto statement

2005-04-21 Thread Sergei Organov
gt; > Well, I'm writing for embedded realtime systems in C/C++ and > >> > have never encountered a single need to use goto. > >> > >> I have encountered situations in C programs where the best > >> thing to use was a goto. Those situations have always been &g

Re: goto statement

2005-04-21 Thread Grant Edwards
On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: > Grant Edwards <[EMAIL PROTECTED]> writes: > >> On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: >> >> > Well, I'm writing for embedded realtime systems in C/C++ and >> >

Re: goto statement

2005-04-21 Thread Sergei Organov
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: > > > Well, I'm writing for embedded realtime systems in C/C++ and > > have never encountered a single need to use goto. > > I have encountered situation

Re: goto statement

2005-04-21 Thread Sergei Organov
gt;but it will be easier than to use """ or ''', or using features of > >>text-editors, when it is necessary to comment piece of code which already > >>contains ''' or/and """ strings already, or there is another #-comments.

Re: goto statement

2005-04-21 Thread Mage
Michael Soulier wrote: >On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: > > >>but what if i just can't to do this becouse i'm working thrue ssh, and have >>to use >>only installed editors (such as vi) >> >> > >Then learn to use vi. > >:.,+10s/^/# >" comment the next 10 lines > > Or

Re: goto statement

2005-04-21 Thread John Bokma
Reinhold Birkenfeld wrote: > John Bokma wrote: >> Mage wrote: >> >>> praba kar wrote: >>> >>>>Dear All, >>>> >>>> In Python what is equivalent to goto statement >>>> >>>> >>>> >>

Re: goto statement

2005-04-21 Thread John Bokma
Do Re Mi chel La Si Do wrote: > +1 I am modded up :-D -- John MexIT: http://johnbokma.com/mexit/ personal page: http://johnbokma.com/ Experienced programmer available: http://castleamber.com/ Happy Customers:

Re: goto statement

2005-04-21 Thread Michael Soulier
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: > > but what if i just can't to do this becouse i'm working thrue ssh, and have > to use > only installed editors (such as vi) Then learn to use vi. :.,+10s/^/# " comment the next 10 lines Mike -- Michael P. Soulier <[EMAIL PROTECTED]> h

Re: goto statement

2005-04-21 Thread Grant Edwards
On 2005-04-21, Sergei Organov <[EMAIL PROTECTED]> wrote: > Well, I'm writing for embedded realtime systems in C/C++ and > have never encountered a single need to use goto. I have encountered situations in C programs where the best thing to use was a goto. Those situations

Re: goto statement

2005-04-21 Thread Maxim Kasimov
ecessary to comment piece of code which already contains ''' or/and """ strings already, or there is another #-comments. Using goto, you do not need to edit a code, which is unfamiliar to you. and then you end up with situation when another goto jumps di

Re: goto statement

2005-04-21 Thread Diez B. Roggisch
> implement. BTW, all modern systems come complete with 'goto' implemented > in *hardware* - they're called "interrupts". That's not goto - that is a asynchronous function call - much closer related to multithreading. In an interrupt, you can always jum

Re: goto statement

2005-04-21 Thread Sergei Organov
Tim Daneliuk <[EMAIL PROTECTED]> writes: [...] > Some HLLs almost have to have it by definition. I cut my teeth as programmer > writing for embedded realtime systems in a HLL (PL/M). While you could, > in theory, completely avoid 'goto' in a realtime environment, it w

Re: goto statement

2005-04-21 Thread Sergei Organov
t is necessary to comment piece of > code which already contains ''' or/and """ strings already, or > there is another #-comments. Using goto, you do not need to edit a > code, which is unfamiliar to you. ... and then you end up with situation wh

Re: goto statement

2005-04-21 Thread Reinhold Birkenfeld
Maxim Kasimov wrote: >1) goto exempts from necessity to install new software > (it is critical for remote working, for example, installing X11 may be > impossible at all) Attributing the need for a language feature to restrictions of your ambience is hilarious. Reinhold

Re: goto statement

2005-04-21 Thread Tim Daneliuk
Reinhold Birkenfeld wrote: John Bokma wrote: Mage wrote: praba kar wrote: Dear All, In Python what is equivalent to goto statement You shouldn't use goto in high-level languages. Nonsense +1 Thank you! Above all your claim is well justified. These brilliant arguments you have put forth r

Re: goto statement

2005-04-21 Thread Maxim Kasimov
x27; or/and """ strings already, or there is another #-comments. Using goto, you do not need to edit a code, which is unfamiliar to you. 2. obfuscators goto can be used in the same way, as many of java-obfuscators do Speaking in other words: 1) goto exempts from necessity to i

Re: Troll? was: Re: goto statement

2005-04-20 Thread Steve Holden
Maxim Kasimov wrote: André Roberge wrote: Maxim Kasimov wrote: by the way, "goto" statement will be useful for writing more powerful obfuscators Let me get that clear: you want a goto to help with debugging. And you want to obfuscate your code even more? !? Perhaps you need to write i

Re: goto statement

2005-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Maxim Kasimov <[EMAIL PROTECTED]> wrote: . . . >>> if you need to comment a couple of code (and then uncomment ), what >>> are you doing then? >> >> >> Use comments? >> > >WOW, just greate!

Re: goto statement

2005-04-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Maxim Kasimov <[EMAIL PROTECTED]> wrote: >Simon Brunning wrote: >> On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: >> >>>it would be quite useful for debuging porposes >> >> >> How does goto help

Re: goto statement

2005-04-20 Thread Robert Kern
Matt Feinstein wrote: On Wed, 20 Apr 2005 10:23:58 +0100 (BST), praba kar <[EMAIL PROTECTED]> wrote: Dear All, In Python what is equivalent to goto statement I'd like to that implemented in an interpreted language. Requires some time travel. Yes, to 2004-04-01. -- Robert Kern [EMAI

Re: goto statement

2005-04-20 Thread Matt Feinstein
On Wed, 20 Apr 2005 10:23:58 +0100 (BST), praba kar <[EMAIL PROTECTED]> wrote: >Dear All, > > In Python what is equivalent to goto statement I'd like to that implemented in an interpreted language. Requires some time travel. Matt Feinstein -- There is no virtue in beli

Re: Troll? was: Re: goto statement

2005-04-20 Thread Fredrik Lundh
Bill Mill wrote: I believe he meant obfuscating bytecode for a commercial product, to try and avoid decompilation, which is often a desirable function for commercial entities. there is no shortage of "jump" instructions on the bytecode level, so if he wants to obfuscate bytecode, all he has to do

Re: goto statement

2005-04-20 Thread Philippe C. Martin
I guess the point could be "where do you draw the line": you can break and continue in Python, but you cannot goto. Some people, so it seems ;-) , would like to see gotos in Python whereas other think breaks and continues should be excluded ...; Regards, Philippe Steve Ho

Re: goto statement

2005-04-20 Thread Steve Holden
in the 1970's) in a software shop where "because procedure calls are slow in PL/1" we had to write them so each procedure ended with a GOTO to a specific label variable. You would call these monstrosities in the following way: MyProcReturn = DoneIt; GOTO MyProc; DoneIt:

Re: Troll? was: Re: goto statement

2005-04-20 Thread Bill Mill
On 4/20/05, Robert Kern <[EMAIL PROTECTED]> wrote: > Maxim Kasimov wrote: > > André Roberge wrote: > > > >> Maxim Kasimov wrote: > >> > >>> > >>> by the way, "goto" statement will be useful for writing more powerful > &g

Re: Troll? was: Re: goto statement

2005-04-20 Thread Robert Kern
Maxim Kasimov wrote: André Roberge wrote: Maxim Kasimov wrote: by the way, "goto" statement will be useful for writing more powerful obfuscators Let me get that clear: you want a goto to help with debugging. And you want to obfuscate your code even more? !? Perhaps you need to write i

Re: Troll? was: Re: goto statement

2005-04-20 Thread Maxim Kasimov
André Roberge wrote: Maxim Kasimov wrote: by the way, "goto" statement will be useful for writing more powerful obfuscators Let me get that clear: you want a goto to help with debugging. And you want to obfuscate your code even more? !? Perhaps you need to write in Perl, or some oth

Re: goto statement

2005-04-20 Thread Philippe C. Martin
Loop bodies (for break) Grant Edwards wrote: > On 2005-04-20, Philippe C. Martin <[EMAIL PROTECTED]> wrote: > >> Although I find them 'cleaner' than goto, would not use goto, >> and certainly do use 'return' in the middle of functions, I >> als

Re: goto statement

2005-04-20 Thread Grant Edwards
On 2005-04-20, Philippe C. Martin <[EMAIL PROTECTED]> wrote: > Although I find them 'cleaner' than goto, would not use goto, > and certainly do use 'return' in the middle of functions, I > also agree that some people might think the former do reduce > code

Re: goto statement

2005-04-20 Thread Philippe C. Martin
I do not want to pollute the debate but: -) I remember a software QA managanager responsible for "C" coding rules also not allowing us to use 'break', 'continue', or 'return' (in the middle of a function). Although I find them 'cleaner' t

Re: goto statement

2005-04-20 Thread TZOTZIOY
U Unix. I can also send you the output of `man vim' from a >> GNU system. [Simon] >It'll probably be easier to convince Guido to introduce a 'goto' >statement than it would be to learn vi. I just happened to learn vi first before emacs, and this precedence set m

Troll? was: Re: goto statement

2005-04-20 Thread André Roberge
Maxim Kasimov wrote: by the way, "goto" statement will be useful for writing more powerful obfuscators Let me get that clear: you want a goto to help with debugging. And you want to obfuscate your code even more? !? Perhaps you need to write in Perl, or some other similar language.

Re: goto statement

2005-04-20 Thread TZOTZIOY
On Wed, 20 Apr 2005 18:47:37 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: >by the way, "goto" statement will be useful for writing more powerful >obfuscators At this point in time you might want to reconsider what are the true reasons y

Re: goto statement

2005-04-20 Thread TZOTZIOY
On Wed, 20 Apr 2005 18:38:40 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: >> If you need more help, I would gladly send you the output of `man vi' >> from a non-GNU Unix. I can also send you the output of `man vim' from a >> GNU system. >is it wrong to debug pyth

Re: goto statement

2005-04-20 Thread Peter Hansen
praba kar wrote: In Python what is equivalent to goto statement The group has been remiss, starting mainly with Mage's unfortunately dogmatic response. What we meant to ask was this: why do you want it? There are better, simpler, cleaner, more readable ways to accomplish what you are tryi

Re: goto statement

2005-04-20 Thread Peter Hansen
Maxim Kasimov wrote: f..., i don't requesting that "goto" was available in next versions of python, but i'm saying if it will be so, it will be easy and quickly > _debug_ some skripts, _not only_ for commenting Then we go right back to Simon Brunning's question

Re: goto statement

2005-04-20 Thread Maxim Kasimov
by the way, "goto" statement will be useful for writing more powerful obfuscators -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Christos TZOTZIOY Georgiou wrote: On Wed, 20 Apr 2005 16:13:32 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: but what if i just can't to do this becouse i'm working thrue ssh, and have to use only installed editors (such as vi) If you use plain vi (not vim) and you

Re: goto statement

2005-04-20 Thread Simon Brunning
On 4/20/05, Christos TZOTZIOY Georgiou <[EMAIL PROTECTED]> wrote: > If you need more help, I would gladly send you the output of `man vi' > from a non-GNU Unix. I can also send you the output of `man vim' from a > GNU system. It'll probably be easier to convi

Re: goto statement

2005-04-20 Thread TZOTZIOY
On Wed, 20 Apr 2005 16:13:32 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: >but what if i just can't to do this becouse i'm working thrue ssh, and have to >use only installed editors (such as vi) If you use plain vi (not vim) and you want to comment e.g. 5 lines o

Re: goto statement

2005-04-20 Thread TZOTZIOY
On Wed, 20 Apr 2005 14:58:35 +0300, rumours say that Maxim Kasimov <[EMAIL PROTECTED]> might have written: >>> if you need to comment a couple of code (and then uncomment ), what >>> are you doing then? >> Use comments? >WOW, just greate! ... but i'd like to relax at some more interesting way

Re: goto statement

2005-04-20 Thread Reinhold Birkenfeld
Maxim Kasimov wrote: > f..., i don't requesting that "goto" was available in next versions of > python, > but i'm saying if it will be so, it will be easy and quickly _debug_ some > skripts, > _not only_ for commenting If you want, you can always us

Re: goto statement

2005-04-20 Thread Reinhold Birkenfeld
the choice of your quotes? >> This whole 'code' is "commented out", and you can >> use every type of """quote""" except three singles. >> >> ''' >> >> Or, if you really like the spirit of goto, >> use "if 0:". > > ... and add tabs to each string Yes. Where's the problem? M-x indent-region-ly yours, Reinhold -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Maxim Kasimov
removed. Alternatively, use ''' and ''' surrounding the code block and it will be ignored. f..., i don't requesting that "goto" was available in next versions of python, but i'm saying if it will be so, it will be easy and quickly _debug_ some skrip

Re: goto statement

2005-04-20 Thread Peter Hansen
Maxim Kasimov wrote: Torsten Bronger wrote: HallÃchen! Maxim Kasimov <[EMAIL PROTECTED]> writes: WOW, just greate! ... but i'd like to relax at some more interesting way than to comment each of rows but what if i just can't to do this becouse i'm working thrue ssh, and have to use only installed e

Re: goto statement

2005-04-20 Thread Simon Brunning
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: > > Or, if you really like the spirit of goto, > > use "if 0:". > > ... and add tabs to each string Get a decent text editor. What are you using? Notepad? -- Cheers, Simon B, [EMAIL PROTECTED], http:/

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Torsten Bronger wrote: HallÃchen! Maxim Kasimov <[EMAIL PROTECTED]> writes: [...] WOW, just greate! ... but i'd like to relax at some more interesting way than to comment each of rows but what if i just can't to do this becouse i'm working thrue ssh, and have to use only installed editors (such

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Use multi-line string literals. ''' it will not help if there is another ''' or/and """ inside of code block This whole 'code' is "commented out", and you can use every type of """quote""" except thre

Re: goto statement

2005-04-20 Thread Michael Hoffman
praba kar wrote: In Python what is equivalent to goto statement http://groups-beta.google.com/group/comp.lang.python/msg/98264a0daa007c46 -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Torsten Bronger
HallÃchen! Maxim Kasimov <[EMAIL PROTECTED]> writes: > [...] > > WOW, just greate! ... but i'd like to relax at some more > interesting way than to comment each of rows Then just use a good editor. TschÃ, Torsten. -- Torsten Bronger, aquisgrana, europa vetus -- http://mail.python.org/mailman

Re: goto statement

2005-04-20 Thread Do Re Mi chel La Si Do
+1 Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Simon Brunning
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: > WOW, just greate! ... but i'd like to relax at some more interesting way than > to comment each of rows Get a decent text editor. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mai

RE: goto statement

2005-04-20 Thread Sander Steffann
On 4/20/05, praba kar <[EMAIL PROTECTED]> wrote: >In Python what is equivalent to goto statement An old user-friendly cartoon that might be relevant: http://ars.userfriendly.org/cartoons/?id=2506 Have fun :-) Sander -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Mage
Maxim Kasimov wrote: > WOW, just greate! ... but i'd like to relax at some more interesting > way than to comment each of rows > There are editors that can comment and uncomment blocks. In worst case you can use """ to comment blocks (not elegant but works). Mage -- http://mail.python.or

Re: goto statement

2005-04-20 Thread Reinhold Birkenfeld
Maxim Kasimov wrote: > Robert Kern wrote: >> Maxim Kasimov wrote: >> >>> Simon Brunning wrote: >>> >>>> On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: >>>> >>>>> it would be quite useful for debuging porposes &

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Robert Kern wrote: Maxim Kasimov wrote: Simon Brunning wrote: On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... if you need to com

Re: goto statement

2005-04-20 Thread Robert Kern
Maxim Kasimov wrote: Simon Brunning wrote: On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... if you need to comment a couple of cod

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Simon Brunning wrote: On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... if you need to comment a couple of code (and then unc

Re: goto statement

2005-04-20 Thread Reinhold Birkenfeld
John Bokma wrote: > Mage wrote: > >> praba kar wrote: >> >>>Dear All, >>> >>> In Python what is equivalent to goto statement >>> >>> >>> >> You shouldn't use goto in high-level languages. > > Nonsens

Re: goto statement

2005-04-20 Thread John Bokma
Mage wrote: > praba kar wrote: > >>Dear All, >> >> In Python what is equivalent to goto statement >> >> >> > You shouldn't use goto in high-level languages. Nonsense -- John MexIT: http://johnbokma.c

Re: goto statement

2005-04-20 Thread Simon Brunning
On 4/20/05, Maxim Kasimov <[EMAIL PROTECTED]> wrote: > it would be quite useful for debuging porposes How does goto help you to remove bugs? I can certainly see how it helps you put them in in the first place... -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/s

Re: goto statement

2005-04-20 Thread Maxim Kasimov
Mage wrote: praba kar wrote: Dear All, In Python what is equivalent to goto statement You shouldn't use goto in high-level languages. it would be quite useful for debuging porposes -- Best regards, Maxim Kasimov mailto: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Simon Brunning
On 4/20/05, Maurice Caret <[EMAIL PROTECTED]> wrote: > > other equivalents are in > > http://docs.python.org/tut/node10.html I also missed , for the while statement. Those URLs just keeg getting better... -- Cheers, Simon B,

<    1   2   3   4   5   >