<head></head><body data-blackberry-caret-color="#00a8df" style="background-color: rgb(255, 255, 255); line-height: initial;"><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Good to know. Thanks for that info. Peter and I will start on making the appropriate changes to BBPy so that the transition is seamless for other devs. </div> <p style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Sent from my BlackBerry 10 smartphone.</p> <table width="100%" styl
e="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"> <div id="_persistentHeader" style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;"> <div><b>From: </b>Ryan Wooden</div><div><b>Sent: </b>Thursday, February 28, 2013 3:17 PM</div><div><b>To: </b>blackberry-python@engcorp.com</div><div><b>Subject: </b>Re: [BlackBerry-Python] python on Q10</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr"><div>There were in fact some changes to the <span class="">python</span> 3.2 runtim
e for 10.1. As of the current SDK, the <span class="">python</span>
runtime will only look for .pyc files when loading modules (to speed up
launch times). This _may_ be changed back before the 10.1 gold release.
To make it act like it does in 10.0, you can add `<env
var="PYTHON_DEFAULT_IMPORT_ORDER" value="1"/>` to your bar-descriptor.xml file. There are also some lower level changes to the <span class="">python</span> runtime which _shouldn't_ affect any apps (you can look at <a href="https://github.com/blackberry/python" target="_blank">https://github.com/<span class="">blackberry</span>/<span class="">python</span></a> for details on those).<br>
<br></div>-Ryan W</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 2:31 PM, Peter Hansen <span dir="ltr"><<a href="mailto:peter@engcorp.com" target="_blank">peter@engcorp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 2013-02-26 18:00, Xitij Ritesh Patel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That's interesting. I don't understand why it would only look for<br>
compiled files.<br>
<br>
I've always shipped compiled files without issue. But this is worth<br>
investigating to ensure there hasn't been a big change.<br>
</blockquote>
<br></div>
Ritesh, it must be a change in the 10.1 build for the Python 3.2 runtime.<br>
<br>
I've just submitted updated versions of Battery Guru and Fuel Traqker, built with only .pyc files. I also had a friend test a copy of White Noise built this way on 10.1 and sure enough, it works just fine.<br>
<br>
It's not a bad thing to ship .pyc files at this point (if there's no risk of them changing to 3.3 any time soon) but I do worry that this change might disable certain functionality that would be useful in some apps, specifically compiling dynamically generated code.<br>
<br>
I'll explore more once/if I can get a 10.1 simulator going, or if get a Dev Alpha C.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Peter</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
BlackBerry-Python mailing list<br>
<a href="mailto:BlackBerry-Python@engcorp.com" target="_blank">BlackBerry-Python@engcorp.com</a><br>
<a href="http://www.engcorp.com/mailman/listinfo/blackberry-python" target="_blank">http://www.engcorp.com/<u></u>mailman/listinfo/blackberry-<u></u>python</a><br>
</div></div></blockquote></div><br></div>
<br></div> <!--end of _originalContent --></body>