[Ironpython-users] IronPython, Daily Digest 5/13/2014

CodePlex no_reply at codeplex.com
Wed May 14 09:23:20 CEST 2014


Hi ironpython,

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

In today's digest:ISSUES

1. [New issue] byte and string should be interchengable as arguments of string methods
2. [New issue] Error when write dicom file using IronPython
3. [New comment] Error when write dicom file using IronPython
4. [New comment] Error when write dicom file using IronPython

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

ISSUES

1. [New issue] byte and string should be interchengable as arguments of string methods
http://ironpython.codeplex.com/workitem/35212
User paweljasinski has proposed the issue:

"The following code snippet works in cpython, but throws in ipy.
class estr(str):
    pass

x=estr("a")
y=estr("a")

print x.__contains__("a")
print x.__contains__(b"a")
print x.__contains__(y)

print
print "a".__contains__("a")
print "a".__contains__(b"a")
print "a".__contains__(y)

print
print b"a".__contains__("a")
print b"a".__contains__(b"a")
print b"a".__contains__(y)

The list of the methods: https://docs.python.org/2/library/stdtypes.html#string-methods
Original problem report: https://github.com/IronLanguages/main/issues/195"-----------------

2. [New issue] Error when write dicom file using IronPython
http://ironpython.codeplex.com/workitem/35215
User shktang has proposed the issue:

"c:> ipy
IronPython 2.7.4 (2.7.0.40) on .NET 4.0.30319.18408 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.



import dicom
da = dicom.read_file("CT.test01.dcm")
dicom.write_file("CT.out.dcm")



Which causes the following error message:


File "C:\IronPython2.7.4\lib\site-packages\dicom\filewriter.py", line 338, in write_file
  File "C:\IronPython2.7.4\lib\site-packages\dicom\filewriter.py", line 278, in _write_file_meta_info
  File "C:\IronPython2.7.4\lib\site-packages\dicom\filewriter.py", line 196, in write_dataset
  File "C:\IronPython2.7.4\lib\site-packages\dicom\filewriter.py", line 132, in write_data_element
  File "C:\IronPython2.7.4\lib\site-packages\dicom\filebase.py", line 47, in write_tag
  File "C:\IronPython2.7.4\lib\site-packages\dicom\filebase.py", line 86, in write_leUS

Any way to resolve the problem?"-----------------

3. [New comment] Error when write dicom file using IronPython
http://ironpython.codeplex.com/workitem/35215
User paweljasinski has commented on the issue:

"<p>Please, direct question like this one to ironpython mailing list: http://blog.gmane.org/gmane.comp.python.ironpython.user<br>or https://mail.python.org/mailman/listinfo/ironpython-users<br>I also believe that the actual error/exception got lost during the copy/paste. Is there anything else you have got?</p>"-----------------

4. [New comment] Error when write dicom file using IronPython
http://ironpython.codeplex.com/workitem/35215
User shktang has commented on the issue:

"<p>Forget the last line of the error message:</p><p>TypeError: expected str, got bytes</p>"
----------------------------------------------



----------------------------------------------
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/20140514/ff6a0c37/attachment.html>


More information about the Ironpython-users mailing list