[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] SIP: difference between TransferBack and Factory
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-10-25 23:30:19
Message-ID: 075001c5d9bc$10104d30$3eb82997 () bagio
[Download RAW message or body]

Hello,

Having read the SIP documentation, it is not clear to me what is the difference
between using TransferBack and using Factory as annotation for a function. It
*looks* like Factory should be used for new objects, and TransferBack for
objects that existed "before" (for some meaning of before). My doubt is: why
does SIP care whether the function just created the object, or got it from
somewhere else, as long as the semantic is that Python will own the object
after the call? Why should it care whether it already seen it as a Python
object or not?

Can anybody elaborate a little?

Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic