Skip to content

missing newline in "Could not convert argument %s to string" error message #48254

Closed

Description

@vstinner
BPO 4004
Nosy @loewis, @amauryfa, @vstinner
Files
  • argv_error_newline.patch: Add newline to the error message
  • argv_error_newline-2.patch: Add newline to the error messages
  • 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-10-07.21:07:15.028>
    created_at = <Date 2008-09-30.22:38:35.820>
    labels = ['type-bug']
    title = 'missing newline in "Could not convert argument %s to string" error message'
    updated_at = <Date 2008-10-07.21:07:14.999>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2008-10-07.21:07:14.999>
    actor = 'amaury.forgeotdarc'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-10-07.21:07:15.028>
    closer = 'amaury.forgeotdarc'
    components = []
    creation = <Date 2008-09-30.22:38:35.820>
    creator = 'vstinner'
    dependencies = []
    files = ['11668', '11728']
    hgrepos = []
    issue_num = 4004
    keywords = ['patch']
    message_count = 5.0
    messages = ['74102', '74444', '74446', '74447', '74485']
    nosy_count = 3.0
    nosy_names = ['loewis', 'amaury.forgeotdarc', 'vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue4004'
    versions = ['Python 3.0']

    Activity

    1. vstinner commented on Sep 30, 2008

      @vstinner
      MemberAuthor

      Example:

      $ ./python $(echo -e "\xff"); ./python $(echo -e "\xff"); echo "--"
      Could not convert argument 1 to stringCould not convert argument 1 to 
      string--
    2. added
      type-bug
      on Sep 30, 2008
    3. amauryfa commented on Oct 7, 2008

      @amauryfa
      Contributor

      The patch is good, and consistent with all usages of fprintf(stderr) in
      pythonrun.c, for example.

      Please also add \n to
      fprintf(stderr, "out of memory");
      in both python.c and frozenmain.c

    4. loewis commented on Oct 7, 2008

      loewismannequin
      Mannequin

      What's the purpose of the additional YY substring?

    5. vstinner commented on Oct 7, 2008

      @vstinner
      MemberAuthor

      @amaury.forgeotdarc: Done for "out of memory".

      @loewis: Oops, it's an error. I removed the YY.

      So here is a new patch.

    6. amauryfa commented on Oct 7, 2008

      @amauryfa
      Contributor

      Committed as r66838.

    7. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-bug

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions