Quantcast
Viewing all articles
Browse latest Browse all 1264

Python • Re: Python Script keeps Exporting after Finally Statement

An explict return is AFAIK only required in two circumstances:
  1. You want to exit the function early:
  2. You want to return some specific data to the caller.
Or for proper concise coding standards.

For your coding standards, perhaps. It is not a requirement of the language.

And an extra, unnecessary statement is hardly concise.

Statistics: Posted by thagrol — Mon Oct 07, 2024 12:21 pm



Viewing all articles
Browse latest Browse all 1264

Trending Articles