[PATCH] libstdc++/77645 fix deque and vector xmethods for Python 3

Jonathan Wakely jwakely@redhat.com
Tue Sep 20 10:38:00 GMT 2016


On 20/09/16 09:41 +0100, Jonathan Wakely wrote:
>On 19/09/16 21:39 +0000, Joseph Myers wrote:
>>On Mon, 19 Sep 2016, Jonathan Wakely wrote:
>>
>>>On 19/09/16 17:24 +0000, Joe Buck wrote:
>>>> Python has a distinct integer division operator, "//".  7 // 3 returns the
>>>> integer 2.
>>>
>>>Python 3 does, but Python 2 doesn't have it unless you import it from
>>>__future, and I don't know how far back that works. I don't want to
>>>introduce a fix for Python 3 that breaks it for old systems.
>>
>>No, // is available in Python, without needing __future__, from 2.2
>>onwards.
>
>I stand corrected, thanks both of you.
>
>I'll test and commnit this then.

I still need a cast in one place, because gdb.Value doesn't support
the // operator (https://sourceware.org/PR20624).

Tested x86_64-linux, committed to all branches.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1802 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160920/9c274f84/attachment.bin>


More information about the Gcc-patches mailing list