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


Groups > comp.lang.python > #10793

Re: Early binding as an option

From Stefan Behnel <stefan_ml@behnel.de>
Subject Re: Early binding as an option
Date 2011-08-03 11:33 +0200
References <CAPTjJmpWN1Tq-46UoHjh_-q9ahkivTWmLJR3_eF9iThHwXQnhA@mail.gmail.com> <j19mbp$985$1@dough.gmane.org> <CAPTjJmr8mjYKTYu9EdKc-QRaFfSwH0rbVdAhnW-ysfvOZujJqQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1826.1312364022.1164.python-list@python.org> (permalink)

Show all headers | View raw


Chris Angelico, 03.08.2011 00:08:
> So... Would this potentially produce wrong results? Would it be of any
> use, or would its benefit be only valued in times when the whole
> function needs to be redone in C?

Note that, in most cases, you do not need to "redo the whole function in 
C". You can just use Cython to compile it, thus leaving it in Python syntax 
and keeping up Python semantics, unless you decide to explicitly divert 
from them in favour of optimisations.

Stefan

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


Thread

Re: Early binding as an option Stefan Behnel <stefan_ml@behnel.de> - 2011-08-03 11:33 +0200

csiph-web