Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python consoles don't accept non-ascii unicode characters as first characters in input calls or variable names #2100

Closed
spyder-bot opened this issue Feb 17, 2015 · 5 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2015-01-01T16:22:47Z

Spyder Version: 2.3.2
Python Version: 3.4.2
Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Darwin
pyflakes >=0.6.0: 0.8.1 (OK)
pep8 >=0.6 : None (NOK)
IPython >=0.13 : 2.3.1 (OK)
zmq >=2.1.11 : 14.4.1 (OK)
pygments >=1.6 : 2.0.1 (OK)
pandas >=0.13.1 : 0.14.1 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.1.1 (OK)
rope >=0.9.2 : 0.9.4-1 (OK)
matplotlib >=1.0: 1.4.0 (OK)
sympy >=0.7.0 : 0.7.5 (OK)
pylint >=0.25 : None (NOK)

What steps will reproduce the problem?

a_string = input("Enter a string: ")
Enter a string: abcαβγ

a_string
'abcαβγ'
b_string = input("Enter a string: ")
Enter a string: αβγabc
b_string
'abc'

What is the expected output? What do you see instead?

a_string gives the expected output
I expected b_string to be αβγabc

Please provide any additional information below

. this does not happen in other IDEs (they have the expected output for b_string)

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2100

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-01T14:03:08Z

I don't know what happens with non-ascii chars but they are not accepted by our Python consoles as first characters in input calls and as variable names too. I noticed this bug sometime ago but I've been unable to fix it.

And please, for the next time, wait until we give you an answer here before posting in StackOverflow. Doing more noise and making us waste our time it's not going to solve your problems faster.

In the mean time, I'd suggest you to install and use the IPython console.

Summary: Python consoles don't accept non-ascii unicode characters as first characters in input calls or variable names (was: input() truncates leading non-ascii unicode )
Status: Accepted
Labels: MS-v2.3.3 Cat-Console

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2015-01-01T14:38:57Z

it was stackoverflow that informed me that it was a spyder problem, rather than a mac, anaconda, or python3 problem, or something I was doing wrong. I don't mean to waste anyone's time. if you want to answer the question with "this is a known problem", that would be fine.

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-01T14:45:56Z

Don't worry about it, sometimes it's just annoying to see things reported in two different places, to both which I'm the only one that's giving an answer.

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-08T15:00:52Z

Labels: -MS-v2.3.3 MS-v2.4

@ccordoba12 ccordoba12 modified the milestones: v3.1, v3.0 Jul 13, 2015
@ccordoba12 ccordoba12 removed this from the todo milestone Jun 25, 2017
@ccordoba12
Copy link
Member

Closing because the Python console is going to be removed in Spyder 3.2.

Please see issue #4524 for our reasons to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants