<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
I was&nbsp;trying&nbsp;to get&nbsp;Requests package to work with IronPython. I&nbsp;just briefly started playing with it and I like the HTTP api syntax.&nbsp;&nbsp;I'm actually starting to look for open source python packages instead of .NET :)&nbsp; Well its been a good learning opportunity navagating thru the IronPython internals.&nbsp;&nbsp;&nbsp;<BR>&nbsp;<BR>Thanks<BR>&nbsp;<BR>Danny<br><br><BR><div>&gt; Date: Fri, 3 Feb 2012 17:15:19 -0800<br>&gt; Subject: Re: [Ironpython-users] binary strings in 2.7.2 alpha?<br>&gt; From: jdhardy@gmail.com<br>&gt; To: fernandez_dan2@hotmail.com<br>&gt; CC: ironpython-users@python.org<br>&gt; <br>&gt; On Fri, Feb 3, 2012 at 5:00 PM, Daniel Fernandez<br>&gt; &lt;fernandez_dan2@hotmail.com&gt; wrote:<br>&gt; &gt; Hi All,<br>&gt; &gt;<br>&gt; &gt; I'm playing with open source&nbsp;package &nbsp;and I am getting an error with prefix<br>&gt; &gt; "b" with a string literal with expected str and got bytes. Here is a simple<br>&gt; &gt; example, IronPython 2.7.2 alpha I get the following<br>&gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; type(b"/")<br>&gt; &gt; &lt;type 'bytes'&gt;<br>&gt; &gt;<br>&gt; &gt; In CPython 2.7.2 I get the following<br>&gt; &gt;<br>&gt; &gt;&gt;&gt;&gt; type(b"/")<br>&gt; &gt; &lt;type 'str'&gt;<br>&gt; &gt;<br>&gt; &gt; I searched for more information on this but I didn't find alot&nbsp;on it.&nbsp;I did<br>&gt; &gt; find one site&nbsp;indicating that this is a python 3.0 feature, I just wanted to<br>&gt; &gt; confirm.<br>&gt; <br>&gt; Yeah, IronPython returns bytes for b'' (like Python 3) because its<br>&gt; strings are unicode. On the plus side, it means that what you're<br>&gt; testing probably has some changes to be made for Python 3 support.<br>&gt; <br>&gt; - Jeff<br></div>                                               </div></body>
</html>