Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python curious behavior
#2
No, because the construct is useful. You have the ability to
stop the iteration. It's not used to get an additional value out.

Return a value via return is different use case and need the try-except clause.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Python curious behavior - by scidam - Jul-23-2019, 05:16 AM
RE: Python curious behavior - by DeaD_EyE - Jul-23-2019, 07:09 AM
RE: Python curious behavior - by scidam - Jul-23-2019, 11:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Python 3.10.1 32 Windows setup Virus behavior SapG20211215 8 3,197 Dec-15-2021, 06:51 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020