Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] ctype legacy support
----------------------------------------------
ISSUES
1. [New issue] ctype legacy support
http://ironpython.codeplex.com/workitem/35326
User paweljasinski has proposed the issue:
"the following appears to be agreed way of doing things in cpython:
import ctypes
import ctypes.wintypes
GetStdHandle = ctypes.windll.kernel32.GetStdHandle
GetStdHandle.argtypes = [ ctypes.wintypes.DWORD, ]
GetStdHandle.restype = ctypes.wintypes.HANDLE
print GetStdHandle(-11) # line 8
Reference:
http://stackoverflow.com/questions/17993814/why-the-irrelevant-code-made-a-difference
When run, ironpython has a problem with it.
rejap@WIN-CUE1I6EN9JB ~/tmp
$ ipy ctypes-stdhandle.py
Traceback (most recent call last):
File "ctypes-stdhandle.py", line 8, in <module>
TypeError: expected unsigned long, got int
and the same under cpython 2.7-64:
rejap@WIN-CUE1I6EN9JB ~/tmp
$ /c/Python27/python ctypes-stdhandle.py
424
"
----------------------------------------------
----------------------------------------------
You are receiving this email because you subscribed to notifications on
CodePlex.
To report a bug, request a feature, or add a comment, visit IronPython Issue
Tracker. You can unsubscribe or change your issue notification settings on
CodePlex.com.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
https://mail.python.org/mailman/listinfo/ironpython-users