Issue 16252: bytes and bytearray methods are undocumented (original) (raw)
Issue16252
Created on 2012-10-16 19:10 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (6) | ||
---|---|---|
msg173074 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2012-10-16 19:10 |
Everything is in the title. I couldn't find any doc for bytes.join, etc. (while str methods are documented in library/stdtypes.html#string-methods). | ||
msg173076 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2012-10-16 19:13 |
http://docs.python.org/dev/library/stdtypes.html#bytes-and-bytearray-operations """ Due to the common use of ASCII text as the basis for binary protocols, bytes and bytearray objects provide almost all methods found on text strings, with the exceptions of: """ The additional methods are documented after that. | ||
msg173077 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2012-10-16 19:14 |
Ah, right. I guess a hyperlink to those methods wouldn't hurt, though :) | ||
msg173078 - (view) | Author: Antoine Pitrou (pitrou) * ![]() |
Date: 2012-10-16 19:15 |
For the record, in the SSL socket docs, I listed the supported methods explicitly (http://docs.python.org/dev/library/ssl.html#ssl-sockets). I think it makes things clearer for the reader. | ||
msg173086 - (view) | Author: Chris Jerdonek (chris.jerdonek) * ![]() |
Date: 2012-10-16 20:03 |
> I couldn't find any doc for bytes.join, etc. One of the contributing factors to this is that bytes doesn't have its own class entry in the same way that, for example, list, dict, and memoryview have. This creates a stumbling block for readers because they have to know to click on the "Bytes and Bytearray Operations" section as opposed to simply clicking on the type name as it is done for several other types. With a class entry, locating where the methods are documented would be quicker and more intuitive. | ||
msg227721 - (view) | Author: Berker Peksag (berker.peksag) * ![]() |
Date: 2014-09-27 20:10 |
Fixed in issue 21777. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:37 | admin | set | github: 60456 |
2014-09-27 20:10:04 | berker.peksag | set | status: open -> closednosy: + berker.peksagmessages: + resolution: out of datestage: needs patch -> resolved |
2012-10-17 00:32:36 | jcea | set | nosy: + jcea |
2012-10-16 20:03:16 | chris.jerdonek | set | nosy: + chris.jerdonekmessages: + |
2012-10-16 19:15:55 | pitrou | set | messages: + |
2012-10-16 19:14:57 | pitrou | set | messages: + |
2012-10-16 19:13:37 | ezio.melotti | set | nosy: + ezio.melottimessages: + |
2012-10-16 19:10:56 | pitrou | create |