Split first OOP / names / namespaces lecture in two#307
Conversation
|
@mmcky when you have a moment would you mind to look into this and tidy up? |
|
|
||
| * The local namespace for the function is created. | ||
| * Local names `x` and `a` are bound, so that the local namespace becomes `{'x': 10, 'a': 1}`. | ||
| * Note that the global `a` was not affected by the local `a`. |
There was a problem hiding this comment.
@jstac should this be indented? I think it belongs at the root level.
There was a problem hiding this comment.
@jstac I noticed that the sections in oop_intro
-
namespaces -
Viewing namespaces -
Interactive Sessions -
The global namespace -
Local Namespaces -
The _builtins_ namespace -
Name Resolution
are pretty similar to names -- is this intention or should they be removed and make reference to the earlier lecture?
- I propose we add a
seealsoadmonition in### {index}`Mutable <single: Mutable>` versus {index}`Immutable <single: Immutable>` parametersback to thenamessection on this topic.
|
Sorry @mmcky , I made a complete mess of this, doing it in a rush. I've fixed the duplicates and the indent. |
|
Will this spit out a new netlify version after my latest pushes are built? |
|
Thanks @jstac -- will review again tomorrow. Netlify has the latest. Should we switch the order for
|
|
Hi @mmcky , thanks for picking that up. I've fixed it. Could you please look into why the build is failing? |
|
thanks @jstac this is now building and the preview is available here https://65e24dccd5105e2d2c5da1dc--epic-agnesi-957267.netlify.app/intro.html I will try and proof read later today or tomorrow morning. |
|
|
||
| In Python, it is common for users to build custom objects --- we discuss how to | ||
| do this [later](python_oop). | ||
| do this {doc}`lecture <python_oop>`. |
There was a problem hiding this comment.
@mmcky Thanks for trying to fix but the sentence no longer makes sense.
There was a problem hiding this comment.
I'll take care of this.
There was a problem hiding this comment.
thanks @jstac -- apologies many of these are in a later lecture . Thanks for catching this.
|
@jstac I will do a proof-read of the two lectures today. |

This PR refactors the
Object Oriented Programminglecture