Thread: [PyCrust] Re: Great PyCrust and Great Unicode
Brought to you by:
pobrien
From: <po...@or...> - 2003-03-19 13:04:30
|
"Massa, Harald" <har...@su...> writes: > Patrick, >=20 > have you allready been complemented on how great it is to use PyCrust to = do > MS-COM develepment? No. This is a first. > It is really phantastic: if I instantiate a COM-Object (let's say an > Excel-Spreadsheet)=20 > xlw=3DExcel.Aplication() > With a lot of "subobject" in the COM-Tree PyCrust really displays the > Method-Names INCLUDING the named Parameters from Excel / Word Object mode= l! > that is MORE THAN GREAT. Even Microsofts own development tools don't prov= ide > this in this quality. Cool. > Do you use PyCrust for COM-Develepment? I am thinking about entering a > speech-proposal for Europython concerning Python in business, and the gre= at > ease of COM-Development with Python and the additional help of PyCrust > should be in it - but if you are planning to speek about sth. similiar I > would be in the audience :-) I've not done any COM using PyCrust or Python for that matter. I'm in the US and I'm not attending this EuroPython so please feel free to enter a proposal. > Big compliments! Thanks! > With Unicode there is a bug in pycrust: I type the following letters > >>>datei=3D"c:/test/n=E4senb=F6r. > in Pycrust, and with typing the "." dot, autocomplete tries to jump in an= d: >=20 > Traceback (most recent call last): > File "C:\Python22\Lib\site-packages\wxPython\lib\PyCrust\shell.py", line > 523, in OnKeyDown > self.processLine() > File "C:\Python22\Lib\site-packages\wxPython\lib\PyCrust\shell.py", line > 742, in processLine > self.push(command) > File "C:\Python22\Lib\site-packages\wxPython\lib\PyCrust\shell.py", line > 824, in push > self.more =3D self.interp.push(command) > File "C:\Python22\Lib\site-packages\wxPython\lib\PyCrust\interpreter.py= ", > line 62, in push > command =3D str(command) # In case the command is unicode. > UnicodeError: ASCII encoding error: ordinal not in range(128) >=20 > fails terrible.=20 >=20 > This happens if site.py is on the default: > encoding =3D "ascii" # Default value set by _PyUnicode_Init() >=20 > changing it to > encoding =3D "UTF-8"=20 >=20 > stopps this error from appearing. >=20 > International characters ... causing as many problems then international > ways of life, aren't they? >=20 > If I find a fix, I will pass it to you. That would be great. I don't fully understand these international issues. I'm copying this to the PyCrust mailing list. I hope you don't mind. That way someone else might be able to offer a solution. If you'd like to join the list the details are here: http://lists.sourceforge.net/lists/listinfo/pycrust-users > Thank you very much for this great tool, You're most welcome. It's nice to hear from you. --=20 Patrick K. O'Brien Orbtech http://www.orbtech.com/web/pobrien ----------------------------------------------- "Your source for Python programming expertise." ----------------------------------------------- |