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


Groups > comp.lang.python > #100255 > unrolled thread

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

Started bydieter <dieter@handshake.de>
First post2015-12-11 09:47 +0100
Last post2015-12-11 09:47 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

Fromdieter <dieter@handshake.de>
Date2015-12-11 09:47 +0100
SubjectRe: How to use internal python c funtions, from python code
Message-ID<mailman.130.1449823650.12405.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web