[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-20 Thread Eric Fahlgren
Eric Fahlgren added the comment: Thanks, I installed 3.7.2 on one of our non-production machines and it appears that gettext has been fixed, so I'm closing this. > python -V Python 3.7.2 > python bpo35785.py --foo usage: bpo35785.py [-h] [--foo FOO] bpo35785.py: error: argument --foo: expecte

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-20 Thread Dong-hee Na
Dong-hee Na added the comment: ➜ cpython.git git:(3.7) ✗ ./python.exe bpo-35785.py --foo test ➜ cpython.git git:(3.7) ✗ ./python.exe bpo-35785.py --foo 1 ➜ cpython.git git:(3.7) ✗ ./python.exe bpo-35785.py --foo usage: bpo-35785.py [-h] [--foo FOO] bpo-35785.py: error: argument --foo: expecte

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Dong-hee Na
Dong-hee Na added the comment: Umm looks like I should pass an argument on cmd to reproduce it. I will try to reproduce it later -- ___ Python tracker ___ ___

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Dong-hee Na
Dong-hee Na added the comment: No crash at Python 3.7.2+ (heads/3.7:47290e7642, Jan 20 2019, 12:22:44) and master branch -- nosy: +corona10 ___ Python tracker ___

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Eric Fahlgren
Eric Fahlgren added the comment: After a bit more digging, it's a side effect of having the locale set with 'Plural-Forms'. I've attached the resulting .mo file, but since it's a binary, I'm not sure it will work cross-platform, so here's how to recreate it. > cat en_US/LC_MESSAGES/foo.po m

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Anthony Sottile
Anthony Sottile added the comment: Can you provide a reproducer? I'm having difficulty reproducing with this script: import argparse p = argparse.ArgumentParser() p.add_argument('--foo', nargs=None) args = p.parse_args() $ python3.7 --version Python 3.7.2 $ python3.7 t.py --foo usage: t.py

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Eric Fahlgren
New submission from Eric Fahlgren : When argparse is configured with an option that takes arguments, then the script is invoked with the switch but no arguments, a nonsensical exception is raised during gettext processing. In the 3.7.1 source, the error is at line 2077 of argparse.py, where

[issue35785] argparse crashes in gettext when processing missing arguments

2019-01-19 Thread Eric Fahlgren
Change by Eric Fahlgren : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt