[Tutor] Re: Newbie OOP Question.(diff between function,
module and class)
SA
sarmstrong13@mac.com
Mon, 10 Jun 2002 16:59:48 -0500
On 6/10/02 12:26 PM, "Skip Montanaro" <skip@pobox.com> wrote:
>
> SA> One last question, sorry if this is very basic but I feel these
> SA> terms need better definitions for newbies like me (the only other
> SA> languages I have experience with are Qbasic and HTML) what is a
> SA> namespae? Is that analagous to pwd of the program? For instance, if
> SA> the program is currently in one are of the script doing work, would
> SA> that be considered the namespace?
>
> Yes, it is more or less like the filesystem hierarchy. In the current
> directory, a reference to "blue.txt" would reference a file in the current
> directory. One significant difference is that Python's module/package
> system doesn't have a syntax for referring to the current module's parent
> (no "..").
Ahh. Now that may prove interesting. Would it be beneficial to make a
reserved command like .. That pops you back into the parent namespace?
Thanks.
SA