Re: [IronPython] how to change default encoding of string and file at runtime?

2005-12-27 Thread Dino Viehland
Cool, then obviously it's just a bug and we'll need to support this and I think there'll be no problems getting this in the next release. Thanks for pointing that out. From: [EMAIL PROTECTED] On Behalf Of Seo Sanghyeon Sent: Tuesday, December 27, 2005 7:

Re: [IronPython] how to change default encoding of string and file at runtime?

2005-12-27 Thread Seo Sanghyeon
On Tue, Dec 27, 2005 at 04:57:32PM -0800, Dino Viehland wrote: > This is an interesting issue... If I take your same code and run it > on CPython it raises an exception: (snip) Actually, this works when you set "defaultencoding". $ python Python 2.3.5 (#2, Nov 20 2005, 16:40:39) [GCC 4.0.3 20051

[IronPython] how to change default encoding of string and file at runtime?

2005-12-27 Thread opin2 hu
I run IronPython0.9.6 in Win2000, System Default encoding is GBK( simplified Chinese ) in IronPythonConsole: a= u'\u6211\u4eec' print a f = open("1.txt", "w") f.write( a ) f.close() open the file, only "??" in 1.txt I grep "Encoding.ASCII" in source files, then replace "Encoding.ASCI

Re: [IronPython] Small formatting bug

2005-12-27 Thread Dino Viehland
Thanks for the bug report.  We know the string formatter is currently lacking but we’ve been treating it as a lower priority and have been extending it on an as-needed basis.  But now that you’ve brought this to our attention we should be able to get this one fixed for the next release. 

Re: [IronPython] how to change default encoding of string and file at runtime?

2005-12-27 Thread Dino Viehland
This is an interesting issue... If I take your same code and run it on CPython it raises an exception: a= u'\u6211\u4eec' f = open('1.txt', 'w') f.write(a) Traceback (most recent call last): File "", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordin

[IronPython] Small formatting bug

2005-12-27 Thread Kirk Olynyk
At the console prompt type:   “%10d” % (1)   It is not formatted as in CPython.   Cheers   Kirk ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] [Simpy-users] Simpy not working on IronPython because of type(generator) problem

2005-12-27 Thread Klaus Muller
Stan, The simplest solution for the moment is to take out that test. If one calls activate with a non-generator parameter, it will just bomb out later. No problem! Klaus > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Stanislas Pinte > Sent: Wed

Re: [IronPython] Experience installing IP with the new WPF CTP

2005-12-27 Thread Martin Maly
Hi Iain, What an interesting coincidence. I just finished a sweep through the tutorial, updating it with the new Avalon samples that work with the December CTP. The WinFX has changed substantially between the September and December CTPs. You pretty much found the right solutions to all roadbloc

[IronPython] Experience installing IP with the new WPF CTP

2005-12-27 Thread Iain Mackay
I ran into several problems running the first Avalon example from the tutorial, using IP 0.9.6 I should mention that at this time I was running .net Framework 2.0 and the Dec 2005 CTP preview of WPF x64 versions without the Framework SDK; installing the SDK subsequently did not change the behaviou

Re: [IronPython] IronPython is leaking

2005-12-27 Thread Dino Viehland
Regarding the FunctionCall / FrameCode change... This is great feedback. One of the work items we have before the next release is to review & better define the public API surface. Any other feedback you (or anyone else) have on this would be great. Ultimately the public API surface should all

Re: [IronPython] Simpy not working on IronPython because of type(generator) problem

2005-12-27 Thread Fredrik Lundh
J. Merrill wrote: > I have not checked if that would work (in either current CPython or > IronPython), > and if it does that's what should be in simpy -- but isinstance wasn't added > until > 2.2 (I think) and simpy was probably built before that. you got that backwards: GeneratorType was added