[IronPython] strftime formatting error with %c

2006-08-31 Thread Slide
I am using the following code and it has different results in CPython vs. IP. from time import strftime, gmtime print strftime('%c', gmtime()) CPython prints out the correct '09/01/06 06:38:48' the same code on IP prints out 0. Can anyone else reproduce this? I am appending the CPython lib pat

Re: [IronPython] Final release packaging

2006-08-31 Thread jeff sacksteder
I'm preparing an unofficial msi package for my own use using the Wix toolkit. Anyone knowledgeable in this area who is willing to assist, contact me directly and we can collaborate off-line until we have something useful. ___ users mailing list users@li

Re: [IronPython] custom ConfigurationSection in IronPython

2006-08-31 Thread Dino Viehland
Ahh, you're right - currently it looks like we won't ever get non-public indexers (this one is family or assembly, which is "protected internal" in C# speak). This is a bug, I've opened CodePlex bug #2766 for this (http://www.codeplex.com/WorkItem/List.aspx?ProjectName=IronPython). A simple wo

Re: [IronPython] custom ConfigurationSection in IronPython

2006-08-31 Thread Jason Ferrara
On Aug 31, 2006, at 4:00 PM, Dino Viehland wrote: > The Item property is the default indexer, so you should be able to > access it using foo[index]. Thats what I thought, but it doesn't work. And if I do dir() on ConfigurationElement I don't see a __getitem__ or __setitem__, though with ot

Re: [IronPython] custom ConfigurationSection in IronPython

2006-08-31 Thread Dino Viehland
The Item property is the default indexer, so you should be able to access it using foo[index]. As for your other question - Martin looked into this but I didn't see a response from him... The problem seems to be that we don't define a parameterless constructor that the configuration section ca

Re: [IronPython] custom ConfigurationSection in IronPython

2006-08-31 Thread Jason Ferrara
I have another related question. The "Item" property of System.Configuration.ConfigurationElement (base class for ConfigurationSection) doesn't seem to be accessible from IronPython. Is this because its overloaded by parameter type? Is there a way to access it from IronPython? Thanks -

Re: [IronPython] IronPython interop problem

2006-08-31 Thread Dino Viehland
Nope, the types we generate aren't your typical every day types. For example in the code you created we don't generate any .NET types - instead the class is represented by an instance of OldClass (IronPython.Runtime.Types.OldClass) and when you create an instance of this we create an instance o

Re: [IronPython] console startup time: 7s

2006-08-31 Thread Dino Viehland
Typically starting up a 2nd time will be faster because the OS still has a lot of the pages in memory. Ultimately this means we'll not need to go to disk for them.That can include thinks like the unmanaged portions of the CLR, the ngen'd images that IronPython depends upon, and IronPython.d

Re: [IronPython] IDE status info

2006-08-31 Thread fabio.pliger
tnx for the feedback.   When i tryied VS and IP, setting breakpoints is ok. But the debugger doesn't works as i would expect. it always generates a general exception... not an specific one... and sometimes it doesn't pops up at all. So i have to seach in the call stack to the point code brake

Re: [IronPython] IronPython interop problem

2006-08-31 Thread Marc-André Belzile
Could the .NET reflection mechanism be an alternative to hosting PythonEngine ? E.g. def class foo: def Bar(self,args): print args; // C# host Assembly asm = Assembly.Load(assemblyName); Type t = asm.GetType("foo", true, true); MethodInfo m = t.GetMethod("Bar"); m.Invoke(

Re: [IronPython] IDE status info

2006-08-31 Thread Michael Foord
fabio.pliger wrote: > Debugging IP code from VS2005 (not SDK)? You can debug it if you call > your IP code from a .NET application... (or can you debug it from VS > also writting an IP stand alone app?). But, always, when i tried > debugging from VS, it was a little..."confused"... Errors return

Re: [IronPython] Final release packaging

2006-08-31 Thread Keith J. Farmer
By “quality of the language” I mean, of course, the interpreter and libraries in this case.  With .NET, IMHO, we’re already starting pretty high.   - Keith J. Farmer [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf

Re: [IronPython] Final release packaging

2006-08-31 Thread Keith J. Farmer
http://lists.ironpython.com/pipermail/users-ironpython.com/2006-August/t hread.html - Keith J. Farmer // [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Kifer Sent: Thursday, 31 August 2006 00:17 To: Discussion of IronPython S

Re: [IronPython] Final release packaging

2006-08-31 Thread Joshua Kifer
Where can I go to see the golden roots of this conversation? On Aug 30, 2006, at 11:30 PM, Keith J. Farmer wrote: > What flame war? > > > > As for integration with VS, MSI would be the only packaging I would > expect (read: that I know of) for that. > > > > For language development, the prior

Re: [IronPython] CPython libs with IP runtime

2006-08-31 Thread Joshua Kifer
I am not a lawyer, but I see exactly what you mean. Thanks for the lesson. On Aug 30, 2006, at 10:58 PM, Sanghyeon Seo wrote: > 2006/8/31, Slide <[EMAIL PROTECTED]>: >> Is it against either license (IronPython and CPython) for me to >> package them up together using NSIS so that I can install

Re: [IronPython] exe version and icon?

2006-08-31 Thread Joshua Kifer
What are you using to generate the .exe? What are you compiling your stuff with? On Aug 27, 2006, at 2:59 PM, [EMAIL PROTECTED] wrote: > Hello, > > I'm new to both IronPython and .NET, and I've been trying to generate > an exe that has a version number as well as an icon, but I can't. I've

Re: [IronPython] Newbie: using IronPython as a VBA replacement for Outlook scripting?

2006-08-31 Thread Joshua Kifer
Ramon, I have been working a bit with IronPython to experiment with rapid development on the .net framework. I have no idea about Outlook customization. If I can assume that you are building some sort of plugin via an exposed interface and can build your own dll, then you can include Iro

Re: [IronPython] IDE status info

2006-08-31 Thread fabio.pliger
Debugging IP code from VS2005 (not SDK)? You can debug it if you call your IP code from a .NET application... (or can you debug it from VS also writting an IP stand alone app?). But, always, when i tried debugging from VS, it was a little..."confused"... Errors return long and messy code