[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: inconsistency in Python SWIG return parameters

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-02-27 23:23:19 CET

Marshall White <cscidork@yahoo.com> writes:
> What if you have a function that returns three object pointers of
> the same type?
> If the function tries to return (None, "some pointer", None), how
> does the Python script know which one was just returned?
> It almost doesn't look like there is an easy answer here.

Why not just return

   (None, SOME_OBJECT, None)

then? We know what number of return values we're expecting, so it
should be okay if some of them are None, no?


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 27 23:58:16 2003

This is an archived mail posted to the Subversion Dev mailing list.