[Zope] error with simple python script loop

Jens Vagelpohl jens at dataflake.org
Fri Nov 24 10:03:36 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 24 Nov 2006, at 14:38, Jonathan wrote:
> I have never written a python script that did not have a 'return'  
> statement. I don't know if it is mandatory or not. I usually use  
> python scripts as subroutines/functions and I always have a return  
> statement  (even if it is a bare return - ie. the return statement  
> does not send back any data).

It is not necessary to put in your own return statement. They just  
return None if no return statement is present, which is the same for  
"normal" Python code.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFZwnJRAx5nvEhZLIRAhIiAJ9mNhtpO0bV6lo7i11hRtqjlhlXBwCfSATl
gsBBHxu8iQAj8j3YcBvW8CM=
=qyQh
-----END PGP SIGNATURE-----


More information about the Zope mailing list