Skip to content

multiline input in terminal #127379

@RustoMCSpit

Description

@RustoMCSpit

Feature or enhancement

Proposal:

put simply, i need to regularly input multiple lines into my terminal and have python interpret that as is. for an oversimplified example:

Enter your groceries: kiwi
apple
banana
orange

yes, i know there are workarounds such as while loops or sys.stdin.readlines() but those have cons and dont exactly work as intended. for example, sys.stdin.readlines() would require me to only have one needed multiline input.

in my opinion, input() should be for single lines while (something along the lines of) longinput() should take multiple lines into account

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions