Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5bdc0db

Browse filesBrowse files
committed
misc
1 parent 10b1b05 commit 5bdc0db
Copy full SHA for 5bdc0db

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎lectures/names.md‎

Copy file name to clipboardExpand all lines: lectures/names.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,13 @@ Next `g` is called via `y = g(10)`, leading to the following sequence of actions
463463

464464
* The local namespace for the function is created.
465465
* Local names `x` and `a` are bound, so that the local namespace becomes `{'x': 10, 'a': 1}`.
466-
* Note that the global `a` was not affected by the local `a`.
466+
467+
Note that the global `a` was not affected by the local `a`.
467468

468469
```{figure} /_static/lecture_specific/oop_intro/local1.png
469470
```
470471

471472

472-
473473
* Statement `x = x + a` uses the local `a` and local `x` to compute `x + a`, and binds local name `x` to the result.
474474
* This value is returned, and `y` is bound to it in the global namespace.
475475
* Local `x` and `a` are discarded (and the local namespace is deallocated).

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.