From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 13 19:12:35 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D564616A403 for ; Fri, 13 Jul 2007 19:12:35 +0000 (UTC) (envelope-from mathieu.prevot@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 54C4A13C4A3 for ; Fri, 13 Jul 2007 19:12:35 +0000 (UTC) (envelope-from mathieu.prevot@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so705029uge for ; Fri, 13 Jul 2007 12:12:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=npC82We0KU86EIP+NSGtZS9VCwS9MQWXAbZ8HKSZmrxL8tMD5GcVAPzREe+O6+CuIGVCtDNtw/PmO799pCTG6M+fPJwYYjzqdQOM2QNtBO2H7IU6eovcNPxxK0vz7zGbBdmf+exy0Nc7T2qQX75fzbqz0+kPAOzvAe0fEqHumYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BiblRUljB0UYPKjanASzmZLSlSZmORtCo5UU0gJDVtSIgTjoJUY0MKXsdv/kkSowARGSqQPpWM0X3MXrCf9BuLpQtcTlTgYRufJ69FO511OV2Ik8uBtCddzl4FdENir7QMbzOdP5dpvKk/WJl6s1/8hZfwI14TVlZjbFBHpewpM= Received: by 10.82.190.2 with SMTP id n2mr2400155buf.1184353953983; Fri, 13 Jul 2007 12:12:33 -0700 (PDT) Received: by 10.82.117.14 with HTTP; Fri, 13 Jul 2007 12:12:33 -0700 (PDT) Message-ID: <3e473cc60707131212u1e3b4552v2dfc5c10cfe8e533@mail.gmail.com> Date: Fri, 13 Jul 2007 21:12:33 +0200 From: "Mathieu Prevot" To: "Joseph Koshy" In-Reply-To: <3e473cc60707131205s1a2912c3p9895832de54e6b94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3e473cc60707131205s1a2912c3p9895832de54e6b94@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: python modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 19:12:35 -0000 2007/7/13, Mathieu Prevot : > I learn that modules loaded with import fall into 4 general categories: > - code written in Python (.py) > - C or C++ extensions that have been compiled into shared libraries (or DLLs) > - Packages containing collection of modules > - Built-in modles writen in C and linked into the Python interpreter > > Why don't we use directly the libpmc library in C instead of rewritting > things in python ? I copied libpmc.so and tryed 'import libpmc'. I have: ImportError: dynamic module does not define init function (initlibpmc) Are we really far from having a libpmc module ? Mathieu