Patches item #1512007, was opened at 2006-06-25 00:51
Message generated for change (Comment added) made by collinwinter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1512007&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.5
>Status: Closed
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Jp Calderone (kuran)
Assigned to: Nobody/Anonymous (nobody)
Summary: ast branch changed interactive module name

Initial Comment:
Python 2.4 displays tracebacks interactively like this:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ZeroDivisionError: integer division or modulo by zero

Python 2.5b1 displays them like this:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

This doesn't seem likely a particularly good change and
it breaks tests which rely on the particular spelling
of this message.  I probably wouldn't mind the change
if it were to a more useful string than "<module>", but
"?" seemed better than the current state.  If anything
is /not/ a module, it's an interactive session with the
interpreter.


----------------------------------------------------------------------

>Comment By: Collin Winter (collinwinter)
Date: 2007-03-08 13:19

Message:
Logged In: YES 
user_id=1344176
Originator: NO

1) An interpreter session is essentially a module that the user types in,
one statement at a time.

2) "?" tells me considerably less about where the error occurred than does
"<module>". "?" could mean anything.

3) Since Python 2.5 has already been released with the objected-to
behavior, I'd say it's incredibly unlikely that this change will be
reverted.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1512007&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to