On 24 February 2013 18:54, Douwe Osinga <span dir="ltr"><<a href="mailto:douwe@triposo.com" target="_blank">douwe@triposo.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you tried cython?<br></blockquote><div><br></div><div>Another possibility is Shedskin: "<span style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)">an </span><i style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)">experimental</i><span style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)"> compiler, that can translate pure, but </span><i style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)">implicitly statically typed</i><span style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)"> Python (2.4-2.6) programs into optimized C++. It can generate stand-alone programs or </span><i style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)">extension modules</i><span style="font-size:13px;font-family:arial,sans-serif;line-height:16.390625px;background-color:rgb(255,255,255)"> that can be imported and used in larger Python programs."</span></div>
<div><br></div><div><a href="https://code.google.com/p/shedskin/">https://code.google.com/p/shedskin/</a> </div><div><br></div><div>It (intentionally) does not support type annotation, because they want to know how far they can go without it.</div>
<div><br></div><div><br></div><div>David.</div></div>