Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:Windows': 0.02; 'exercise': 0.04; 'reason,': 0.07; 'subject:code': 0.07; 'bug.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'wrote': 0.14; 'windows': 0.15; 'idle.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'unlikely': 0.16; 'do,': 0.16; 'fix': 0.17; 'written': 0.21; 'code,': 0.22; 'example': 0.22; 'this?': 0.23; 'header:X-Complaints-To:1': 0.27; 'errors': 0.30; 'work.': 0.31; 'gives': 0.31; 'program,': 0.31; 'code': 0.31; 'such.': 0.31; 'anyone': 0.31; 'file': 0.32; 'run': 0.32; 'running': 0.33; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'doing': 0.36; 'sometimes': 0.38; 'system,': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'even': 0.60; 'most': 0.60; 'received:173': 0.61; "you're": 0.61; 'first': 0.61; 'save': 0.62; "you've": 0.63; 'therefore': 0.72; 'conclude': 0.84; 'received:fios.verizon.net': 0.84; 'unique.': 0.84; 'updates,': 0.84; 'subject::': 0.85 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re:Windows rebooting due to faulty code Date: Fri, 23 May 2014 13:52:41 -0400 (EDT) Organization: news.gmane.org References: <41e58dfd-b9c1-41b1-b849-ddc5ee8a978e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: static-173-53-48-58.rcmdva.fios.verizon.net X-Newsreader: PiaoHong.NewsGroup.Client.VIP:1.52 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1400867598 news.xs4all.nl 2931 [2001:888:2000:d::a6]:49130 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71939 Ronak Dhakan Wrote in message: > I am learning python, and sometimes when I run a file with a faulty code, 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. > It is very unlikely that running a program will cause a proper Windows system to reboot. The one example I can think of is the restart.exe program, which is deliberately doing it. It is even much less likely that it could be triggered by beginner's code written in python without 3rd party add-ons. Therefore I'd conclude you've either got a corrupted system, or you're tripping on a Windows bug. The first things I'd do, if stuck on Windows for some reason, is to check your system for Windows updates, then for viruses, hackers, and such. -- DaveA