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

clinic.py --converters fails #65828

Closed
serhiy-storchaka opened this issue Jun 1, 2014 · 4 comments
Closed

clinic.py --converters fails #65828

serhiy-storchaka opened this issue Jun 1, 2014 · 4 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@serhiy-storchaka
Copy link
Member

BPO 21629
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:

assignee = 'https://github.com/larryhastings'
closed_at = <Date 2014-06-11.11:35:53.782>
created_at = <Date 2014-06-01.17:50:52.551>
labels = ['type-bug']
title = 'clinic.py --converters fails'
updated_at = <Date 2014-06-11.11:35:53.781>
user = 'https://github.com/serhiy-storchaka'

bugs.python.org fields:

activity = <Date 2014-06-11.11:35:53.781>
actor = 'larry'
assignee = 'larry'
closed = True
closed_date = <Date 2014-06-11.11:35:53.782>
closer = 'larry'
components = ['Demos and Tools']
creation = <Date 2014-06-01.17:50:52.551>
creator = 'serhiy.storchaka'
dependencies = []
files = []
hgrepos = []
issue_num = 21629
keywords = []
message_count = 4.0
messages = ['219512', '220251', '220255', '220257']
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/issue21629'
versions = ['Python 3.4', 'Python 3.5']

@serhiy-storchaka
Copy link
Member Author

$ ./python Tools/clinic/clinic.py --converters
Legacy converters:
Traceback (most recent call last):
  File "Tools/clinic/clinic.py", line 4199, in <module>
    sys.exit(main(sys.argv[1:]))
  File "Tools/clinic/clinic.py", line 4131, in main
    print('    ' + ' '.join(c for c in legacy if c[0].isupper()))
  File "Tools/clinic/clinic.py", line 4131, in <genexpr>
    print('    ' + ' '.join(c for c in legacy if c[0].isupper()))
IndexError: string index out of range

As I see, the problem is in the self converter which has empty format_unit.

@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Jun 1, 2014
@larryhastings
Copy link
Contributor

Confirmed.

@larryhastings larryhastings self-assigned this Jun 11, 2014
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 11, 2014

New changeset 6b2db7fc17f7 by Larry Hastings in branch '3.4':
Issue bpo-21629: Fix Argument Clinic's "--converters" feature.
http://hg.python.org/cpython/rev/6b2db7fc17f7

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jun 11, 2014

New changeset 8b4b8f5d7321 by Larry Hastings in branch 'default':
Issue bpo-21629: Merge from 3.4.
http://hg.python.org/cpython/rev/8b4b8f5d7321

@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
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants