On Tuesday, May 17, 2016 at 3:46:13 PM UTC-5, Edward K. Ream wrote:

>
> It's unbearable to see pyflakes messages that can't be suppressed, so 
> something safe and effective must be done. It doesn't have to be pretty, 
> however ;-)
>

The following works:

try:
    import __builtin__ as builtins
    print(builtins.raw_input) # Python 2
except ImportError:
    import builtins
    print(builtins.input) # Python 3

I'll have to give some thought about encapsulating this.  Perhaps g.input 
and g.raw_input...

This also illustrates why Python 3 hasn't exactly been an overnight 
success.  Python 3 is the cost that keeps on costing.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to