Skip to content

text.split() without params and text.split(" ") with space are working differently #142097

@asadbek204

Description

@asadbek204

Bug report

Bug description:

text = "Hello  World  ! "
print(text.split())
print(text.split(" "))

CPython versions tested on:

3.14, 3.12, 3.13

Operating systems tested on:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions