Hi Andreas Schmid
The error you mentioned may be less obvious that it seems
first.
You pointed out the line:
command = str(command)
as the source of the error. This could be the reason in that
case. Unfortunately, there are other potential causes, that
make PyShell not working. I do not want to discuss this now.
I saw, you are using a win32 platform. Would you be so
kind and test psi? Pages Persos Chez.com
I understand PyShell quite very well. I am interested
in how psi reacts on your platform. Compared to PyShell,
psi has a different char handling procedure and it also
has a different "python engine".
psi come in two flavours: as Python script and as an
exe for windows. I suggest to test both. If psi.py
depends on your actual wxPython version, psi.exe
is frozen for a given wxPython version.
In both version, psi should work like this:
ä
File "<psi-last-command>", line 1
ä
^
SyntaxError: invalid syntax
while IDLE reacts like this:
ä
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
ä
NameError: name 'ä' is not defined
Other intersting questions:
- Are you using a german keyboard?
- If yes:
I do not know this keyboard. How do you enter
chars with Umlaut? Is this a dead key like on
my swiss keyboard or is this a "single" key?
- Is Alt+0228 working?
Thanks in advance.
Jean-Michel Fauth, Switzerland
Hi Jean-Michel,
Psi is by far the best interactive python shell I have used so far.
For those who haven't given it a try yet: It is extremely responsive, has excellent syntax highlighting (including the display of whitespace and blue arrows which separate commands from output) and very handy features, like the dialogs that appear when you use raw_input & input. The ability to execute previously entered commands again (command history) and the ability to save different parts of the interactive session to disk make it my new favorite shell! It even has its own editor that can easily be launched and which inserts the correct encoding at the top of the file automatically. Oh, and if you copy parts of the session to the clipboard, you don't have to strip prompt characters (e.g. >>>) afterwards, because in Psi, they are not part of the session (but separate visual indicators).
That being said: It handles Umlauts perfectly:
Psi:
···
####
"ä"
ä
ä
File "<psi-last-command>", line 1
ä
^
SyntaxError: invalid syntax
PyShell:
#######
"ä"
'\xc3\xa4'
ä
( hangs)
Keep up the excellent work!
-Andreas
----- Original Message ----- From: "Jean-Michel Fauth" <jmfauth@bluewin.ch>
To: <wxPython-users@lists.wxwindows.org>
Sent: Friday, March 25, 2005 6:46 PM
Subject: Re: [wxPython-users] PyShell + Umlauts
Hi Andreas Schmid
The error you mentioned may be less obvious that it seems
first.
You pointed out the line:
command = str(command)
as the source of the error. This could be the reason in that
case. Unfortunately, there are other potential causes, that
make PyShell not working. I do not want to discuss this now.
I saw, you are using a win32 platform. Would you be so
kind and test psi? Pages Persos Chez.com
I understand PyShell quite very well. I am interested
in how psi reacts on your platform. Compared to PyShell,
psi has a different char handling procedure and it also
has a different "python engine".
psi come in two flavours: as Python script and as an
exe for windows. I suggest to test both. If psi.py
depends on your actual wxPython version, psi.exe
is frozen for a given wxPython version.
In both version, psi should work like this:
ä
File "<psi-last-command>", line 1
ä
^
SyntaxError: invalid syntax
while IDLE reacts like this:
ä
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
ä
NameError: name 'ä' is not defined
Other intersting questions:
- Are you using a german keyboard?
- If yes:
I do not know this keyboard. How do you enter
chars with Umlaut? Is this a dead key like on
my swiss keyboard or is this a "single" key?
- Is Alt+0228 working?
Thanks in advance.
Jean-Michel Fauth, Switzerland
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
Oh and I use a German keyboard with no dead keys (ö and ä are next to the L-key and have their own keys) and Windows XP.
-Andreas
···
----- Original Message ----- From: "Andreas Schmid" <monkey@gmx.info>
To: <wxPython-users@lists.wxwidgets.org>
Sent: Friday, March 25, 2005 7:24 PM
Subject: Re: [wxPython-users] PyShell + Umlauts
Hi Jean-Michel,
Psi is by far the best interactive python shell I have used so far.
For those who haven't given it a try yet: It is extremely responsive, has excellent syntax highlighting (including the display of whitespace and blue arrows which separate commands from output) and very handy features, like the dialogs that appear when you use raw_input & input. The ability to execute previously entered commands again (command history) and the ability to save different parts of the interactive session to disk make it my new favorite shell! It even has its own editor that can easily be launched and which inserts the correct encoding at the top of the file automatically. Oh, and if you copy parts of the session to the clipboard, you don't have to strip prompt characters (e.g. >>>) afterwards, because in Psi, they are not part of the session (but separate visual indicators).
That being said: It handles Umlauts perfectly:
Psi:
####
"ä"
ä
ä
File "<psi-last-command>", line 1
ä
^
SyntaxError: invalid syntax
PyShell:
#######
"ä"
'\xc3\xa4'
ä
( hangs)
Keep up the excellent work!
-Andreas
----- Original Message ----- From: "Jean-Michel Fauth" <jmfauth@bluewin.ch>
To: <wxPython-users@lists.wxwindows.org>
Sent: Friday, March 25, 2005 6:46 PM
Subject: Re: [wxPython-users] PyShell + Umlauts
Hi Andreas Schmid
The error you mentioned may be less obvious that it seems
first.
You pointed out the line:
command = str(command)
as the source of the error. This could be the reason in that
case. Unfortunately, there are other potential causes, that
make PyShell not working. I do not want to discuss this now.
I saw, you are using a win32 platform. Would you be so
kind and test psi? Pages Persos Chez.com
I understand PyShell quite very well. I am interested
in how psi reacts on your platform. Compared to PyShell,
psi has a different char handling procedure and it also
has a different "python engine".
psi come in two flavours: as Python script and as an
exe for windows. I suggest to test both. If psi.py
depends on your actual wxPython version, psi.exe
is frozen for a given wxPython version.
In both version, psi should work like this:
ä
File "<psi-last-command>", line 1
ä
^
SyntaxError: invalid syntax
while IDLE reacts like this:
ä
Traceback (most recent call last):
File "<pyshell#0>", line 1, in -toplevel-
ä
NameError: name 'ä' is not defined
Other intersting questions:
- Are you using a german keyboard?
- If yes:
I do not know this keyboard. How do you enter
chars with Umlaut? Is this a dead key like on
my swiss keyboard or is this a "single" key?
- Is Alt+0228 working?
Thanks in advance.
Jean-Michel Fauth, Switzerland
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org