-----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-----
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to