[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: Thanks Ned and everyone! It turns out that Ned was correct and it works fine now that I followed his instructions. -- ___ Python tracker ___ __

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: Er, make that: sudo port install py34-readline -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: OK, thanks, now we're getting somewhere! From the pathname (/opt/local/bin), I assume you are using the Python 3.4 from MacPorts and from the readline docstring that Python 3.4 is linked with BSD libedit rather than GNU readline. MacPorts supplies its own, newer

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: I am in a standard Terminal session. I have a symbolic link for python 3.4: /usr/bin/python -> /opt/local/bin/python3.4 so I can run python... or the following: $ /opt/local/bin/python3.4 -c 'import sys;print(sys.version)' 3.4.2 (default, Oct 22 2014, 01:08:11) [GCC

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: You've already answered this but since I've already typed it: one possible pitfall here is the automatic smart quotes feature of the OS X text system which may or may not be a factor depending on which programs are in use. You can disable smart quotes in: System P

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: I noticed they are smart quotes and came back to see David already mentioned it. As for Demian's question: 2.7.6: >>> print("{’Test’}") {’Test’} 3.4.2: >>> print("{Test}") {Test} It is upon paste that the quotes are lost. I'm on OSX 10.10.2 as well. --

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: I'm on OSX 10.10.2. Simply copy/pasting the line into both terminal and iterm yields >>> [“Test”][‘Test’] File "", line 1 [“Test”][‘Test’] ^ SyntaxError: invalid character in identifier >>> [“Test”][‘Test’] File "", line 1 [“Test”][‘Test’]

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread R. David Murray
R. David Murray added the comment: Those aren't actually quote marks, at least as you've cut and pasted them. They are "smart quotes", which are not something Python recognizes outside of properly quoted strings. That doesn't explain why they disappear, though, you should just get a syntax e

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
New submission from Jeff Doak: On MacBook. Copy/paste the following line into 3.4.2 interpreter session: [“Test”][‘Test’] Results in: [Test][Test] Same paste into 2.7.6 is as expected: [“Test”][‘Test’] -- components: Macintosh messages: 237389 nosy: Jeff Doak, ned.deily, ronaldoussoren