Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatible arguments in warning formatting for idle #47948

Closed
gcoffin mannequin opened this issue Aug 27, 2008 · 2 comments
Closed

incompatible arguments in warning formatting for idle #47948

gcoffin mannequin opened this issue Aug 27, 2008 · 2 comments
Labels
topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@gcoffin
Copy link
Mannequin

gcoffin mannequin commented Aug 27, 2008

BPO 3698

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-09-13.13:39:55.091>
created_at = <Date 2008-08-27.12:29:59.731>
labels = ['expert-IDLE', 'type-crash']
title = 'incompatible arguments in warning formatting for idle'
updated_at = <Date 2008-09-13.13:39:55.090>
user = 'https://bugs.python.org/gcoffin'

bugs.python.org fields:

activity = <Date 2008-09-13.13:39:55.090>
actor = 'gpolo'
assignee = 'none'
closed = True
closed_date = <Date 2008-09-13.13:39:55.091>
closer = 'gpolo'
components = ['IDLE']
creation = <Date 2008-08-27.12:29:59.731>
creator = 'gcoffin'
dependencies = []
files = []
hgrepos = []
issue_num = 3698
keywords = []
message_count = 2.0
messages = ['72023', '73183']
nosy_count = 2.0
nosy_names = ['gpolo', 'gcoffin']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue3698'
versions = ['Python 2.6']

@gcoffin
Copy link
Mannequin Author

gcoffin mannequin commented Aug 27, 2008

In idle, the function idle_formatwarning_subproc overrides
warnings.formatwarning, however the latter in Python 2.6 is called from
warnings._show_warning with an additional "line" argument:

line 29, in _show_warning
file.write(formatwarning(message, category, filename, lineno, line))

whereas idle_formatwarning_subproc still only accepts 4 arguments. The
optional line argument should be added.

@gcoffin gcoffin mannequin added topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump labels Aug 27, 2008
@gpolo
Copy link
Mannequin

gpolo mannequin commented Sep 13, 2008

Duplicate of bpo-3391

@gpolo gpolo mannequin closed this as completed Sep 13, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

0 participants