Author vstinner
Recipients belopolsky, pitrou, terry.reedy, tjollans, vstinner
Date 2010-06-20.08:53:27
SpamBayes Score 0.336552
Marked as misclassified No
Message-id <1277024009.92.0.97505179033.issue8990@psf.upfronthosting.co.za>
In-reply-to
Content
About the patch:

 - Why not reading itemsize from buffer.itemsize?
 - A test would be nice in Lib/test/test_array.py (in test_tofromstring?). Please add also a.extend(bytearray(b'xjxjx')) to the test suite.


I agree that it is a bugfix and so i can be applied to 3.1 (and 3.2).

--

> fromstring should become frombytes.

I remember an issue proposing that. I also prefer .frombytes() name: we can add .frombytes() and keep .fromstring() as an alias to .frombytes() (and maybe mark it as deprecated).

A message:
http://bugs.python.org/issue3565#msg71205

An issue starting at:
http://bugs.python.org/issue1023290#msg92069

Can someone open a issue about .frombytes()?

> fromunicode is still needed. 

Can someone open a new issue about .fromunicodes()?
History
Date User Action Args
2010-06-20 08:53:30vstinnersetrecipients: + vstinner, terry.reedy, belopolsky, pitrou, tjollans
2010-06-20 08:53:29vstinnersetmessageid: <1277024009.92.0.97505179033.issue8990@psf.upfronthosting.co.za>
2010-06-20 08:53:27vstinnerlinkissue8990 messages
2010-06-20 08:53:27vstinnercreate