<div>On Thu, Feb 23, 2012 at 2:22 PM, Amirouche Boubekki <span dir="ltr"><<a href="mailto:amirouche.boubekki@gmail.com">amirouche.boubekki@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">2012/2/23 Manish Sharma <span dir="ltr"><<a href="mailto:manish2aug@gmail.com" target="_blank">manish2aug@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi I am new to python language. On my first day, somebody told me that<br>
if any python script file is opened with any editor except python<br>
editor, the file is corrupted. Some spacing or indentation is changed<br>
and script stops working. I was opening the script file in Windows<br>
using Notepad++ but I didn't save anything and closed it. Still it was<br>
suggested to never open the python file in any other editor.<br>
<br>
Can anybody please verify this? Can opening a python script in any<br>
editor other than python editor corrupt the script? Did anybody ever<br>
face such type of issue or its just misunderstanding of the concept.</blockquote><div><br></div><div><br></div></div><div>There is compatibility issue with line ending in Windows vs other OS that's all I'm aware of.</div>
</div></blockquote><div><br></div><div>The only issues I can think of off the top of my head would be line endings and indentation (tabs vs spaces, number of spaces for one level). The second would just require care to avoid issues to make sure you match the style guides for the files you are working on (the Python standard is 4 spaces, I believe). The first could be a silent issue with some editors and some versions of Python if crossing between Windows, Linux, and Mac, however most software (including Python) will now convert between the different forms automatically, and Notepad++ is good about its handling - it will create new newlines in the format of the file, if such can be determined.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Amirouche</div></font></span></div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br>