[IronPython] fake _codecs for IronPython

2006-02-07 Thread Sanghyeon Seo
Here you will find _codecs.py for IronPython so that you can use CPython's codecs module unmodified: http://sparcs.kaist.ac.kr/~tinuviel/fepy/lib/ It is definitely incomplete and doesn't perform any error handling at all, but it does reasonable job for most common cases. In particular, you can u

[IronPython] tempfile.mktemp

2006-02-07 Thread Sanghyeon Seo
Currently, tempfile module doesn't import on IronPython for various reasons. If you only need tempfile.mktemp, this should be enough: # tempfile.py import System mktemp = System.IO.Path.GetTempFileName Seo Sanghyeon ___ users mailing list users@lists.ir

Re: [IronPython] Using IronPython classes in C#...

2006-02-07 Thread Dino Viehland
Doh! Yep, I sure did. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of J. Merrill Sent: Tuesday, February 07, 2006 10:11 AM To: Discussion of IronPython Subject: Re: [IronPython] Using IronPython classes in C#... At 12:00 PM 2/7/2006, Dino Viehland wrote

Re: [IronPython] Using IronPython classes in C#...

2006-02-07 Thread J. Merrill
At 12:00 PM 2/7/2006, Dino Viehland wrote (in part) >Unfortunately this isn't an easy problem to solve, so there's on ETA on when >exactly we'd have this support. Did you mean "no ETA" (vs "on ETA")? J. Merrill / Analytical Software Corp ___ users mai

Re: [IronPython] Using IronPython classes in C#...

2006-02-07 Thread Dino Viehland
IronPython does have a compiler but it's not currently exposed. Unfortunately it probably won't do what you want right now. While it is getting compiled as an assembly the methods you define on a class don't show up as being methods in the IL, and your class doesn't show up as a normal class.

Re: [IronPython] Builtin functions are never bound

2006-02-07 Thread Dino Viehland
Thanks for the bug report - we actually still have a little cleanup to do in the area of built-in functions, but it's great to have this one extra edge case on the radar before we get there. I've filed the bug in our database but I'm not entirely sure when we'll get to this one, but hopefully s

[IronPython] Nitpicking:

2006-02-07 Thread William Reade
"lambda" appears to be misspelled here: --- IronPython 1.0.2216 (Beta) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. >>> lambda x : x --- Cheers William -- We're hiring! __

[IronPython] Using IronPython classes in C#...

2006-02-07 Thread meisterli
Hi is it possible to write IronPython classes and use this classes in C# like all other assemblies imported by adding a reference to it? This would imply the ability of IronPython to generate .NET assemblies. Does any one know about that? Thanks Markus _

[IronPython] Builtin functions are never bound

2006-02-07 Thread Sanghyeon Seo
In CPython, there is an assumption that builtin functions are never bound. What an obscure stuff. Hopefully an example would clarify this. # ex.py class C: method = cmp c = C() print c.method(1, 1) $ python ex.py 0 $ ip ex.py Traceback (most recent call last): File __main__, line unknown, i