Check for existence?

Tawee Laoitichote tawee.la at pea.or.th
Wed May 30 01:54:43 EDT 2001


You'll will find it soon. Perhaps, 'dir()' at command prompt in python
interpreter environment is what you're looking for.

----- Original Message -----
From: "Gerrie Roos" <gerrie at trispen.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Tuesday, May 29, 2001 4:53 PM
Subject: Check for existence?


> I'm very new to Python and got a very basic question:
>
> How do I check to see if a variable exists/is available in the current
> namespace?
>
> I need to do this since I'm writing a script that gets called from Zope
> and I'm not sure the vars I need are in the namespace...I might
> misunderstand the whole issue, though, in which case I'll seek
> assistance from the Zope list.
>
> I've been through 'Diving into Python', the lang and lib refs, FAQ
> etc...
>
> --
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list