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

split() method #48365

Closed
terryscott mannequin opened this issue Oct 13, 2008 · 4 comments
Closed

split() method #48365

terryscott mannequin opened this issue Oct 13, 2008 · 4 comments
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@terryscott
Copy link
Mannequin

terryscott mannequin commented Oct 13, 2008

BPO 4115

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-13.22:21:05.823>
created_at = <Date 2008-10-13.22:01:30.879>
labels = ['type-bug', 'invalid', 'OS-windows']
title = 'split() method'
updated_at = <Date 2008-10-13.22:29:28.452>
user = 'https://bugs.python.org/terryscott'

bugs.python.org fields:

activity = <Date 2008-10-13.22:29:28.452>
actor = 'terry.scott'
assignee = 'none'
closed = True
closed_date = <Date 2008-10-13.22:21:05.823>
closer = 'benjamin.peterson'
components = ['Windows']
creation = <Date 2008-10-13.22:01:30.879>
creator = 'terry.scott'
dependencies = []
files = []
hgrepos = []
issue_num = 4115
keywords = []
message_count = 4.0
messages = ['74701', '74703', '74706', '74707']
nosy_count = 2.0
nosy_names = ['QuantumTim', 'terry.scott']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue4115'
versions = ['Python 2.5']

@terryscott
Copy link
Mannequin Author

terryscott mannequin commented Oct 13, 2008

x = "Four score  and seven"
x.split() => ["Four", "score", "and", "seven"] 
x.split(" ") => ["Four", "score", " ", "and", "seven"] 

Probably not a big deal but it seems that it should be consistent. One
of my students spotted it.

@terryscott terryscott mannequin added OS-windows type-bug An unexpected behavior, bug, or error labels Oct 13, 2008
@QuantumTim
Copy link
Mannequin

QuantumTim mannequin commented Oct 13, 2008

This is the intended behaviour. See
http://www.python.org/doc/2.5.2/lib/string-methods.html for details.

@terryscott
Copy link
Mannequin Author

terryscott mannequin commented Oct 13, 2008

Tim,

Duh, thanks sorry I didn't check the documentation. Thanks.

Terry

On Mon, 13 Oct 2008, Tim Gordon wrote:

Tim Gordon <tim.py@aleph17.co.uk> added the comment:

This is the intended behaviour. See
http://www.python.org/doc/2.5.2/lib/string-methods.html for details.

----------
nosy: +QuantumTim


Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4115\>


@terryscott
Copy link
Mannequin Author

terryscott mannequin commented Oct 13, 2008

Benjamin,

Thanks. The documentation cleared this up for me. Thanks.

Terry

On Mon, 13 Oct 2008, Benjamin Peterson wrote:

Changes by Benjamin Peterson <musiccomposition@gmail.com>:

----------
resolution: -> invalid
status: open -> closed


Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4115\>


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

No branches or pull requests

1 participant