Windows automatic rebooting due to faulty code

Ronak Dhakan ronaksoni301 at gmail.com
Fri May 23 11:26:20 EDT 2014


On Friday, May 23, 2014 8:34:31 PM UTC+5:30, Chris Angelico wrote:
> On Sat, May 24, 2014 at 12:56 AM, Ronak Dhakan wrote:
> 
> > I am learning python, and sometimes when I run a file with a faulty, windows gives a message that the system is rebooting and gives me 1 minute to save my work. Does anyone know how can I fix this? Most of the time a faulty code gives errors in python, but this is unique. I create files like Exercise 1.2.py and run it through IDLE.
> 
> >
> 
> 
> 
> I'm very much surprised that any Python coding error could do this.
> 
> What code triggers this? Is it consistent?
> 
> 
> 
> More likely it's something else in your system. Pure coincidence.
> 
> 
> 
> ChrisA

Even I am surprised, python errors should stay in python. But I am sure that the reboot is triggered exactly when I run some faulty code. And usually I change the code after reboot, so I haven't checked whether the same code is able to repeat the reboot. This happens even in simple code of 10-15 lines for drawing a polygon.

There was a problem while creating the post asking the question. Here it is now: https://groups.google.com/d/msg/comp.lang.python/WINUrOfAey4/pvbnapLrRcsJ



More information about the Python-list mailing list