dinov at microsoft.com
Thu Dec 17 18:51:17 CET 2009
I've opened bugs for both of these issues:
These are both just oversights. The tests for ctypes and winreg
both aren't exhaustive so the more real world use cases and tests
we can get to throw at these the better they'll get over time.
As for a non-trivial working program it certainly is possible. But
Python and its libraries are large and sometimes it requires some
iteration to either fix bugs in IronPython or make changes to the
program for things like Unicode-only strings. We do try to be
extremely responsive on fixing bugs that block real world programs
from working unmodified.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Thomas Heller
> Sent: Thursday, December 17, 2009 1:13 AM
> To: Discussion of IronPython
> Subject: [IronPython] Disappointed
> I was excited to see that the latest IronPython release contains
> ctypes, so I was
> tempted to try it out. This is the first time I use IronPython.
> However, soon came frustration.
> ctypes.wintypes is missing, copying the Python 2.6 ctypes\wintypes.py
> into place
> doesn't make it work either:
> c:\>ipy -c "import ctypes.wintypes"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "c:\Programme\IronPython 2.6\Lib\ctypes\wintypes.py", line 23,
> in c:\Programme\IronPython 2.6\Lib\ctypes\wintypes.py
> NotImplementedError: simple type v
> The same NotImplementedError is raised when I try to import comtypes,
> which uses this code:
> class BSTR(_SimpleCData):
> "The windows BSTR data type"
> _type_ = "X"
> Ok. Gave up trying out ctypes. Tried to run other scripts that I have
> written. Snippet from that:
> import _winreg
> def QueryValue(hkey, valuename, default=0):
> if hkey is None:
> return default
> return _winreg.QueryValue(hkey, valuename)
> except WindowsError, detail:
> if detail.errno == 2:
> return default
> Doesn't work either. WindowsError is raised, but detail.errno is None,
> detail.winerror also.
> Is there any chance of running a working, nontrivial CPython program
> Are the above problems oversights? Missing features?
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users