Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Hernán Foffani
Sorry, I meant the input of cPickle.loads() El 27/08/2014, a las 18:02, Hernán Foffani escribió: > Thanks for the str() workaround; haven’t thought of it. > Same thing with the output of b64decode. > > > El 27/08/2014, a las 17:53, Pawel Jasinski > escribió: > >> BytesConversion on argumen

Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Hernán Foffani
Thanks for the str() workaround; haven’t thought of it. Same thing with the output of b64decode. El 27/08/2014, a las 17:53, Pawel Jasinski escribió: > BytesConversion on argument fixes it: > > public static object b2a_base64([BytesConversion]string data) > > Short term workaround, try addin

Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Pawel Jasinski
BytesConversion on argument fixes it: public static object b2a_base64([BytesConversion]string data) Short term workaround, try adding str() around an argument On Wed, Aug 27, 2014 at 5:17 PM, Slide wrote: > Can you file an issue on ironpython.codeplex.com? > > > On Wed, Aug 27, 2014 at 7:53

Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Hernán Foffani
Sure! https://ironpython.codeplex.com/workitem/35507 > Can you file an issue on ironpython.codeplex.com? > > > On Wed, Aug 27, 2014 at 7:53 AM, Hernán Foffani wrote: > Hi, > This works on CPython but on IronPython throws an exception in > base64.b64encode. > > from __future__ import print_f

Re: [Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Slide
Can you file an issue on ironpython.codeplex.com? On Wed, Aug 27, 2014 at 7:53 AM, Hernán Foffani wrote: > Hi, > This works on CPython but on IronPython throws an exception in > base64.b64encode. > > from __future__ import print_function > > import cPickle > import bz2 > import base64 > > def s

[Ironpython-users] b64encode(bz2.compress()) throws exception.

2014-08-27 Thread Hernán Foffani
Hi, This works on CPython but on IronPython throws an exception in base64.b64encode. from __future__ import print_function import cPickle import bz2 import base64 def serializa(o): s1 = cPickle.dumps(o) s2 = bz2.compress(s1) s = base64.b64encode(s2) return s def deserializa(s): o

[Ironpython-users] IronPython, Daily Digest 8/26/2014

2014-08-27 Thread CodePlex
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] "No module named ..." exception in multi threading environment -- ISSUES 1. [New issue] "No module named ..." exception in multi