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
bytes should be listed as built-in function for 2.7 #62104
Comments
Looking into the summary table, there's no information about the IMHO it should appear in this table (as str, unicode, bytearray) with the appropriate `.. versionadded:`. |
Here's a patch. Do you think it should be added under the string signature too? It will make linking easier, but it might be more confusing for users. |
Ezio, what do you mean with "string signature"? For me, the patch looks fine as it is. |
I mean here: https://docs.python.org/2/library/functions.html#str |
Your patch right now generates the line: New in version 2.6: bytes() has been added as an alias for str() at the end of the paragraph for str(). To me, that is sufficient for the description of str(). If anything, we could add a separate paragraph for bytes(), after the paragraph for bytearray(), e.g. like this: ---------------------------------- .. function:: bytes() Alias for :func:`str`. .. versionadded:: 2.6 ---------------------------------- If that is what you had in mind, I think it is a good idea to add it. Andy |
As 2.7 has now reached EOL, I'm closing the issue. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: