UnicodeEncodeError in compile
Using python 3.2 in Windows 7 I am getting the following: >>compile('pass', r'c:\temp\工具\module1.py', 'exec') UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character Can anybody explain why the compile statement tries to convert the unicode filename using mbcs? I know that sys.getfilesystemencoding returns 'mbcs' in Windows, but I thought that this is not used when unicode file names are provided. -- http://mail.python.org/mailman/listinfo/python-list
Re: UnicodeEncodeError in compile
On Wednesday, January 11, 2012 5:50:51 AM UTC+2, Terry Reedy wrote: > On 1/10/2012 3:08 AM, Terry Reedy wrote: > Is this a filename that could be an actual, valid filename on your system? Yes it is. open works on that file. > Good question. I believe this holdover from 2.x should be deleted. > I argued that in http://bugs.python.org/issue10114 > (which was about a different problem) and now, directly, in > http://bugs.python.org/issue13758 > Maybe the example of this question can be added to the issue 13785 as a proof that compile fails on valid file names. But I think the real issue is why on modern Windows systems the file system encoding is mbcs. Shouldn't it be utf-16? -- http://mail.python.org/mailman/listinfo/python-list
Re: UnicodeEncodeError in compile
Indeed, on Windows NT the file system encoding should not be mbcs, since it creates UnicodeEncodeErrors on perfectly valid file names. -- http://mail.python.org/mailman/listinfo/python-list
Re: XSLT speed comparisons
Jordan wrote: > If your using python 2.4.3 or essentially any of the 2.3, 2.4 series, > i'd test out PyScripter as an IDE, it's one of the best that I've used. > Unfortunately, they have yet to fully accomedate 2.5 code (you can > still write 2.5 code with almost no problems, but you won't be able to > use a 2.5 interactive interpeter). An unofficial update supporting Python 2.5 is available at pyscripter.googlepages.com and an offical release is coming real soon. -- http://mail.python.org/mailman/listinfo/python-list
Re: Re:A python IDE for teaching that supports cyrillic i/o
Kirill Simonov wrote: > PyScripter does, indeed, look nice, but unfortunately it appeared to > have similar issues with cyrillic support. Thank you anyway for the > suggestion. What are the issues? PyScripter offers full support for utf-8 encoded files and PEP-263. The editor internally is unicode based.Please read the PyScripter help topic "Encoded Python Source Files", paying special attention to the last paragraph, and if you follow the guidelines you should have no problem with cyrillic or other encodings. If you have problems email [EMAIL PROTECTED] for support. -- http://mail.python.org/mailman/listinfo/python-list
Re: favourite editor
A beta version of PyScripter with remote debugging is actually out. See http://pyscripter.googlepages.com/ and http:// pyscripter.googlepages.com/remotepythonengines for details. Ο/Η Stef Mientki έγραψε: > azrael wrote: > > I expirienced some big craches. tra running some aplication vith using > > Vpython. when you close the vpython window, pyscripter also crashes. > > sometimes im writing some code and suddenly get about 300 error > > messages without running anything. I like pyscripter, but sometimes it > > drives me crazy > did you read the help file: > if you use a GUI platform (e.g. tknter, wxpython etc.). As the help file > says under the topic > "known issues" you should not run or debug such scripts internally. Instead > use the > Run, External Run command. > > and form the author of PyScripter jan-2007: > I hope that such problems will be resolved when I release the remote > debugging facility, which > should happen quite soon. > > cheers, > Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list
Re: pyscripter
On Feb 15, 12:41 am, Gigs_ <[EMAIL PROTECTED]> wrote: > How to change syntax color inpyscripterfor python interpreter? > > I have change color in tools>options>editor options and everything is > fine till restartpyscripter. > After restart only in module is good syntax color, but in interpreter is > back to default. > > thx This is a bug in PyScripter that was fixed in version control. The fix will be available in the next version. Workaround: After starting Pyscripter, go to Tools, Option, Editor Options and press OK. This will apply your syntax highlighting changes to the interpreter window. -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a good Python environment
On Nov 7, 6:50 pm, Paul Rubin <http://[EMAIL PROTECTED]> wrote: > "Colin J. Williams" <[EMAIL PROTECTED]> writes: > > > Could you elaborate on "lightweight" please? I findPyScripterto be a > > powerful editor/debugger combination. > > > What functionality does Eclipse have thatPyScripterdoes not? > > While we're at it, do any of these debuggers implement a good way to > debug multi-threaded Python programs? PyScripter (http://pyscripter.googlepages.com) debugging is based on the standard Python debugger bdb.py which does not currently support multi-threaded debugging (only the main thread can be debugged). One debugger with such support is Winpdb. PyScripter may integrate Winpdb in the future. However PyScripter does support debugging of GUI (e.g. Tkinter, WxPython) applications with remote debugging. -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for a good Python environment
PyScripter provides integrated version control, via TortoiseSVN or TortoiseCVS and the File Explorer. On Nov 10, 11:21 am, jwelby <[EMAIL PROTECTED]> wrote: > On Nov 7, 12:42 pm, "Colin J. Williams" <[EMAIL PROTECTED]> wrote: > > > jwelby wrote: > ... > > > > I currently use Python Scripter as a lightweight editor for Windows. > > > Could you elaborate on "lightweight" > > please? I findPyScripterto be a > > powerful editor/debugger combination. > > > What functionality does Eclipse have > > thatPyScripterdoes not? > > > Colin W. > > This is a fair question. I didn't phrase my post too well. > > I findPyScripterdoes pretty much everything I need in terms of doing > actual development for Python. My use of 'lightweight' is by no means > a criticism ofPyScripter- it's more of a compliment, as it refers to > the relatively modest demands that it makes on my system compared with > Eclipse, which can be hog. > > The main reason I have used Eclipse for larger, team based, projects > is for the source control plug-ins. Eclipse has plug-in support for > cvs and svn.PyScriptermay have this too - perhaps I've missed it. > (I'm away from my Windows box at the moment, otherwise I would check). > Of course, there are other ways to implement source control without it > needing to be integrated in the IDE, so even this need not put off > anyone who wants to usePyScripterwith source control. > > Summary - unless you need the added flexibility offered by Eclipse > plug-ins,PyScripteris a great tool for developing with Python on > Windows. > > > > > > For project work I use Eclipse, which can be installed with PyDev and > > > other useful plug-ins already included if you choose a suitable > > > distribution of Easy Eclipse (http://www.easyeclipse.org/). There is a > > > distribution specifically for Python development, and also one for > > > LAMP, which includes a number of other components which will be of use > > > if you are developing for the web. -- http://mail.python.org/mailman/listinfo/python-list
Python IDE PyScripter v1.9.9.7 released
PyScripter version 1.9.9.7 has been released at http://pyscripter.googlecode.com. PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Being built in a compiled language is rather snappier than some of the other Python IDEs and provides an extensive blend of features that make it a productive Python development environment. This release provides compatibility with Python 3.1. Also in this release PyScripter has been given a complete facelift based on an updated theme engine which supports customizable themes (see http://code.google.com/p/pyscripter/wiki/Customization). As usual this release features an assortment of bug fixes and some speed improvements. The full history can be found at http://code.google.com/p/pyscripter/wiki/History. -- http://mail.python.org/mailman/listinfo/python-list
Re: Light on Dark screen for Spe or Pyscripter
On Oct 10, 7:48 am, flebber wrote: > On Oct 9, 3:54 pm, flebber wrote: > > > I was hoping someone knew how to setup pyscripter or Spe ide's with > > light on dark windows. I start to have trouble reading the nomal dark > > on light screens after any lengthy period. > > > I have seen several screenshot showing emacs with python setup with > > awesome light on dark terminals but seems you need a degree in itself > > to get emacs and python working on windows with full features. > > Pyscripter does have a selectable theme option in its options menu. > However seems to only relate to syntax colours and highlighting, > doesn't seem to allow changing theme to light on dark. > > Anyhow still a good ide. In Pyscripter try View, Themes, EOS Further dark theme at http://www.mytreedb.com/downloads/m-subcat/a-skins.html (you need to download the archive and place the skin file at %APPDATA%/ pyscripter/skins) Dark hihglighters at http://code.google.com/p/pyscripter/wiki/Customization (download and import into PyScripter via View, Options, Import/Export) Finally you can create your own skin using the skin editor at http://www.silverpointdevelopment.com/skineditor/index.htm -- http://mail.python.org/mailman/listinfo/python-list
Re: Light on Dark screen for Spe or Pyscripter
On Oct 11, 1:51 am, PyScripter wrote: > In Pyscripter try View, Themes, EOS > Further dark theme athttp://www.mytreedb.com/downloads/m-subcat/a-skins.html > (you need to download the archive and place the skin file at %APPDATA%/ > pyscripter/skins) > > Dark hihglighters athttp://code.google.com/p/pyscripter/wiki/Customization > (download and import into PyScripter via View, Options, Import/Export) > > Finally you can create your own skin using the skin editor > athttp://www.silverpointdevelopment.com/skineditor/index.htm See http://code.google.com/p/pyscripter/wiki/Screenshot9 for a dark look example -- http://mail.python.org/mailman/listinfo/python-list