Jean-Michel Fauth <[EMAIL PROTECTED]> added the comment:
Py3.0b2. This bug seems to be quite annoying. Especially when one works
with a main module importing modules which are importing modules and so
on, all modules having an encoding declaration. The Traceback (and the
user) is (are) a little bit lost.
---------
# -*- coding: cp1252 -*-
# modb.py
def fb():
i = 1
j = 0
r = i / j
-----------
# -*- coding: cp1252 -*-
# moda.py
import modb
def fa():
modb.fb()
-----------
# -*- coding: cp1252 -*-
# main.py
import moda
def main():
moda.fa()
if __name__ == '__main__':
main()
-----------
Running main.py leads to an
>c:\python30\pythonw -u "main.py"
(Traceback (most recent call last):
File "main.py", line 11, in <module>
File "main.py", line 8, in main
File "C:\jm\jmpy3\moda.py", line 8, in fa
File "C:\jm\jmpy3\modb.py", line 8, in fb
ZeroDivisionError: int division or modulo by zero
>Exit code: 1
----------
nosy: +jmfauth
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2384>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com