[Zope-Perl] Python void context

Gisle Aas gisle@ActiveState.com
26 May 2000 12:44:38 +0200


Is there a way for python functions to find out if they are called in
void context (i.e. that the caller does not care about a return value)?

In perl a function we can test defined(wantarray) to figure this out.
The reason I ask is that I want to be able to propagate void context
to perl functions called from python.

Regards,
Gisle