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

'\n' escape character print before the Py_GetCompiler version #72764

Closed
Amitgb14 mannequin opened this issue Nov 1, 2016 · 5 comments
Closed

'\n' escape character print before the Py_GetCompiler version #72764

Amitgb14 mannequin opened this issue Nov 1, 2016 · 5 comments
Labels
3.7 (EOL) end of life type-feature A feature request or enhancement

Comments

@Amitgb14
Copy link
Mannequin

Amitgb14 mannequin commented Nov 1, 2016

BPO 28578
Nosy @ericsnowcurrently, @zooba, @Amitgb14
Files
  • getcompiler.c.patch
  • 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 2016-11-01.10:32:05.934>
    created_at = <Date 2016-11-01.08:48:28.896>
    labels = ['type-feature', '3.7']
    title = "'\\n' escape character print before the Py_GetCompiler version"
    updated_at = <Date 2016-11-01.18:58:57.314>
    user = 'https://github.com/Amitgb14'

    bugs.python.org fields:

    activity = <Date 2016-11-01.18:58:57.314>
    actor = 'amitgb14'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-11-01.10:32:05.934>
    closer = 'SilentGhost'
    components = []
    creation = <Date 2016-11-01.08:48:28.896>
    creator = 'amitgb14'
    dependencies = []
    files = ['45302']
    hgrepos = []
    issue_num = 28578
    keywords = ['patch']
    message_count = 5.0
    messages = ['279861', '279864', '279868', '279869', '279891']
    nosy_count = 4.0
    nosy_names = ['SilentGhost', 'eric.snow', 'steve.dower', 'amitgb14']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue28578'
    versions = ['Python 2.7', 'Python 3.7']

    @Amitgb14 Amitgb14 mannequin added 3.7 (EOL) end of life type-feature A feature request or enhancement labels Nov 1, 2016
    @Amitgb14
    Copy link
    Mannequin Author

    Amitgb14 mannequin commented Nov 1, 2016

    When I hit sys.version command on Linux shell the Py_GetCompiler version print '\n' character like;

    '3.7.0a0 (default:7aa001a48120, Nov 1 2016, 13:53:25) \n[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)]'

    And When I launch python, Py_GetCompiler line print to the next line,

    [aghadge@localhost build]$ ./python
    Python 3.7.0a0 (default:7aa001a48120+, Nov 1 2016, 14:05:04)
    [GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux

    @SilentGhost
    Copy link
    Mannequin

    SilentGhost mannequin commented Nov 1, 2016

    And how exactly are you "hitting sys.version command"?

    @Amitgb14
    Copy link
    Mannequin Author

    Amitgb14 mannequin commented Nov 1, 2016

    Actually, I run this in Python terminal,

    >> import sys
    >> import sys.version

    I also have attached patch, Please let me that is correct or not?

    @SilentGhost
    Copy link
    Mannequin

    SilentGhost mannequin commented Nov 1, 2016

    sys.version is a string, it's intended to be printed and it needs \n to be able to output two lines. I'm not sure what exactly problem you're having, but if you want special characters like \n not to show in output, you should use

    >> print(sys.version)

    I'm going to close this issue.

    @SilentGhost SilentGhost mannequin closed this as completed Nov 1, 2016
    @Amitgb14
    Copy link
    Mannequin Author

    Amitgb14 mannequin commented Nov 1, 2016

    SilentGhost, Thanks for your response.

    @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
    3.7 (EOL) end of life type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants