Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94743

Re: Python Questions - July 25, 2015

From BartC <bc@freeuk.com>
Newsgroups comp.lang.python
Subject Re: Python Questions - July 25, 2015
References (3 earlier) <mp6e1a$knj$1@dont-email.me> <mailman.1044.1438073468.3674.python-list@python.org> <ybItx.48040$vg2.2941@fx34.am4> <55b7a9f5$0$1668$c3e8da3$5496439d@news.astraweb.com><jkOtx.42040$Ec3.13257@fx24.am4> <mailman.1073.1438186424.3674.python-list@python.org>
Message-ID <Av7ux.44257$Ec3.34720@fx24.am4> (permalink)
Organization virginmedia.com
Date 2015-07-29 17:50 +0100

Show all headers | View raw


On 29/07/2015 17:13, Laura Creighton wrote:
> In a message of Tue, 28 Jul 2015 17:45:00 +0100, BartC writes:
>> On 28/07/2015 17:12, Steven D'Aprano wrote:

>>> https://en.wikipedia.org/wiki/Libffi
>>
>> Yes, I know (I was looking at it myself a few days ago for another
>> project). But while it might be used for implementing some of Python's
>> internals, I was wondering what it was doing in a user-level set of
>> libraries, given that it's mostly a bunch of C code.
>>
>> Perhaps they were just padding the list to make it look more impressive.
>
> People who use numpy also want to load up their c extensions a
> whole lot.  If you have a hunk of C code (a library, ususually) and
> you want to call it from your python code, and play with its
> objects just like they were python objects, this is one of the
> most common ways to do this.

If it's in the form where you start by writing along the lines of:

  import libffi

then it must be something very different to what I looked at. (Which 
seemed to consists of lots of C files, headers and ASM modules, for 
dozens of different targets and compilers.)

I would also expect a foreign-function interface to be built-in, or to 
have all the details taken care of by an add-on, so that the very low 
level libffi wouldn't figure at all.

-- 
Bartc

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 04:39 -0500
  Python Questions - July 25, 2015 tandrewjohnson@outlook.com - 2015-07-25 04:36 -0700
    Python Questions - July 25, 2015 tandrewjohnson@outlook.com - 2015-07-25 04:39 -0700
    Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 08:16 -0500
      Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-25 15:59 +0200
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 12:49 -0500
          Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-26 20:38 +0200
            Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 13:48 -0500
    Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 13:49 +0100
      Re: Python Questions - July 25, 2015 Chris Angelico <rosuav@gmail.com> - 2015-07-26 23:07 +1000
        Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 15:30 +0100
      Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-26 14:19 +0100
      Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-27 00:22 +1000
        Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-26 15:58 +0100
      Re: Python Questions - July 25, 2015 Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-07-27 23:14 +0000
        Re: Python Questions - July 25, 2015 Terry Reedy <tjreedy@udel.edu> - 2015-07-28 04:50 -0400
          Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 10:46 +0100
            Re: Python Questions - July 25, 2015 Chris Angelico <rosuav@gmail.com> - 2015-07-28 20:17 +1000
              Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 11:44 +0100
                Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-28 13:47 +0100
                Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-29 02:02 +1000
            Re: Python Questions - July 25, 2015 Steven D'Aprano <steve@pearwood.info> - 2015-07-29 02:12 +1000
              Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-28 17:45 +0100
                Re: Python Questions - July 25, 2015 Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-07-28 18:46 +0000
                Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-29 18:13 +0200
                Re: Python Questions - July 25, 2015 BartC <bc@freeuk.com> - 2015-07-29 17:50 +0100
          Re: Python Questions - July 25, 2015 wxjmfauth@gmail.com - 2015-07-28 07:09 -0700
        Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-28 13:58 +0100
  Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-25 15:30 +0200
    Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-25 08:45 -0500
  Re: Python Questions - July 25, 2015 tjohnson <tandrewjohnson@outlook.com> - 2015-07-25 15:16 -0700
  Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 14:17 -0500
    Re: Python Questions - July 25, 2015 mm0fmf <none@mailinator.com> - 2015-07-26 22:15 +0100
      Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 17:08 -0500
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 17:32 -0500
      Re: Python Questions - July 25, 2015 Ned Batchelder <ned@nedbatchelder.com> - 2015-07-26 16:12 -0700
        Re: Python Questions - July 25, 2015 "E.D.G." <edgrsprj@ix.netcom.com> - 2015-07-26 18:58 -0500
          Re: Python Questions - July 25, 2015 Laura Creighton <lac@openend.se> - 2015-07-27 11:15 +0200
        Re: Python Questions - July 25, 2015 Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-27 01:18 +0100
          Re: Python Questions - July 25, 2015 mm0fmf <none@mailinator.com> - 2015-07-27 17:46 +0100
    Re: Python Questions - July 25, 2015 tjohnson <tandrewjohnson@outlook.com> - 2015-07-27 03:24 -0700
      Re: Python Questions - July 25, 2015 wxjmfauth@gmail.com - 2015-07-29 00:43 -0700

csiph-web