[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.59904632568]]

[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 rep...@bugs.python.org http://bugs.python.org/issue20339 ___

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-22 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20339 ___ ___ Python-bugs-list

[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

[issue20339] Make bytes() use tp_as_buffer for cmp

2014-01-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Interpreter Core nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20339 ___