<div dir="ltr"><div>There were in fact some changes to the <span class="">python</span> 3.2 runtime 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>