Re: Appeal for python developers

2005-03-08 Thread huw . davies
BOOGIEMAN <[EMAIL PROTECTED]> wrote: > Please include "goto" command in future python realeses > I know that proffesional programers doesn't like to use it, > but for me as newbie it's too hard to get used replacing it > with "while", "def" or other commands It was only when I read this thread t

Re: GOTO (was Re: Appeal for python developers)

2005-03-07 Thread Anthra Norell
> Heiko wrote:   > SETUP = object()> ELSE = object()> BREAK = object() > > machine = {"WAITING FOR ACTION":>   {customer_drops_coin:"COIN HAS BEEN DROPPED",>    customer_selects_beverage:"ORDER RECEIVED",>    customer_cancels_order:"ACCOUNT CLOSURE IS

Re: Appeal for python developers

2005-03-07 Thread Lars
Boogieman wrote: > Please include "goto" command in future python realeses > I know that proffesional programers doesn't like to use it, > but for me as newbie it's too hard to get used replacing it > with "while", "def" or other commands I'm assuming you mean "python releases", "professional prog

Re: GOTO (was Re: Appeal for python developers)

2005-03-07 Thread Heiko Wundram
On Sunday 06 March 2005 14:26, Anthra Norell wrote: > Wow, I never thought I'd say this, but this certainly is an ingenious use of goto... But, nevertheless, I don't think this is applicable to Python as a way of justifying goto in the language, as your program doesn't have a split between abs

Re: Appeal for python developers

2005-03-06 Thread TZOTZIOY
On Sun, 06 Mar 2005 22:52:10 +, rumours say that Michael Hoffman <[EMAIL PROTECTED]> might have written: >Christos TZOTZIOY Georgiou wrote: > >> Argument against your "only" in "you can only use goto": >> >> http://www.entrian.com/goto/ > >That is sick. > >I'm clearly an amateur at obfuscatin

Re: Appeal for python developers

2005-03-06 Thread TZOTZIOY
On Sat, 05 Mar 2005 14:32:27 +, rumours say that Michael Hoffman <[EMAIL PROTECTED]> might have written: >BOOGIEMAN wrote: >> Please include "goto" command in future python realeses > >As has been said before, you can only use goto in Python if >you are using Python with line numbers: > >http:

Re: Appeal for python developers

2005-03-06 Thread EP
Grant Edwards <[EMAIL PROTECTED]> diagnosed > > Troll. > I first checked my calendar to make sure it wasn't April 1, but some folks just can't wait, can they. And another thought: all this use of alphanumeric characters --- aren't we obfuscating the pure binariness we should all know and l

Re: Appeal for python developers

2005-03-06 Thread Michael Hoffman
Christos TZOTZIOY Georgiou wrote: Argument against your "only" in "you can only use goto": http://www.entrian.com/goto/ That is sick. I'm clearly an amateur at obfuscating Python. Although my implementation is much simpler. ;) -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-lis

Re: GOTO (was Re: Appeal for python developers)

2005-03-06 Thread Andrew Dalke
Paul McGuire wrote: > At the risk of beating this into the Pythonic ground, here is a > generator version which collapses the original nested loop into a > single loop, so that break works just fine: Indeed. For some things I'm still in the pre-generator days of Python. If I worked at it I think

Re: GOTO (was Re: Appeal for python developers)

2005-03-06 Thread Anthra Norell
> Please include "goto" command in future python realeses> know that proffesional programers doesn't like to use it, > but for me as newbie it's too hard to get used replacing it > with "while", "def" or other commands> -- I believe the bad reputation of 'goto' goes back to the originators

Re: GOTO (was Re: Appeal for python developers)

2005-03-05 Thread Steven Bethard
Dennis Lee Bieber wrote: On 5 Mar 2005 08:00:23 -0800, [EMAIL PROTECTED] declaimed the following in comp.lang.python: "explicit GOTO"'. Goto's are less dangerous when they are in the forward direction, to code appearing later. UGH... That is the one direction I always avoid (in FORTRAN 77). Typica

Re: GOTO (was Re: Appeal for python developers)

2005-03-05 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: Goto is useful [...] when there is a clean-up section of a function that should be executed for various error conditions. Like this? def foo(): f = open('foo.txt') try: # do stuff with f finally: f.close() -- http://mail.python.org/mailman/listin

Re: GOTO (was Re: Appeal for python developers)

2005-03-05 Thread Paul McGuire
At the risk of beating this into the Pythonic ground, here is a generator version which collapses the original nested loop into a single loop, so that break works just fine: .def getCombinations(*args): .if len(args) > 1: .for a0 in args[0]: .for remainder in ge

Re: GOTO (was Re: Appeal for python developers)

2005-03-05 Thread Andrew Dalke
beliavsky wrote: > Goto is useful in breaking out of a nested loop and when there is a > clean-up section of a function that should be executed for various > error conditions. But much less useful in languages like Python which have exception handling. At rare times I've needed something like fo

Re: Appeal for python developers (THIS IS A TROLL)

2005-03-05 Thread Michael Hoffman
Dave Reed wrote: Or more likely a troll. Google for: Boogieman yahoo troll and you'll see this isn't the only place he/she does this sort of thing. I'm not convinced. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: Appeal for python developers

2005-03-05 Thread Grant Edwards
On 2005-03-05, BOOGIEMAN <[EMAIL PROTECTED]> wrote: > Please include "goto" command in future python realeses > I know that proffesional programers doesn't like to use it, > but for me as newbie it's too hard to get used replacing it > with "while", "def" or other commands Troll. -- Grant Edwa

GOTO (was Re: Appeal for python developers)

2005-03-05 Thread beliavsky
Torsten Bronger wrote: > Hallöchen! > > BOOGIEMAN <[EMAIL PROTECTED]> writes: > > > Please include "goto" command in future python realeses I know > > that proffesional programers doesn't like to use it, but for me as > > newbie it's too hard to get used replacing it with "while", "def" > > or othe

Re: Appeal for python developers

2005-03-05 Thread Andrew Dalke
Torsten Bronger wrote: > Accordings to Stroustrup's C++ book, the only good reason for goto > statements in a language is to have it in computer-generated code. I've needed goto statements when translating old code written with gotos. > Most gotos are disguised function calls, so > just copy the

Re: Appeal for python developers (THIS IS A TROLL)

2005-03-05 Thread Torsten Bronger
HallÃchen! Dave Reed <[EMAIL PROTECTED]> writes: > On Saturday 05 March 2005 09:34, Thomas RÃsner aka TRauMa wrote: > >> [...] >> >> Technically, as a newbie you shouldn't know about GOTO at all. So >> you're more a "Tainted by previous spaghetti code practices"-guy >> than newbie. > > Or more l

Re: Appeal for python developers (THIS IS A TROLL)

2005-03-05 Thread Dave Reed
On Saturday 05 March 2005 09:34, Thomas Rösner aka TRauMa wrote: > BOOGIEMAN wrote: > > Please include "goto" command in future python realeses > > I know that proffesional programers doesn't like to use it, > > but for me as newbie it's too hard to get used replacing it > > with "while", "def" o

Re: Appeal for python developers

2005-03-05 Thread Torsten Bronger
HallÃchen! BOOGIEMAN <[EMAIL PROTECTED]> writes: > Please include "goto" command in future python realeses I know > that proffesional programers doesn't like to use it, but for me as > newbie it's too hard to get used replacing it with "while", "def" > or other commands Accordings to Stroustrup'

Re: Appeal for python developers

2005-03-05 Thread Thomas Rösner aka TRauMa
BOOGIEMAN wrote: Please include "goto" command in future python realeses I know that proffesional programers doesn't like to use it, but for me as newbie it's too hard to get used replacing it with "while", "def" or other commands Technically, as a newbie you shouldn't know about GOTO at all. So

Re: Appeal for python developers

2005-03-05 Thread Michael Hoffman
BOOGIEMAN wrote: Please include "goto" command in future python realeses As has been said before, you can only use goto in Python if you are using Python with line numbers: http://groups-beta.google.com/group/comp.lang.python/msg/98264a0daa007c46 > I know that proffesional programers doesn't like t

Appeal for python developers

2005-03-05 Thread BOOGIEMAN
Please include "goto" command in future python realeses I know that proffesional programers doesn't like to use it, but for me as newbie it's too hard to get used replacing it with "while", "def" or other commands -- http://mail.python.org/mailman/listinfo/python-list