[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-03 Thread Tim McDonough
Tim McDonough added the comment: Yes, there are wrapper scripts on my system. My system was updated from 3.3 to 3.6. The 3.3 and 3.6 wrappers are equivalent and similar to the python2.7 wrapper as shown: exec -a `dirname $realpath`/python2.7 `dirname $realpath`/python2.7.real "$@" exec

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-03 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: @Tim Is it possible that 'python3' in your command refers to some wrapper which forwards its arguments to real Python in a wrong way? -- nosy: +izbyshev ___ Python tracker

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can reproduce this problem when use double quotes as both outer and internal quotes. $ echo -n '{"A":"a"}' | python3 -c "import sys,json; j=json.load(sys.stdin); print(j["A"])" Traceback (most recent call last): File "", line 1, in NameError: name

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: I cannot reproduce this problem with exactly Python 3.6.3. This may be some strange situation specific to your configuration, which should be supported to RedHat. -- nosy: +benjamin.peterson ___ Python tracker

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34874] Python 3.6.3 command script wrapped in single quotes produces NameError: name 'A' is not defined

2018-10-02 Thread Tim McDonough
New submission from Tim McDonough : I found an odd behavior that seems to be limited to Python 3.6.3. Python 3.6.3 command scripts seem to prefer wrapping in double quotes instead of single quotes. Here is an example of the error. $ echo -n '{"A":"a"}' | python3 -c 'import sys,json;