[Patches] [ python-Patches-1512007 ] ast branch changed interactive module name

SourceForge.net noreply at sourceforge.net
Sun Jun 25 06:51:52 CEST 2006


Patches item #1512007, was opened at 2006-06-25 00:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
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.


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1512007&group_id=5470


More information about the Patches mailing list