Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
Python
plr3.13
The return statement

Python Language Reference, Version 3.13
7.6. The return statement

Read this Section of the Authoritative Specification

https://docs.python.org/3.13/reference/simple_stmts.html#the-return-statement

4 Documented Misconceptions

Misconception
DeferredReturn
A return statement in the middle of a function doesn't return immediately
Misconception
MultipleValuesReturn
Functions can return multiple values
Misconception
ReturnCall
Return statements need () around the return value
Misconception
ReturnUnwindsMultipleFrames
A return statement can unwind multiple call stack frames

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors