Message406079
I can also confirm that there is an regression in Python 3.9.8 regarding argparse
For example, using watchdog 2.1.6 package
Python 3.9.7 (correct behaviour)
In [1]: from watchdog import watchmedo
In [2]: watchmedo.cli.parse_args(["auto-restart", "echo", "123"])
Out[2]: Namespace(command='echo', command_args=['123'], directories=None, patterns='*', ignore_patterns='', ignore_directories=False, recursive=False, timeout=1.0, signal='SIGINT', debug_force_polling=False, kill_after=10.0, func=<function auto_restart at 0x7f296d1d9dc0>)
Python 3.9.8 (incorrect behaviour)
In [1]: from watchdog import watchmedo
In [2]: watchmedo.cli.parse_args(["auto-restart", "echo", "123"])
Out[2]: Namespace(command='auto-restart', command_args=['123'], directories=None, patterns='*', ignore_patterns='', ignore_directories=False, recursive=False, timeout=1.0, signal='SIGINT', debug_force_polling=False, kill_after=10.0, func=<function auto_restart at 0x7fc39480cee0>) |
|
Date |
User |
Action |
Args |
2021-11-10 09:50:27 | lwalejko | set | recipients:
+ lwalejko, rhettinger, paul.j3, miss-islington, RhinosF1, ALSchwalm, dgw |
2021-11-10 09:50:27 | lwalejko | set | messageid: <1636537827.26.0.897098526711.issue45235@roundup.psfhosted.org> |
2021-11-10 09:50:27 | lwalejko | link | issue45235 messages |
2021-11-10 09:50:27 | lwalejko | create | |
|