[Tutor] Question about namespace

ahimsa ahimsa@onetel.net.uk
Mon Mar 24 12:41:57 2003


Hi

Namespaces:=20

Guido van Rossum defines namespace as a "mapping from names to objects"=20
(Tutorial - Python 2.2.2 :S.9.2 p 54). Would I be correct to think of thi=
s as=20
- in Linux-speak - making a symlink that creates a symlink (or=20
'shortcut'/link) between the local reference (the link) and the module or=
=20
function itself (the 'target') which 'resides' elsewhere (i.e. has a glob=
al=20
scope)? Hence assignment and deletion only add/remove references to that=20
module/function rather than copy/destroy the module/function itself. Does=
=20
this similie work? If not, what would be a more appropriate one?

Cheers

Andy

--=20
News from a diiferent perspective:
http://www.scoop.co.nz
http://www.fromthewilderness.com
____________________________
Prevent digital monopoly:
http://www.againsttcpa.com