[Ironpython-users] binary strings in 2.7.2 alpha?

Daniel Fernandez fernandez_dan2 at hotmail.com
Sat Feb 4 23:08:08 CET 2012

Hi Jeff, Kind of. 

I ran into the first error that IronPython 2.7.2 didn't support idna encoding. I just added code to the StringOps.cs in the RawDecode and RawEncode to support idna. It was a small change just made calls using System.Globalization.IdnMappings class. The issue with this that the Silverlight build would fail. The Silverlight project refeences a mscorlib.dll that doesn't support this System.Globalization.IdnMappings class. I added a conditional complition so it wasn't used in the Silverlight build so I get it to build successfully.  The next issue was the binary strings. It was failing with the statement path.split(b"/") and received and error expected str got bytes. I had to remove this binary strings (only a few places) from the script to get it to work.  

I only done a few tests nothing major but the HTTP GETs seem to be working but I ran into an issue with the SSL certification for HTTPS GET call that I haven't figured out it yet. I haven't done any POSTs yet. 
 > Date: Sat, 4 Feb 2012 12:24:18 -0800
> Subject: Re: [Ironpython-users] binary strings in 2.7.2 alpha?
> From: jdhardy at gmail.com
> To: fernandez_dan2 at hotmail.com
> CC: ironpython-users at python.org
> On Fri, Feb 3, 2012 at 5:39 PM, Daniel Fernandez
> <fernandez_dan2 at hotmail.com> wrote:
> > I was trying to get Requests package to work with IronPython. I just briefly
> > started playing with it and I like the HTTP api syntax.  I'm actually
> > starting to look for open source python packages instead of .NET :)  Well
> > its been a good learning opportunity navagating thru the IronPython
> > internals.
> Did you manage to get it to work? I'm pretty sure newer versions of
> requests support Python 3, so it should be possible.
> - Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120204/95467bbf/attachment.html>

More information about the Ironpython-users mailing list