Re: [IronPython] Is any one use IronPython in your project?

2006-11-22 Thread Mike Raath
There will be different reasons amongst all developers of Iron Python. For my point of view I needed to be able to use existing Python Libraries in a .Net environment. I could well have rewritten the Python code in .Net classes but then I would have meant 2 separate code bases to maintain. I foun

Re: [IronPython] speed

2006-07-27 Thread Mike Raath
"test.py is the actual benchmark, and the other one is the actual benchmark. The code for both is at the end of this message"Should  read  "test.py is the actual benchmark. The code for both is at the end of this message" ___ users mailing list users@lis

Re: [IronPython] speed

2006-07-27 Thread Mike Raath
An issue on CodePlex - http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=651 - was raised on my behalf to do with performance using BeautifulSoup (a forgiving HTML parser). Here's a simple test which does the parsing and the "prettifying" - the process where BeautifulSou

Re: [IronPython] Bug in urllib?

2006-07-26 Thread Mike Raath
ly, makefile() is one of the things that socket.py provides, and we haven't had time yet to implement it.   --Bruce   From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Mike Raath Sent: Wednesday, July 26, 2006 12:53 AM To: Discussion of IronPython Subject: [IronPython] B

[IronPython] Bug in urllib?

2006-07-26 Thread Mike Raath
I'm getting an error trying to use urllib - AttributeError: 'socket' object has no attribute 'makefile' Using 1.0 RC1. Not sure if this has ever worked - get NotImplementedError: getaddrinfo() is not currently implemented in the Beta 9. >>> import sys>>> sys.path.append("C:\\Python24\\Lib")>>> impo

Re: [IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

2006-07-14 Thread Mike Raath
so we need to know more to find out what the problem may be.   Thanks Martin   From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] On Behalf Of Mike Raath Sent: Thursday, July 13, 2006 1:41 AM To: Discussion of IronPython Subject: [IronPython] Unable to cast object of type 'IronPy

[IronPython] Unable to cast object of type 'IronPython.Runtime.Types.OldClass' to type 'IronPython.Runtime.Types.DynamicType'

2006-07-13 Thread Mike Raath
HiHaving tried to switch over to beta 9, and changing my generic Evaluate references to EvaluateAs, I get a runtime error on an import statement which works under beta 8. The exception is as is detailed in the message above, and is from a statement like engine.Execute("from Module import Class);The

Re: [IronPython] Bug in time.strptime?

2006-07-04 Thread Mike Raath
Just wondering if this post slipped in under the radar - can anyone please confirm whether this is a bug, or if I could be using IronPython differently to achieve the same thing?I need to be able to interpret non-standard dates (the format of which I can't dictate) and in CPython this is possible u

[IronPython] Bug in time.strptime?

2006-07-03 Thread Mike Raath
I'm getting an exception in IronPython which I don't get in CPython.From the CPython console window:>>> import time, datetime>>> d = time.strptime("July 3, 2006 At 0724 GMT", "%B %d, %Y At %H%M GMT") >>> print d(2006, 7, 3, 7, 24, 0, 0, 184, -1)From IronPython, a similar set of statements:engine.Ex

Re: [IronPython] "no module named win32api" using PyWin32-208

2006-06-28 Thread Mike Raath
ssue on CodePlex (http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython ).  Unfortunately we're not planning on revisiting performance again until after v1.0 ships, but it is something that we always care about.       From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf

Re: [IronPython] "no module named win32api" using PyWin32-208

2006-06-27 Thread Mike Raath
before 1.0.  But if it's access to Win32 you want, there's a large amount of Win32 exposed through the .NET APIs that you can access directly by importing the appropriate namespaces (and adding references to the appropriate assemblies if it's not mscorlib or System).    That may or may

[IronPython] "no module named win32api" using PyWin32-208

2006-06-27 Thread Mike Raath
I posted this on the comp.lang.python  list yesterday but am not sure if that is the correct list to have posted on, so apologies for the cross-post but I would really appreciate some help on this. I have Python 2.4 installed on my local machine in c:\Python24. I have also downloaded the p