Re: [IronPython] IronPython / Unicode / os.walk

2007-03-07 Thread Andrew
This is working in IP 1.1b1: C:\IronPython>ipy.exe IronPython 1.1b1 (1.1) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. import sys sys.path.append(r'c:\Python24\Lib') from encodings import codecs codecs codecs.lookup('utf-8') (, , , ) Andrew 2007/3/8, Da

Re: [IronPython] IronPython / Unicode / os.walk

2007-03-07 Thread Dan Shechter
Well, right now (1.0) neither UTF-8, utf-8, utf8 nor utf_8 seem to be working... So I take it there's not much than to sit and wait right now? Does 1.1B1 help me? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland Sent: Wednesday, March 07, 200

Re: [IronPython] Embedding IronPython

2007-03-07 Thread StRyder™
Awesome! Thanks man On 3/7/07, Michael Foord <[EMAIL PROTECTED]> wrote: StRyder™ wrote: > I'm getting a 404 Not Found on the article link. *damn* - copy and paste error. http://www.voidspace.org.uk/ironpython/embedding.shtml Sorry. Fuzzyman -- "I can calculate the movement of the stars,

Re: [IronPython] Embedding IronPython

2007-03-07 Thread Michael Foord
StRyder™ wrote: > I'm getting a 404 Not Found on the article link. *damn* - copy and paste error. http://www.voidspace.org.uk/ironpython/embedding.shtml Sorry. Fuzzyman > > > On 3/7/07, [EMAIL PROTECTED] > * < [EMAIL PROTECTED] > > wrote: >

Re: [IronPython] Embedding IronPython

2007-03-07 Thread StRyder™
I'm getting a 404 Not Found on the article link. On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Embedding IronPython [image: emoticon:black_hat] I've put another IronPython article up. It is a simple example of embedding the IronPython engine into a dotnet application. - Embe

[IronPython] Embedding IronPython

2007-03-07 Thread fuzzyman
{ran_emo} I've put another IronPython article up. It is a simple example of embedding the IronPython engine into a dotnet application. * `Embedding IronPython `_ In this example (taken from the `Tabbed Image Viewer `_) IronPython is embedded in C# t

Re: [IronPython] ValueTypes

2007-03-07 Thread Martin Maly
New value types cannot be defined in IronPython, you can only instantiate and use existing ones. The a[i].x = n does throw and it is not possible to achieve this without replacing the whole array element. Essentially, for IronPython, value types are immutable and they can only be copied as a wh

[IronPython] ValueTypes

2007-03-07 Thread Aaron Leiby
Just started using IronPython - playing with XNA. Digging up a couple old threads: http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2006-May/002265.html http://lists.ironpython.com/htdig.cgi/users-ironpython.com/2005-May/000651.html etc. and http://channel9.msdn.com/wiki/default.aspx/Iro

Re: [IronPython] Metaclass bug?

2007-03-07 Thread Sylvain Hellegouarch
Dino Viehland wrote: > We're actively working on it now and you should see something in Alpha form > by the summer at the very latest. > Thanks :) That does sound promising. - Sylvain ___ users mailing list users@lists.ironpython.com http://lists.iron

Re: [IronPython] Metaclass bug?

2007-03-07 Thread Dino Viehland
We're actively working on it now and you should see something in Alpha form by the summer at the very latest. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sylvain Hellegouarch Sent: Wednesday, March 07, 2007 9:13 AM To: Discussion of IronPython Subjec

Re: [IronPython] Metaclass bug?

2007-03-07 Thread Sylvain Hellegouarch
Dino Viehland wrote: > Thanks for reporting this Sylvain. I believe this is the same or very > similar to bug #7594 > (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7594). > > The good news is that this is fixed in our internal v2.0 branch. The bad > news is the fix was clo

Re: [IronPython] Metaclass bug?

2007-03-07 Thread Dino Viehland
Thanks for reporting this Sylvain. I believe this is the same or very similar to bug #7594 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7594). The good news is that this is fixed in our internal v2.0 branch. The bad news is the fix was close to re-writing the type system

Re: [IronPython] IronPython / Unicode / os.walk

2007-03-07 Thread Dino Viehland
I think we'll also accept utf_8 or utf8. This is basically covered under this bug http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=3094 (although the description doesn't make it entirely obvious). If you could vote on the bug it'd help raise the visibility of the issue and we'

[IronPython] DataGridView and Ironpython

2007-03-07 Thread luismg
I'm having problems with this control. I tried to replicate many examples of datagridview usage from C# to Ironpython, but so far I failed misserably... I wonder if it's currently possible to use this control from ironpython. I tried displaying simple collections (python's, arraylists, generics...)

Re: [IronPython] IronPython / Unicode / os.walk

2007-03-07 Thread John J Lee
On Wed, 7 Mar 2007, Dan Shechter wrote: [...] codecs.lookup("UTF-8") > Traceback (most recent call last): > File , line 0, in ##89 > File , line 0, in Lookup##78 > LookupError: unknown encoding: UTF-8 > > Suggestions, alternatives? Did you try 'utf-8' (i.e. lowercase)? John __

[IronPython] IronPython / Unicode / os.walk

2007-03-07 Thread Dan Shechter
Hi everyone, I'm using IP 1.0 trying to make some CPython code work as expected. I'm trying to write a Unicode string using the following piece of code: (UTF8_encode, UTF8_decode, UTF8_streamreader, UTF8_streamwriter) = codecs.lookup('UTF-8') cache_file_obj = UTF8_streamwriter(open(cache_file , '

[IronPython] Metaclass bug?

2007-03-07 Thread Sylvain Hellegouarch
The following code: class C(object): pass class Meta(type): pass class A(object): __metaclass__ = Meta def __init__(self, e, s): print "__init__ A" def __call__(self, e, s): print "__call__ A" class B(object): def mount(self, c): a = A(c, "") i

Re: [IronPython] windows mobile 5

2007-03-07 Thread Kevin Chu
Can we use Mono Cecil to help IronPython generate code? On 3/7/07, Dino Viehland <[EMAIL PROTECTED]> wrote: Unfortunately the answer is no. We don't work w/ the Compact Framework which is what I believe ships w/ all versions of Windows Mobile. The problem here is that the Compact Framework is