This commit is contained in:
surister 2019-11-28 10:48:26 +01:00
parent e1449b2ac3
commit 31ae1ce379

View File

@ -2415,7 +2415,6 @@ def a ():
return
>>> None
```
And
@ -2452,19 +2451,16 @@ Disassembly of <code object b at 0x0000029C4D3C2ED0, file "<dis>", line 5>:
2 RETURN_VALUE
```
An empty <code> return </code> is exactly the same as <code> return None </code> and functions without any return
An empty <code> return</code> is exactly the same as <code>return None</code> and functions without any explicit return
will always return None regardless of the operations, therefore
```
def sum(a, b):
global C
c = a + b
>>> None
```
</details>