on donno2048/pygoto: Use goto in Python · c/python · 2 pts · 3yyou can see how i use it here: godschat read from the bottom up
on I feel threatened the further I scroll · c/programming_horror · 1 pts · 3ymy head exploded before the end
on donno2048/pygoto: Use goto in Python · c/python · 1 pts · 3yi've found a good alternative is returning functions eg. you have a function like this: def cycle(func): while True: func=func() then you start with cycle(main) def main(): return intro if __name__ == '__main__: cycle(main) and then main returns the next function, and following functions return functions.. def intro(): if thisthing: return thisfunc if thatthing: return thatfunc return is being used like goto
on Welcome to c/Python! · c/python · 1 pts · 3ythe OpenAI API doesn't like 3.11 at the moment but yeah, it's easy enough to use an earlier version, especially with conda
on xkcd #1987: Python Environment · c/programmer_humor · 2 pts · 3yi've moved to just using conda environments. i find it's a lighter load on my old brain.
on Welcome to c/Python! · c/python · 1 pts · 3yi wonder what python version should be recommended as standard? should it be what debian stable currently has as its lastest? i've found some things can't handle the new-ness of 3.11. so is it 3.10?
you can see how i use it here: godschat
read from the bottom up
my head exploded before the end
i've found a good alternative is returning functions
eg. you have a function like this:
def cycle(func): while True: func=func()then you start with cycle(main)
def main(): return introif __name__ == '__main__: cycle(main)and then main returns the next function, and following functions return functions..
def intro(): if thisthing: return thisfunc if thatthing: return thatfuncreturn is being used like goto
the OpenAI API doesn't like 3.11 at the moment but yeah, it's easy enough to use an earlier version, especially with conda
i've moved to just using conda environments. i find it's a lighter load on my old brain.
i wonder what python version should be recommended as standard? should it be what debian stable currently has as its lastest? i've found some things can't handle the new-ness of 3.11. so is it 3.10?