Python Tutorial (16) Global Namespace

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
675 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 6, 2010

You might as well know this if you come from another language, it doesn't make a lot of sense to me. Python's global namespace doesn't require you to pass arguments inside functions for global variables, it's strange to me, if you know why please comment.

http://jream.com

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (JREAMdesign)

  • global variables?

  • @plutgamer Yeah usually variables in functions dont accept the variables from the main area in other languages, I guess they are just global crazy :\

see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • Think of the global namespace as outside, and the function as a house. The house has tinted windows, so it can see out, but the global namespace cannot see in. So in summary, a function inside the global name space or another function can see the information outside the function, but the information outside the function cannot see the information inside the function.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more