Antoine Pitrou pit...@free.fr added the comment:
Done in r86602.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
Changes by Paul Bolle pebo...@tiscali.nl:
--
nosy: +pebolle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
___
Python-bugs-list mailing
Changes by Georg Brandl ge...@python.org:
--
assignee: d...@python - pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - patch review
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
ipatrol ipatrol6...@yahoo.com added the comment:
Yeah, I'll say. I prefer bytearray to back-and-forth mapping with chr and ord.
I use it particularly as a mid-step in working with binary representations of
strings. Please backport these docs with changes reflecting 2.x's paradigms.
--
Mark Dickinson dicki...@gmail.com added the comment:
This affects 2.6 as well, doesn't it?
--
nosy: +mark.dickinson
versions: +Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
Changes by Éric Araujo mer...@netwok.org:
--
assignee: georg.brandl - d...@python
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
___
Mark Dickinson dicki...@gmail.com added the comment:
Ideally, there should be documentation of 'bytes' and 'bytearray' in the
'Built-in Types' section of the library manual, too. (library/stdtypes.rst).
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
'bytes' is an alias for 'str' in 2.x, so it shouldn't be documented
separately.
As for bytearray, yes, it should be added if not present.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Shashwat Anand anand.shash...@gmail.com added the comment:
On a related note, the documentation of 'bytes' is not backported too.
--
nosy: +l0nwlf
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8340
Shashwat Anand anand.shash...@gmail.com added the comment:
Attached a patch to backport the 'bytearray' and 'bytes' documentation in trunk.
--
keywords: +patch
Added file: http://bugs.python.org/file16860/functions.patch
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
* If it is a *string*, you must also give the *encoding* (and optionally,
*errors*) parameters; :func:`bytearray` then converts the string to
bytes using :meth:`str.encode`.
I think this needs some lines to tell how it behaves with str and
New submission from Brian Curtin cur...@acm.org:
It looks like the bytearray documentation wasn't backported when the bytearray
code was. See Doc/library/functions.rst
--
assignee: georg.brandl
components: Documentation
messages: 102576
nosy: brian.curtin, georg.brandl
severity: normal
13 matches
Mail list logo