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
Using click 6.7 + Python 3.6.0 :: Anaconda custom (64-bit)
If I create option with parameters type=click.File('w') default='-' Then the value defaults to sys.stdout. But when I create it with type=click.File('x') default='-' it defaults to sys.stdin. In my opinion it should default also to sys.stdout becase x file mode is also for writing (with exclusive file creation).
Using click 6.7 + Python 3.6.0 :: Anaconda custom (64-bit)
If I create option with parameters
type=click.File('w') default='-'
Then the value defaults tosys.stdout
. But when I create it withtype=click.File('x') default='-'
it defaults tosys.stdin
. In my opinion it should default also tosys.stdout
becasex
file mode is also for writing (with exclusive file creation).Run this script for proof:
Output is:
The text was updated successfully, but these errors were encountered: