• Nick Coghlan's avatar
    [3.6] bpo-31232: Backport custom print rshift message (GH-3155) · 1a05e87e
    Nick Coghlan yazdı
    bpo-30721 added a "Did you mean ...?" suggestion to rshift
    TypeError messages that triggers when the LHS is a Python
    C function called "print".
    
    Since this custom error message is expected to be triggered
    primarily by attempts to use Python 2 print redirection syntax
    in Python 3, and is incredibly unlikely to be encountered
    otherwise, it is also being backported to the next 3.6
    maintenance release.
    
    Initial patch by Sanyam Khurana.
    1a05e87e
abstract.c 80.9 KB