[issue20339] Make bytes() use tp_as_buffer for cmp

2014-10-14 Thread Stefan Krah
Stefan Krah added the comment: The comparisons can be somewhat meaningless though: >>> from _testbuffer import * >>> x = ndarray([1.1, 2.2, 3.3, 4.4, 5.5, 6.6], shape=[2,3], format="f") >>> x.tolist() [[1.10023841858, 2.20047683716, 3.29952316284], [4.40095367432, 5.5, 6.599

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-26 Thread fin swimmer
fin swimmer added the comment: This is exactly what I need! Would be a great work. -- nosy: +fin.swimmer ___ Python tracker ___ ___ P

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ncoghlan, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Neil Schemenauer
New submission from Neil Schemenauer: While poking around at bytes() related things, I noticed that the tp_richcompare method for bytes does not use the tp_as_buffer interface. Making it use it is quite easy, probably even makes the code simpler and