[issue26764] SystemError in bytes.__rmod__

2016-04-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a bug in bytearray formatting. See issue26766. -- dependencies: +The result type of bytearray formatting is not stable ___ Python tracker ___

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread STINNER Victor
STINNER Victor added the comment: Buildbots are unhappy. http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/3456/steps/test/logs/stdio == FAIL: test_imod (test.test_bytes.ByteArrayTest) -

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5 ___ Python tracker ___

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ebece99c0bb6 by Serhiy Storchaka in branch 'default': Issue #26764: Fixed SystemError in bytes.__rmod__. https://hg.python.org/cpython/rev/ebece99c0bb6 New changeset 8dee0c09b46e by Serhiy Storchaka in branch '3.5': Issue #26764: Bacported tests for

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Surprisingly the implementation in 3.5 is correct. But backporting tests exposed behavior change in bytearray formatting in 3.6. In 3.5 bytearray.__mod__ returns bytearray, in 3.6 it returns bytes. Is this intentional? -- __

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread STINNER Victor
STINNER Victor added the comment: bytes_rmod.patch LGTM (maybe just a minor PEP 7 issue, see my review). -- nosy: +haypo ___ Python tracker ___ __

[issue26764] SystemError in bytes.__rmod__

2016-04-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: >>> [] % b'' Traceback (most recent call last): File "", line 1, in SystemError: Objects/bytesobject.c:2975: bad argument to internal function Proposed patch fixes bytes.__rmod__ and tests for bytes formatting. -- components: Interpreter Core fil