<div dir="ltr">Hi Rob<div><br></div><div>Thanks for your reply.</div><div><br></div><div>From <a href="http://legacy.python.org/download/">http://legacy.python.org/download/</a>, I could see that the current production releases are Python 3.4 and Python 2.7.6. </div><div><br></div><div><div>Since we use python for some our legacy applications, we don't want to switch to Python 3.0 right now. Moreover, since Python 2.6 is not supported anymore, we want to upgrade to Python 2.7.</div></div><div><br></div><div>Do you suggest I should use Python 2.7.12 which is the latest version in 2.7 series? I picked up 2.7.6, since it was listed as production release and assumed it is the most stable version. </div><div><br></div><div>Thanks</div><div>Sesha</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 13, 2016 at 11:49 PM, Robert Collins <span dir="ltr"><<a href="mailto:robertc@robertcollins.net" target="_blank">robertc@robertcollins.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14 December 2016 at 01:26, Sesha Narayanan Subbiah<br>
<span class=""><<a href="mailto:sesha.subbiah@gmail.com">sesha.subbiah@gmail.com</a>> wrote:<br>
> Hello<br>
><br>
><br>
> I have some implementation that currently uses python 2.6.4, which I m<br>
> trying to upgrade to Python 2.7.6. After upgrade, I get the following error:<br>
><br>
><br>
> "expected string or Unicode object, memoryview found"<br>
><br>
><br>
> On checking further, I could find that memory view object has been back<br>
> ported to python 2.7 using this patch:<br>
><br>
><br>
> <a href="https://bugs.python.org/issue2396" rel="noreferrer" target="_blank">https://bugs.python.org/<wbr>issue2396</a><br>
><br>
><br>
> I would like to know if it is safe to revert this patch alone from Python<br>
> 2.7.6, or do we know if there are any other dependencies?<br>
<br>
</span>I'm not sure - if you're going to run with old, custom, builds of<br>
Python, you're probably best served by testing comprehensively for<br>
this yourself.<br>
<br>
That said, I have to presume that the error you're getting is from<br>
some code that should be changed anyway, and will need to be changed<br>
when you move to Python 3. Please remember that Python 2.7.6 was<br>
released in 2013 - there have been many security issues since then,<br>
including some of the most egregious SSL issues ever, which should<br>
prompt you to run the latest 2.7 branch (if you're unable to migrate<br>
straight to 3.x.<br>
<br>
-Rob<br>
</blockquote></div><br></div>