Python 3 DUP_TOP_TWO bug

This commit is contained in:
rocky
2016-05-08 18:41:39 -04:00
parent dddb486d78
commit 196495c40e
4 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
# Bug in &= ~x in Python 3
# Uses DUP_TOP_TWO in Python 3 and
# DUP_TOPX_2 in Python 2
import sys, termios
new = sys.argv[:]
new[3] &= ~termios.ECHO