[issue20399] Comparison of memoryview

2019-04-02 Thread james stone
james stone added the comment: I encountered this issue as well when using python 3.6.7 and psycopg2. Postgres tries to sort rows by the primary key field and if the returned type is a memoryview an the error is thrown: "TypeError: '<' not supported between instances of 'memoryview' and

[issue20399] Comparison of memoryview

2019-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: If not wanting to support the whole gamut of PEP 3118 types, one could start by only providing ordered comparisons when format == 'B'. -- stage: -> needs patch versions: +Python 3.8 -Python 3.5 ___ Python tracker

[issue20399] Comparison of memoryview

2019-01-18 Thread Josh Rosenberg
Josh Rosenberg added the comment: Not my use case specifically, but my link in the last post (repeated below) was to a StackOverflow answer to a problem where using buffer was simple and fast, but memoryview required annoying workarounds. Admittedly, in most cases it's people wanting to do

[issue20399] Comparison of memoryview

2019-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Josh, could you say what your use case is? -- ___ Python tracker ___ ___ Python-bugs-list

[issue20399] Comparison of memoryview

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20399] Comparison of memoryview

2019-01-18 Thread Josh Rosenberg
Josh Rosenberg added the comment: The lack of support for the rich comparison operators on even the most basic memoryviews (e.g. 'B' format) means that memoryview is still a regression from some of the functionality buffer offered back in Python 2 (

[issue20399] Comparison of memoryview

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20399 ___ ___ Python-bugs-list

[issue20399] Comparison of memoryview

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20399 ___ ___

[issue20399] Comparison of memoryview

2014-01-27 Thread Mark Lawrence
Mark Lawrence added the comment: Some discussion here https://groups.google.com/forum/#!topic/dev-python/1D_iExlsva8 -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20399

[issue20399] Comparison of memoryview

2014-01-27 Thread Stefan Krah
Stefan Krah added the comment: For integer sequences I think non-equality comparisons will be somewhat confusing. Are the sequences little or big endian? If we start to view bytes more like latin-1 again (PEP 461), it would make sense for the 'B' and 'c' formats. --

[issue20399] Comparison of memoryview

2014-01-26 Thread fin swimmer
New submission from fin swimmer: Comparison by using memoryview seems not to work completely. This works: memoryview(bytearray(range(5))) != memoryview(bytearray(range(5))) False memoryview(bytearray(range(5))) == memoryview(bytearray(range(5))) True But: memoryview(bytearray(range(5)))

[issue20399] Comparison of memoryview

2014-01-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds reasonable, at least when the two memoryviews have the same shape. -- components: +Interpreter Core -Library (Lib) nosy: +pitrou, skrah type: behavior - enhancement ___ Python tracker