You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Characters getting from terminal using getchar returns bytes #1088
Hello,
it is said in the documentation that getchar function always returns unicodethere, but when i tried to use the code snippet of the documentation on my windows 10 machine, i always fell on "invalid input :("
I inspected the type of value returned and I realized that it was bytes. So either you have to change the documentation and the code like this:
click.echo('Continue? [yn] ', nl=False)
c=click.getchar()
ifc==b'y':
click.echo('We will go on')
elifc==b'n':
click.echo('Abort!')
else:
click.echo('Invalid input :(')
either the problem have to be solved..
I'm using click 6.7, python 3.6 and I'm working under windows 10.
Activity
Merge #1576
Merge #37
Update click to 7.0 (#97)