Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Federico Vaggi
I ran into a relatively similar problem with importing networkx into IronPython, but was able to fix it by editing out a few of the lines. It seems that the import behaviour in cpython and ironpython is slightly different sometime. I can post a list of the steps that I took if it is helpful

Re: [IronPython] Cast to a method pointer using CTYPES

2011-02-10 Thread Andrew Evans
Mind showing showing me an example of using VirtualAlloc? Thanks for your help Quick Google Search reveals nothing Nothing to me on VirtualAlloc *cheers On Wed, Feb 9, 2011 at 12:37 PM, Dino Viehland di...@microsoft.com wrote: So you want to generate the assembly in memory and then

Re: [IronPython] Cast to a method pointer using CTYPES

2011-02-10 Thread Curt Hagenlocher
Strange that a search would find nothing. Try searching for VirtualProtect instead -- that's what you'd need to mark a block of memory as executable, and you'd use it in conjunction with VirtualAlloc. On Thu, Feb 10, 2011 at 8:17 AM, Andrew Evans evans.d.and...@gmail.comwrote: Mind showing

Re: [IronPython] Cast to a method pointer using CTYPES

2011-02-10 Thread Andrew Evans
Thanks a bunch will continue looking :-) On Thu, Feb 10, 2011 at 8:24 AM, Curt Hagenlocher c...@hagenlocher.orgwrote: Strange that a search would find nothing. Try searching for VirtualProtect instead -- that's what you'd need to mark a block of memory as executable, and you'd use it in

[IronPython] Pass Module Functions as Parameters to Functions

2011-02-10 Thread Andrew Evans
I am having trouble figuring out the correct way of doing this. I am using the module cmd. Anyway this is what I do import myModule class Example(cmd.Cmd): def __init__(self): cmd.Cmd.__init__(self) self.prompt = ' ' def do_something(self, myFunction): myVar =

Re: [IronPython] Pass Module Functions as Parameters to Functions

2011-02-10 Thread Steve Dower
There are two options here. You can either pass the function directly: def do_something(self, myFunction): myVar = someFunction(myFunction) obj.do_something(obj.function) Or you can pass the name as a string and use getattr: def do_something(self, myFunction): myVar

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Andrew Jorgensen
On Wed, Feb 9, 2011 at 2:42 PM, Dino Viehland di...@microsoft.com wrote: In the case of IronPython the script is just pulling the files from Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight to that MSbuild file to get the list of files to use. StdLib.pyproj is generated

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Dino Viehland
Andrew wrote: On Wed, Feb 9, 2011 at 2:42 PM, Dino Viehland di...@microsoft.com wrote: In the case of IronPython the script is just pulling the files from Languages/IronPython/StdLib/StdLib.pyproj so you could just go straight to that MSbuild file to get the list of files to use.

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Andrew Jorgensen
Okay, we're making some great progress here now. Last issue I see immediately is that ir.exe crashes hard when trying to require a library, also it looks for it in all the wrong places on mono. Ideally (IMHO) it would first look under a Lib directory under the directory ir.exe lives in.

Re: [IronPython] Contents of Lib (packaging for RPM)

2011-02-10 Thread Tomas Matousek
What is your installation dir/file layout? -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Andrew Jorgensen Sent: Thursday, February 10, 2011 2:52 PM To: Discussion of IronPython Cc: ironruby-c...@rubyforge.org Subject:

Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Vernon Cole
Okay, I have filed codeplex issue 30143 for this, with a simple test modulewhich demonstrates the problem. This completely breaks adodbapi, and would probably kill many other imported modules. I think someone should go in an jack up the priority to high. IMHO it is a release breaker. Is not

Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Dino Viehland
If no one else steps up to look at it I can take a look this weekend. But let me tell everyone fixing import bugs is awesome fun! I thought adodbapi was still part of the test suite but I don't know how it transitioned when MS gave the project to the community. It may have not been pushed

Re: [IronPython] Embedding IPython Shell into IronPython

2011-02-10 Thread Dave Wald
First off, Thanks to all the developers! 2.7b1 and b2 have been excellent so far, at least as far as my current needs go. The new subprocess module is great. Came just in time. Great work! Federico, Your post caught my eye, as I also like good embeddable console apps. Hadn't used IPython

Re: [IronPython] Red Flag(?) change in import

2011-02-10 Thread Jeff Hardy
On Thu, Feb 10, 2011 at 6:11 PM, Dino Viehland di...@microsoft.com wrote: If no one else steps up to look at it I can take a look this weekend.  But let me tell everyone fixing import bugs is awesome fun! That sounds like sarcasm to me... I thought adodbapi was still part of the test suite

[IronPython] Reminder: First IronPython Bug Weekend is this this weekend

2011-02-10 Thread Jeff Hardy
This is just a firendly reminder that the first IronPython Bug Weekend is this weekend, February 12-13. You can find more information at http://ironpython.codeplex.com/wikipage?title=first%20IronPython%20Bug%20Weekend. Remember, you don't have to dedicate the whole weekend - even finding a couple