Re: Usage of an GObject inout parameter in python
- From: Abderrahim Kitouni <a kitouni gmail com>
- To: David Boesner <david boesner gmail com>
- Cc: python-hackers-list <python-hackers-list gnome org>
- Subject: Re: Usage of an GObject inout parameter in python
- Date: Wed, 22 Apr 2015 19:20:58 +0100
Hello,
2015-04-22 9:01 GMT+01:00 David Boesner <david boesner gmail com>:
Hi everyone,
I would like to know how to use an inout parameter, that is defined in an
GObject method, in python.
The problem, that I am facing is, that python array, which I am passing to
the GObject method is
not changed, even though @buffer is an inout paramter. Could anyone please
tell me, if I misunderstood
the concept of inout parameters or give me an example, how I can use inout
parameters in python?
An inout parameter is mapped to two parameters: one in and one out. So
the parameter you send isn't changed, but the new value is the return
value of the function.
HTH,
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]