This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients
Date 2006-08-14.11:03:41
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Carried over from Patch #1538956 description:

During testing I found that the warning registry
defaults to only issueing warnings once per module and
line number. 

I suppose this is enough for debugging code, but it
feels weird when trying things in the interactive
session, as you only get the warnings once in that
context (and for the whole session), regardless of the
fact that you're entering new lines of code all the time.

The reason is that the warning framework registers
warnings based on line number which usually is 1 in
interactive sessions.

In general, it might be a better idea to have a single
global warning registry and then include the module
name or id in the registry key. Currently, the warning
framework creates a new registry per (module) context.
History
Date User Action Args
2008-01-20 09:58:54adminlinkissue1539925 messages
2008-01-20 09:58:54admincreate