Python IDLE is refusing to save and is the crashing when I try to save a file with a specific comment -
i running python 2.7. wrote code in idle. found not save file. if repeatedly try save, idle crashes completely. found if removed following comment, save:
#add fourth parameter, end, find function specifies stop looking. warning: exercise bit tricky. default value of end should len(str), doesn't work. default values evaluated when function defined, not when called. when find defined, str doesn't exist yet, can’t find length.
oddly, found if truncated comment following, can save:
#add fourth parameter, end, find function specifies stop looking. warning: exercise bit tricky. default value of end should len(str), doesn
it not seem length of comment, version, comment split two, not save:
#add fourth parameter, end, find function specifies stop looking. warning: exercise bit tricky. default value of end should len(str), doesn #’t work. default values evaluated when function defined, not when called. when find defined, str doesn’t exist yet, can’t find length.
i imagine there rule comments don't know, insight appreciated.
you have go in options -> configure idle -> general , set default source encoding utf-8 option.
Comments
Post a Comment