[issue42948] bytearray.copy is undocumented

2021-01-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42948] bytearray.copy is undocumented

2021-01-24 Thread wim glenn
wim glenn added the comment: Oh, I've missed that part. Although the note (5) seems to indicate that the copy method refers to sequence types which don't support slicing, it still seems adequately documented under the mutable sequence operations. I'll close this. -- stage: ->

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Josh, you are right. I closed the PR. Before closing, I will think about whether to propose a change to make this more prominent. I notice the issubclass(array.array, collections.abc.MutableSequence ) is True even though some of the methods (like clear,

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Does this need specific documentation? bytearray itself is documented with: > As bytearray objects are mutable, they support the mutable sequence > operations in addition to the common bytes and bytearray operations described > in Bytes and Bytearray

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Patrick Haller
Patrick Haller added the comment: Terry, I am sorry. You are of course right. I was somehow looking at count not copy. -- ___ Python tracker ___

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patrick, I am not sure what you are saying. All the methods listed is this section are for both, as with bytes.count(sub[, start[, end]]) bytearray.count(sub[, start[, end]])ΒΆ but only bytearray has .copy (since there is never a need to copy an immutable).

[issue42948] bytearray.copy is undocumented

2021-01-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch nosy: +terry.reedy nosy_count: 3.0 -> 4.0 pull_requests: +23129 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24308 ___ Python tracker

[issue42948] bytearray.copy is undocumented

2021-01-17 Thread Patrick Haller
Patrick Haller added the comment: You will see this on every bytes and bytearray type as the behaviour described is the same for both. -- nosy: +HallerPatrick ___ Python tracker

[issue42948] bytearray.copy is undocumented

2021-01-17 Thread wim glenn
New submission from wim glenn : bytearray type has a copy method which seems to be undocumented https://docs.python.org/3/library/stdtypes.html#bytes-and-bytearray-operations -- assignee: docs@python components: Documentation messages: 385164 nosy: docs@python, wim.glenn priority: