[IronPython] Interactive banner on IronPython 1.0.1

2006-10-09 Thread Sanghyeon Seo
IronPython 1.0.1 prints: IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42 on startup. Shouldn't it print: IronPython 1.0.1 (...) or something like that instead? -- Seo Sanghyeon ___ users mailing list users@lists.ironpython.com http://lists.ironpyt

Re: [IronPython] Word and MissingMemberException, 'tuple' object has no attribute 'SaveAs

2006-10-09 Thread Martin Maly
The problem is that app.Documents.Open returns multiple values (in addition to regular return value, there are others either via ref or out parameters). This is what IronPython translates into tuples. This is quite common construct in Python: def multiple(): return 1, "hello", 4.5 i, s, f

Re: [IronPython] int() and long() incompatibility

2006-10-09 Thread Dino Viehland
Thanks for the bug report Seo. I've opened CodePlex bug #4197 to track this (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=4197). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo Sent: Monday, October 09, 2006

Re: [IronPython] Limitations of PythonEngine.CreateMethod?

2006-10-09 Thread Dino Viehland
Thanks for the report - this sounds like a bug. I suspect we're not creating the function w/ the proper environment in this case, but I haven't had a chance to investigate. I've opened CodePlex bug #4196 for this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [IronPython] FePy TODO

2006-10-09 Thread Mark Rees
Looks good. If you want, I am happy to write up 2 items of documentation: * How to get .NET DB connection from Python DB connection. * How to set up WSGI within ASP.NET.Is ReST is the preferred format? MarkOn 10/10/06, Miguel de Icaza <[EMAIL PROTECTED]> wrote: Hello,> Today I sat down and wrote

Re: [IronPython] help() on bound methods

2006-10-09 Thread Dino Viehland
Thanks for the bug report. I've filed this as bug #4190 (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=4190) . -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo Sent: Sunday, October 08, 2006 4:38 AM To: Discus

Re: [IronPython] Word and MissingMemberException, 'tuple' object has no attribute 'SaveAs

2006-10-09 Thread Peter Frey
Problem is solved now. The Tuple I get behaves indeed like a Python tuple, so I can use myDoc[0] and invoke the SaveAs operation on that.Irritation was that the CLR debugger does not allow to evaluate python expressions like myDoc[0],what is rather unexpected when used to a Python editor like WingI

Re: [IronPython] Using 3rd party Python modules

2006-10-09 Thread André Körbes
Ok, thanks!2006/10/9, Simon Dahlbacka <[EMAIL PROTECTED]>: Is there a way to use these modules [VideoCapture, PIL] on IronPython? No, as of now IronPython does not support dll:s/pyd:s (which are the same thing). And this support is unlikely to appear in a near future due to implementation problems,

Re: [IronPython] IronPython codec names not compatible with CPython

2006-10-09 Thread Dino Viehland
Encodings appears to be a special module that gets imported by CPython on startup. It appears to get imported even if you startup and disable reading site.py on CPython. Currently IronPython has no dependencies on the standard CPython library and we didn't want to add one just for this. The m

Re: [IronPython] Using 3rd party Python modules

2006-10-09 Thread Simon Dahlbacka
Is there a way to use these modules [VideoCapture, PIL] on IronPython? No, as of now IronPython does not support dll:s/pyd:s (which are the same thing). And this support is unlikely to appear in a near future due to implementation problems, so your best bet is to find pure python modules that does

Re: [IronPython] changing c# var values in IP

2006-10-09 Thread Kevin Gadd
I suggest making the following changes:Make idL a public memberPlace frmStart in a variable instead of idL itself (I am pretty sure setvariable isn't making a reference to your variable, just to the value of it) So something like...public string idL;...engine.SetVariable("frm", this);...frm.idL = "

[IronPython] Using 3rd party Python modules

2006-10-09 Thread André Körbes
Hi everybody,I'm new to IronPython and have a little knowledge using Python, but I have some experience with C# and the .Net Framework. I'm trying to develop an application to capture a webcam frame, process it and display some results. The point is that I want to use some common and very practical

Re: [IronPython] Visual Studio Integration

2006-10-09 Thread Martin Smith
I get the same error.  I’ve tried a few times (installing a few different versions of the sdk over the last few months) and never actually gotten it to work.  There always seems to be one error or another.  I there was just a (small) msi that would let it work properly.   Martin  

[IronPython] Word and MissingMemberException, 'tuple' object has no attribute 'SaveAs

2006-10-09 Thread Frey576
Hi, I am new to IronPython but have a couple of years experience with Python. Currently I am stuck with a problem trying to open a Word document (WordML) and saving it as .rtf back to disk The exception I get upon call of myDoc.SaveAs is: MissingMemberException, 'tuple' object has no attribute

[IronPython] changing c# var values in IP

2006-10-09 Thread ANNA CHAPOVALOV
Hi all,I'm a newbee in IP, so sorry if i ask (maybe) dumb questionsI'm using IP for scripting in a c# app. I have something like this:public partial class frmStart : Form    {  string idL;   ..  ..  private void frmStartBatch_Load(object sender, EventArgs e)    {

Re: [IronPython] FePy TODO

2006-10-09 Thread Miguel de Icaza
Hello, > Today I sat down and wrote down TODO list. > https://svn.sourceforge.net/svnroot/fepy/TODO > > Ideally, I would finish most tasks on the list rather soon and push > the next IPCE release. I hope so... > > Anything I missed? Regarding the Mono bugs: let us know what pending issues Mono

[IronPython] Float index incompatibility

2006-10-09 Thread Sanghyeon Seo
Python 2.4.4c0 (#2, Oct 2 2006, 00:57:46) [GCC 4.1.2 20060928 (prerelease) (Debian 4.1.1-15)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> l = [0] >>> l[0.5] Traceback (most recent call last): File "", line 1, in ? TypeError: list indices must be integers

Re: [IronPython] int() and long() incompatibility

2006-10-09 Thread Floris van Nee
Yeh, I thought of that as well (a few days ago actually ;)), but that doesn't work in CPython as well. To my knowledge the 0x prefix is only used to indicate it's a hexadecimal number, so I too thought why I had to give 16 as an argument as well. But that's not really in the scope of this list, as

[IronPython] FePy TODO

2006-10-09 Thread Sanghyeon Seo
Today I sat down and wrote down TODO list. https://svn.sourceforge.net/svnroot/fepy/TODO Ideally, I would finish most tasks on the list rather soon and push the next IPCE release. I hope so... Anything I missed? -- Seo Sanghyeon ___ users mailing list

Re: [IronPython] int() and long() incompatibility

2006-10-09 Thread J. Merrill
I'm wondering if   int('0x20')   (without the explicit radix value 16) should work.  Doesn't the '0x' prefix mean that it's a hex number, radix 16, unambiguously? OTOH, I would not expect   int('033')   to interpret the value as if the radix is 8, because the "leading 0 means octal" convention is

Re: [IronPython] Build/Install the SDK?

2006-10-09 Thread J. Merrill
The most obvious possibility is that you have an "express edition" of VS; that is not an extendible version (it won't load "integration packages" like the one IronPython provides). See if this answers your questions or solves your problems. http://blogs.msdn.com/aaronmar/archive/2006/02/16/

Re: [IronPython] int() and long() incompatibility

2006-10-09 Thread Floris van Nee
I just checked it myself to see what works and what doesn't. You're right that it doesn't work when putting '0x' in front of it. However, when I just do int('20', 16) it returns 32, which is correct.   It is a bit weird though, that int(hex(20), 16) returns an error and I think that should be fixed

[IronPython] int() and long() incompatibility

2006-10-09 Thread Sanghyeon Seo
>>> int('0x20', 16) ValueError: invalid integer number literal Same for long. Python library reference isn't clear on this point, but my reading doesn't support this misfeature since one can use radix 0 to the same effect. Anyway, there are codes out there depending on this. :( -- Seo Sanghyeon