python / cpython

The Python programming language
https://www.python.org
Other
63.39k stars 30.35k forks source link

Argument Clinic: negative line numbers #64342

Closed serhiy-storchaka closed 10 years ago

serhiy-storchaka commented 10 years ago
BPO 20143
Nosy @larryhastings, @serhiy-storchaka

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: ```python assignee = 'https://github.com/larryhastings' closed_at = created_at = labels = ['type-bug'] title = 'Argument Clinic: negative line numbers' updated_at = user = 'https://github.com/serhiy-storchaka' ``` bugs.python.org fields: ```python activity = actor = 'larry' assignee = 'larry' closed = True closed_date = closer = 'larry' components = [] creation = creator = 'serhiy.storchaka' dependencies = [] files = [] hgrepos = [] issue_num = 20143 keywords = [] message_count = 4.0 messages = ['207434', '207468', '207469', '207470'] nosy_count = 3.0 nosy_names = ['larry', 'python-dev', 'serhiy.storchaka'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue20143' versions = ['Python 3.4'] ```

serhiy-storchaka commented 10 years ago

In case of error Argument Clinic sometimes reports negative line numbers.

larryhastings commented 10 years ago

I've seen the problem before, but was too busy to fix it. Give me a reproducable test case and I'll fix it.

1762cc99-3127-4a62-9baf-30c3d0f51ef7 commented 10 years ago

New changeset 9c8d31d69044 by Larry Hastings in branch 'default': Issue bpo-20143: The line numbers reported in Argument Clinic errors are http://hg.python.org/cpython/rev/9c8d31d69044

larryhastings commented 10 years ago

Oh, golly, this was one of those "what was I thinking?" sorts of bugs. The problem (and the fix) was obvious once I stared at it long enough.