[docs] [issue17904] bytes should be listed as built-in function for 2.7

Andy Maier report at bugs.python.org
Tue Jul 1 18:00:46 CEST 2014

Andy Maier added the comment:

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.



Python tracker <report at bugs.python.org>

More information about the docs mailing list