[Ironpython-users] IronPython, Daily Digest 12/24/2013

CodePlex no_reply at codeplex.com
Wed Dec 25 09:21:58 CET 2013


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] dict lookup of System.Int64 and long is not the same
2. [New issue] Add support for RIPEMD160 to hashlib

----------------------------------------------

ISSUES

1. [New issue] dict lookup of System.Int64 and long is not the same
http://ironpython.codeplex.com/workitem/34770
User giltayar has proposed the issue:

"To reproduce:
>>> dct = {}
>>> import System
>>> dct[System.Int64(1110766100758387874)] = "FindMe?"
>>> dct[System.Int64(1110766100758387874)]
'FindMe!'
>>> dct[1110766100758387874]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 1110766100758387874

Same for set:
>>> s = set()
>>> s.add(System.Int64(1110766100758387874))
>>> System.Int64(1110766100758387874) in s
True
>>> 1110766100758387874 in s
False

This happens to me because I use NHibernate, where the model class is a C# class with an Id of System.Int64. Whenever I use a dict, and the Id as a key, this happens because I sometimes look for the id as a regular python number.

(I am confused as to whether to submit an issue in github or here, so I submitted in both! Please excuse my n00bness)"-----------------

2. [New issue] Add support for RIPEMD160 to hashlib
http://ironpython.codeplex.com/workitem/34771
User adal has proposed the issue:

"IronPython doesn't support the RIPEMD160 hashing algorithm.

RIPEMD160 is used by Bitcoin, so this means that no Bitcoin software written in Python can run under IronPython.

The following code works in CPython, but not in IronPython:
import hashlib

hash = hashlib.new("ripemd160")
hash.update("test")
print hash.hexdigest()

.NET supports RIPEMD160 - http://msdn.microsoft.com/en-us/library/system.security.cryptography.ripemd160.aspx"
----------------------------------------------



----------------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20131225/d86bde7a/attachment.html>


More information about the Ironpython-users mailing list