![]() ![]() A few hours later one of them asked me why IDLE is refusing to run his code. I spent some time explaining the dangers of TABs with Python's indentation-sensitive syntax and telling them "just use 4 spaces and all will be OK". Recently I gave a 3-day Python course to 6 people. This is inconsistent with PEP 8 what's worse, it's makes copy-paste code between the shell and editor windows confusing and dangerous! IDLE defaults to indenting with 4 spaces in editor windows, but hard TABs in the Python Shell window. ![]() Al.Sweigart, Kamushin.Shen, THRlWiTi, cben, kbk, louielu, rhettinger, rwy, terry.reedy, westley.martinezĬreated on 12:36 by cben, last changed 14:56 by admin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |