Re: [IronPython] Python Generation

2008-07-01 Thread Tim Riley
Care to share an example? I am very interested in this. On Mon, Jun 30, 2008 at 10:39 PM, Michael Stephens <[EMAIL PROTECTED]> wrote: > Thanks.. I've got a basic example up. > > Michael Stephens > > Electrical Engineering Graduate Student > University of Wyoming > [EMAIL PROTECTED] or [EMAIL PROTE

Re: [IronPython] Problems with Iron Python Studio

2008-06-24 Thread Tim Riley
What's wrong with good old SharpDevelop? If you grab a recent build from the build server it comes with IronPython 1.1, C#, VB.NET, Boo and F# support out of the box. I have been using this for all my .NET development needs. I'm not 100% certain if you can use the .NET debugger with IronPython, and

Re: [IronPython] Setting tb_next

2008-06-13 Thread Tim Riley
Could you use something like Cecil for this? On 6/13/08, Dan Eloff <[EMAIL PROTECTED]> wrote: > It's readonly in Python, and that's the way it's meant to be. But I'm > porting Jinja2 to IronPython (Silverlight hopefully) and Jinja uses > ctypes to dig deep into CPython's guts and make a function

Re: [IronPython] Exporting Python code as an assembly

2008-02-05 Thread Tim Riley
Well don't I feel like a moron. I should have spotted that. I apologize for posting before thinking. On Feb 5, 2008 4:29 PM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > On Feb 5, 2008 1:24 PM, Tim Riley <[EMAIL PROTECTED]> wrote: > > I was testing out the code pro

Re: [IronPython] Exporting Python code as an assembly

2008-02-05 Thread Tim Riley
I was testing out the code provided and when I tested it using the example I got the following error. Note: I'm using IronPython 2.0 Alpha (2.0.0.800) on .NET 2.0.50727.1433 C:\Documents and Settings\TJRiley\Desktop\ClrWrapper>ipy.exe MakeModule.py Xtest.py Traceback (most recent call last):

Re: [IronPython] [python] IronPython Community Edition - FeedParser Weirdness

2007-12-27 Thread Tim Riley
I tested with the svn version of pyexpat you linked to but still no luck. Tim On Dec 27, 2007 6:14 PM, Sanghyeon Seo <[EMAIL PROTECTED]> wrote: > 2007/12/28, Tim Riley <[EMAIL PROTECTED]>: > > Yeah something isn't right. > > Can you try again after updat

Re: [IronPython] [python] IronPython Community Edition - FeedParser Weirdness

2007-12-27 Thread Tim Riley
s', 'iterkeys', 'itervalues', 'keymap', 'keys', 'pop', 'popitem', 'setdefault', 'update', 'values'] 14 ipy.exe output gives me: ['__class__', '__cmp__', '__contains__', '__delitem__

[IronPython] IronPython Community Edition - FeedParser Weirdness

2007-12-27 Thread Tim Riley
I am trying to access my gmail account using the latest IronPython Community Edition (IPY, not IPY2) and the python feedparser library. When I run the following script through python 2.5 everything works great, however when I run it through ipy.exe I get an error. I was wondering if anyone has any

Re: [IronPython] IronPython Studio

2007-12-11 Thread Tim Riley
I just tried and am having the same problem. On Dec 11, 2007 2:16 PM, JoeSox <[EMAIL PROTECTED]> wrote: > On 12/11/07, Fuzzyman <[EMAIL PROTECTED]> wrote: > > Hello all, > > > > My apologies if this has been announced on the list before - but I > > wasn't aware of it. > > > > http://www.codeplex.c

Re: [IronPython] Hosting a python engine inside a windows form from IronPython code.

2007-10-10 Thread Tim Riley
hon I think I have a pretty good handle on what I need to do from my code. Thanks again. Tim On 10/10/07, JoeSox <[EMAIL PROTECTED]> wrote: > On 10/10/07, Tim Riley <[EMAIL PROTECTED]> wrote: > > I am looking for some direction for running a GUI based IronPython > > console

[IronPython] Hosting a python engine inside a windows form from IronPython code.

2007-10-10 Thread Tim Riley
I am looking for some direction for running a GUI based IronPython console from IronPython code. I have found a sample of hosting IronPython in IronPython that Mr. Foord had created but it doesn't help me out with figuring out how to tie it to a RichTextBox. Has anyone done this and if so do they h

Re: [IronPython] Hosting: Delegates from Ironpython to C#

2007-08-30 Thread Tim Riley
not a delegate getting collected issue. > > If that doesn't work then we'll need to go into unmanaged debugging territory > w/ windbg/cdb/ntsd :). > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Riley > Sent: Thursd

Re: [IronPython] Hosting: Delegates from Ironpython to C#

2007-08-30 Thread Tim Riley
the call this shouldn't be an issue but you could set the environment > variable COMPlus_MDA=1 to enable CLR Managed Debugging Assistants to see if > you get any warnings about that firing. I don't really believe this could be > happening but it would be consistent w/ th

Re: [IronPython] Hosting: Delegates from Ironpython to C#

2007-08-30 Thread Tim Riley
On 8/30/07, Dino Viehland <[EMAIL PROTECTED]> wrote: > I think you should be able to just pass a function object to PythonRegister > and it should be converted into a delegate. For example: > > import clr > clr.AddReference('PyAcadDotNet') > from PyAcadDot

[IronPython] Hosting: Delegates from Ironpython to C#

2007-08-29 Thread Tim Riley
I'm embedding IronPython in a C# dll that is hosted inside a program called AutoCAD. In order to register commands in AutoCAD from .NET I need to P/Invoke a C function inside a .dll. I can do this fairly easy from C# but I can't figure out the right way to call my C# wrapper from IronPython to have

Re: [Users] [IronPython] IronPython Attribute Workaround

2007-07-23 Thread Tim Riley
> def _method(self): > some code ... > > I have used this approach with Silverlight assemblies for creating > classes with methods marked with attributes. > > I hope this helps. > > Please no one post this code as is - I'll write up and post an article

Re: [IronPython] IronPython Attribute Workaround

2007-07-23 Thread Tim Riley
t would register the test command so I could call it from the command line. [1] As an example: http://through-the-interface.typepad.com/through_the_interface/2007/07/updating-a-spec.html Tim On 7/23/07, Michael Foord <[EMAIL PROTECTED]> wrote: > Tim Riley wrote: > > Michael: >

Re: [IronPython] IronPython Attribute Workaround

2007-07-23 Thread Tim Riley
Michael: Thanks for the reply. However when reading it my eyes glazed over. Is there any way you could provide a simple man like myself with some example code for me to peruse? Tim On 7/23/07, Michael Foord <[EMAIL PROTECTED]> wrote: > Tim Riley wrote: > > I know that IronPython

[IronPython] IronPython Attribute Workaround

2007-07-23 Thread Tim Riley
I know that IronPython doesn't support attributes but does anyone know of a workaround that will allow IP code to use them? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] cherrypy

2006-12-29 Thread Tim Riley
he cherrypy folder? So if trying to run from the directory where setup.py is found, before that do copy cherrypy\*.* . ? At 03:46 PM 12/27/2006, Tim Riley wrote Copy the cherrypy folder that is in the same folder containing setup.pydirectly into the directory you're trying to run your code

Re: [IronPython] cherrypy

2006-12-27 Thread Tim Riley
Copy the cherrypy folder that is in the same folder containing setup.pydirectly into the directory you're trying to run your code from. You don't need to put it into site packages. On 12/27/06, Ivan Porto Carrero <[EMAIL PROTECTED]> wrote: I'm sorry but if I try that it will always come up with

Re: [IronPython] New Windows Forms Tutorial Entry

2006-12-18 Thread Tim Riley
Michael: Very good stuff. Thank you for taking the time to provide this to the community. ~Tim On 12/17/06, Michael Foord <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > {ran_emo} In celebration of the new IronPython section I've added a new entry to the `Windows Forms Tutorial Series `

Re: [IronPython] one click

2006-11-24 Thread Tim Riley
You don't need to package the IronPython distribution if you compile your code to a stand alone executable using Pyc from the samples. See: http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython&title=Samples On 11/24/06, Bill64bits <[EMAIL PROTECTED]> wrote: Suppose you want to deplo

[IronPython] Web.py and Ironpython

2006-10-31 Thread Tim Riley
Has anyone successfully got web.py to work with IronPython? I'd be very interested to hear about it if anyone has. ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

[IronPython] IronPython Samples

2006-09-27 Thread Tim Riley
eople could add samples. Any thoughts?Regards,Tim Riley ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] New - PythonEngine documentation

2006-09-08 Thread Tim Riley
Very useful. Thank you for pointing that out as I hadn't noticed.TimOn 9/8/06, Shri Borde <[EMAIL PROTECTED] > wrote: In case you hadn't noticed, there is a new IronPythonApiReference.chm in the Doc folder in the zip 1.0 RTM zip files, both bin and src. This should help answer many of t

Re: [IronPython] [ANN] IronPython 1.0 released today!

2006-09-06 Thread Tim Riley
I keep getting an error from codeplex when I try to download 1.0.bin. Am I the only one?On 9/5/06, Jim Hugunin < [EMAIL PROTECTED]> wrote:I'm extremely happy to announce that we have released IronPython 1.0 today! http://www.codeplex.com/IronPythonI started work on IronPython almost 3 years ago.  

Re: [IronPython] PythonEngine.RunFile

2006-08-11 Thread Tim Riley
gine.CreateOptimizedModule which you can also pass a name your module should get. Let us know if that doesn't meet your needs.   Martin   From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 2:17 PM To: Discussion of Iron

Re: [IronPython] PythonEngine.RunFile

2006-08-10 Thread Tim Riley
MAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 1:01 PM To: Discussion of IronPython Subject: [IronPython] PythonEngine.RunFile   In IP version 0.9 there was a PythonEngine.RunFile() method, this seems to be gone in 1.0

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
(object assembly); AddReference adr = engine.CreateMethod("import clr\nclr.AddReference(assembly)"); adr(typeof(SomeAutoCadType).Assembly);     From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 12:10 PM To: Discussion of IronPytho

[IronPython] PythonEngine.RunFile

2006-08-10 Thread Tim Riley
In IP version 0.9 there was a PythonEngine.RunFile() method, this seems to be gone in 1.0.6. Is there a replacement? ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
    From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Tim Riley Sent: Thursday, August 10, 2006 11:40 AM To: Discussion of IronPython Subject: Re: [IronPython] Embedding Question   What I'm trying to do is sort of weird so let me see if I can elaborate further. I am embe

Re: [IronPython] Embedding Question

2006-08-10 Thread Tim Riley
te: Adding references updates the entire engine, it's not local to just the current module.  So once you have added a reference you just need to import the namespace into any given module.    Were you also trying to avoid the import statements?   From: [EMAIL PROTECTED] [mail

[IronPython] Embedding Question

2006-08-10 Thread Tim Riley
without having to do the import clr, clr.AddReferenceToFileAndPath('blah') stuff in the beginning of each file. Is this possible?Regards,Tim Riley ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] NET Attributes.

2006-07-27 Thread Tim Riley
le (or use any other.NET attribute), you just can't do it from IronPython at the moment. :-(Fuzzyman http://www.voidspace.org.uk/python/index.shtml> Martin>> -------->> *From:* [EMAIL PROTECTED]> [mailto:[EMAIL PR

[IronPython] NET Attributes.

2006-07-26 Thread Tim Riley
Is it possible to use .NET attributes in IronPython? For example I have C# code that looks like:[CommandMethod("MyCommand", CommandFlags.Modal)]public static void RunMyCommand(){    'code here }Can I do something similiar in IP? I'll take anything. ___ us

[IronPython] Strange Embedding Questions

2006-04-11 Thread Tim Riley
/ideas on this. I'm not necessarily looking for a full code solution, however some pointer would be extremely helpful.Thanks for reading,Tim Riley ___ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: [IronPython] Question (Novice) on using Microsoft Excel via IronPython

2006-02-08 Thread Tim Riley
Check the Ironpython tutorial included with IronPython. There is a section titled "Tutorial 3: IronPython and COM interoperability".Best of luck,Tim RileyOn 2/8/06, Weffers, H.T.G. <[EMAIL PROTECTED]> wrote: If the following is a too frequently asked question, then please forgive me.   Be

Re: [IronPython] (no subject)

2006-01-17 Thread Tim Riley
>From what I understand System.Windows.Forms is not complete in Mono as of yet. You might want to check out http://www.mono-project.com/Mono_Project_Roadmap for an idea of what mono currently can and can't do. In the future you might want to look into GTK# for cross platform development.Good Luck,T

Re: [IronPython] Newbie mono question (setting up lib path)

2006-01-16 Thread Tim Riley
This works for me using Mono 1.1.13 and IronPython 1.0.2190 on Windows XP.IronPython 1.0.2190 (Beta) on .NET 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.>>> import sys >>> sys.path.append('c:\Python24\Lib')>>> import string>>> dir(string)['ImportError', 'KeyError', 'Templat

[IronPython] Problems with Mono and Tab Completion.

2006-01-13 Thread Tim Riley
Runtime: Mono-1.1.13Version:  IronPython 1.0.2190When executing IronPython from the following batch file I get some weird behavior in IronPythonConsole.exe. It seems that as I type in the console it sends two of each character. This behavior only occurs when I pass the "-X:TabCompletion" parameter.

Re: [IronPython] Bitwise boolean operators and Forms

2005-12-28 Thread Tim Riley
I don't understand. Why would you use an or statement when assigning a dockstyle?~TimOn 12/28/05, jeff sacksteder < [EMAIL PROTECTED]> wrote:The code in this snippet fails, claiming the bitwise operator '|' is unsupported for for DockStyles. Is this an unimplemented item, bug, or misunderstanding o

Re: [IronPython] IronPython on mac os X (newbie problems)

2005-12-20 Thread Tim Riley
mal    GC:    Included Boehm (with typed GC)    SIGSEGV  : normalC:\IronPython\bin>mono IronPythonConsole.exe IronPython 0.9.6 on .NET 2.0.50727.42Copyright (c) Microsoft Corporation. All rights reserved.>>>On 12/20/05, Tim Riley < [EMAIL PROTECTED]> wrote:I m

Re: [IronPython] IronPython on mac os X (newbie problems)

2005-12-20 Thread Tim Riley
I may be wrong but I was under the impression that the more recent versions of IronPython utilized portions of the .NET 2 framework that have yet to be implemented in mono.Regards,Tim Riley On 12/19/05, Anand Pillai <[EMAIL PROTECTED]> wrote: Incidentally, I got the same error with Iron