Show More
@@ -650,14 +650,15 b' To further exemplify this, consider the following example::' | |||||
650 | print(a) |
|
650 | print(a) | |
651 |
|
651 | |||
652 | Now if call the function and complete the state changes as we did above, the |
|
652 | Now if call the function and complete the state changes as we did above, the | |
653 |
value `42` will be |
|
653 | value `42` will be printed. Again, this is because it's not in the global | |
654 | namespace:: |
|
654 | namespace:: | |
655 |
|
655 | |||
656 | do() |
|
656 | do() | |
657 |
|
657 | |||
658 | Running a file with the above code can lead to the following session:: |
|
658 | Running a file with the above code can lead to the following session:: | |
659 |
|
659 | |||
660 | >>> IPython.embed() |
|
660 | >>> do() | |
|
661 | 42 | |||
661 |
|
|
662 | Python 3.6.2 (default, Jul 17 2017, 16:44:45) | |
662 | Type 'copyright', 'credits' or 'license' for more information |
|
663 | Type 'copyright', 'credits' or 'license' for more information | |
663 | IPython 6.2.0.dev -- An enhanced Interactive Python. Type '?' for help. |
|
664 | IPython 6.2.0.dev -- An enhanced Interactive Python. Type '?' for help. |
General Comments 0
You need to be logged in to leave comments.
Login now