main icon indicating copy to clipboard operation
main copied to clipboard

there are some funtions don't implement for binascii module against Ironpython

Open ironpythonbot opened this issue 10 years ago • 1 comments

there are some funtions don't implement for binascii module against Ironpython .  for the test case working around,
i report this bug.

select from binascii.cs

[PythonName("a2b_qp")]
public static object DecodeQuotedPrintable(object data) {
throw new NotImplementedException();
}
[PythonName("a2b_qp")]
public static object DecodeQuotedPrintable(object data, object header) {
throw new NotImplementedException();
}
[PythonName("b2a_qp")]
public static object EncodeQuotedPrintable(object data) {
throw new NotImplementedException();
}
[PythonName("b2a_qp")]
public static object EncodeQuotedPrintable(object data, object quotetabs) {
throw new NotImplementedException();
}
[PythonName("b2a_qp")]
public static object EncodeQuotedPrintable(object data, object quotetabs, object istext) {
throw new NotImplementedException();
}
[PythonName("b2a_qp")]
public static object EncodeQuotedPrintable(object data, object quotetabs, object istext, object header) {
throw new NotImplementedException();
}
[PythonName("a2b_hqx")]
public static object DecodeHqx(object data) {
throw new NotImplementedException();
}
[PythonName("rledecode_hqx")]
public static object RleDecodeHqx(object data) {
throw new NotImplementedException();
}
[PythonName("rlecode_hqx")]
public static object RlecodeHqx(object data) {
throw new NotImplementedException();
}
[PythonName("b2a_hqx")]
public static object EncodeHqx(object data) {
throw new NotImplementedException();
}
[PythonName("crc_hqx")]
public static object GetHqxCrc(object data, object crc) {
throw new NotImplementedException();
}
[PythonName("crc32")]
public static object GetCrc32(object data, object crc) {
throw new NotImplementedException();
}

E:\IronPyTestFor2.5\ironpythonCompatableFor2.5\ironpythonCompatableFor2.5\25\L ib

ipy
IronPython console: IronPython 2.0A5 (2.0.11011.00) on .NET 2.0.50727.1318
Copyright (c) Microsoft Corporation. All rights reserved.

import binascii
binascii.a2b_qp('')
Traceback (most recent call last):
File , line 0, in ##262
File , line 0, in stub##263
NotImplementedError: The method or operation is not implemented.

E:\IronPyTestFor2.5\ironpythonCompatableFor2.5\ironpythonCompatableFor2.5\25\L ib
python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32
Type ";help";, ";copyright";, ";credits"; or ";license"; for more information.
import binascii
binascii.a2b_qb('')
Traceback (most recent call last):
File ";";, line 1, in
AttributeError: 'module' object has no attribute 'a2b_qb'
binascii.a2b_qp('')
''
binascii.a2b_qp('1')
'1'

Work Item Details

Original CodePlex Issue: Issue 23807 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 27, 2009 at 11:55 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:12 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. Test: test_binascii.py CreatedDate: 10/31/2007 NewInternalID: 409608 OldInternalID: 317834 AreaPath: IronPython\Modules

ironpythonbot avatar Dec 09 '14 17:12 ironpythonbot

I encounter this issue too when using imaplib -> quopri -> a2b_qp

osbert-messerfs avatar Oct 15 '15 01:10 osbert-messerfs