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


Groups > comp.lang.python > #100255

Re: How to use internal python c funtions, from python code

From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: How to use internal python c funtions, from python code
Date 2015-12-11 09:47 +0100
Message-ID <mailman.130.1449823650.12405.python-list@python.org> (permalink)
References <CACs7g=DG2Ns8EER5iULogGmGLcny6_JyctYF_W_OdNZtjn3UCQ@mail.gmail.com> <CAPTjJmqFh8vkHXy1VYdhQvCviBRQRU2jw3aJDm688Wuicp=Wnw@mail.gmail.com> <CACs7g=B4mCo7m_v8i+9EQ1JcmRqB-g+vY4oZZDo_MwB96ejcLA@mail.gmail.com>

Show all headers | View raw


srinivas devaki <mr.eightnoteight@gmail.com> writes:

> but still I think it would be cool to be able to access internal c
> functions without any fuss. I can use such feature with heapq too(sift
> operations),

Have a look at "Cython". It is a compiler which compiles
a language similar to Python with special extensions for an efficient
interface to "C" and "C++" into "C"/"C++" source which then can be built
into a Python extension module and used from Python like any other
Python module.

In a "Cython" source, you can quite easily use C functions, among
others C functions defined by Python itself.

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


Thread

Re: How to use internal python c funtions, from python code dieter <dieter@handshake.de> - 2015-12-11 09:47 +0100

csiph-web