Message from discussion
Passing C pointers to Cython function
Received: by 10.204.148.22 with SMTP id n22mr322205bkv.0.1348740219964;
Thu, 27 Sep 2012 03:03:39 -0700 (PDT)
X-BeenThere: cython-users@googlegroups.com
Received: by 10.204.153.208 with SMTP id l16ls3025619bkw.4.gmail; Thu, 27 Sep
2012 03:03:37 -0700 (PDT)
Received: by 10.204.127.19 with SMTP id e19mr321739bks.4.1348740217203;
Thu, 27 Sep 2012 03:03:37 -0700 (PDT)
Received: by 10.204.127.19 with SMTP id e19mr321738bks.4.1348740217185;
Thu, 27 Sep 2012 03:03:37 -0700 (PDT)
Return-Path: <sturlamol...@yahoo.no>
Received: from mail-forward2.uio.no (mail-forward2.uio.no. [2001:700:100:10::71])
by gmr-mx.google.com with ESMTPS id k7si522673bks.2.2012.09.27.03.03.37
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 27 Sep 2012 03:03:37 -0700 (PDT)
Received-SPF: neutral (google.com: 2001:700:100:10::71 is neither permitted nor denied by best guess record for domain of sturlamol...@yahoo.no) client-ip=2001:700:100:10::71;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:700:100:10::71 is neither permitted nor denied by best guess record for domain of sturlamol...@yahoo.no) smtp.mail=sturlamol...@yahoo.no
Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.75)
(envelope-from <sturlamol...@yahoo.no>)
id 1THAwS-0002Bv-KL
for cython-users@googlegroups.com; Thu, 27 Sep 2012 12:03:36 +0200
Received: from mail-mx1.uio.no ([129.240.10.29])
by mail-out2.uio.no with esmtp (Exim 4.75)
(envelope-from <sturlamol...@yahoo.no>)
id 1THAwS-0002Bs-JV
for cython-users@googlegroups.com; Thu, 27 Sep 2012 12:03:36 +0200
Received: from pk-fys-1121c.uio.no ([129.240.192.96])
by mail-mx1.uio.no with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256)
user sturlamo (Exim 4.80)
(envelope-from <sturlamol...@yahoo.no>)
id 1THAwS-0003uV-7w
for cython-users@googlegroups.com; Thu, 27 Sep 2012 12:03:36 +0200
Message-ID: <50642477.40908@yahoo.no>
Date: Thu, 27 Sep 2012 12:03:35 +0200
From: Sturla Molden <sturlamol...@yahoo.no>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.7) Gecko/20120824 Thunderbird/10.0.7
MIME-Version: 1.0
To: cython-users@googlegroups.com
Subject: Re: [cython-users] Passing C pointers to Cython function
References: <ed976418-3e01-4b0d-9177-a2aed6559f58@googlegroups.com>
In-Reply-To: <ed976418-3e01-4b0d-9177-a2aed6559f58@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-UiO-SPF-Received:
X-UiO-Ratelimit-Test: rcpts/h 1 msgs/h 1 sum rcpts/h 2 sum msgs/h 2 total rcpts 1921 max rcpts/h 15 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0, autolearn=disabled, FREEMAIL_FROM=0.001,FSL_RCVD_USER=0.001,UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, uiouri=NO)
X-UiO-Scanned: CE0312ED87EC74CA0D5236A615641FB621C09C77
X-UiO-SPAM-Test: remote_host: 129.240.192.96 spam_score: -49 maxlevel 80 minaction 2 bait 0 mail/h: 1 total 368 max/h 6 blacklist 0 greylist 0 ratelimit 0
On 27.09.2012 11:39, Horace Abenga wrote:
> In my code, the Class *Bar* has a non-trivial constructor, and the
> "constructor" for *PyClass* in C should receive a pointer to an
> initialized *Bar* object.
Uaually this is an error of reasoning, as a non-trival constructor will
be non-trivial outside __cinit__ as well. So calling it from __cinit__
cannot be more difficult than calling it from anywhere else.
Sturla