Это должно привести к исключению ZeroDivisionError
.Я не могу себе представить, почему в Windows 98 все будет иначе.
>>> 1/0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero
Какая замечательная трата времени.
Под Win98 с Python 2.3.5
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.0.5
>>> import sys
>>> sys.getwindowsversion()
(4, 10, 67766446, 1, ' A ')
>>> sys.version_info
(2, 3, 5, 'final', 0)
>>> 1/0
Traceback (most recent call last):
File "<pyshell#3>", line 1, in -toplevel-
1/0
ZeroDivisionError: integer division or modulo by zero
>>>