find isset() php function equivalent in python

Ola Natvig ola.natvig at infosense.no
Tue Feb 1 04:19:41 EST 2005


Olivier Noblanc ATOUSOFT wrote:
> Hello
> 
> 
> What is the equivalent function of php isset() in python
> 
> Thank you very much.
> 
> olivier noblanc
> http://www.logiciel-erp.fr 
> 
> 

try:
	if variable:
		# isset
		pass
except NameError:
	# not set
	pass
	
could work...

-- 
--------------------------------------
  Ola Natvig <ola.natvig at infosense.no>
  infoSense AS / development



More information about the Python-list mailing list