<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 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. <BR> <BR>Thanks<BR> <BR>Danny<br><br><BR><div>> Date: Fri, 3 Feb 2012 17:15:19 -0800<br>> Subject: Re: [Ironpython-users] binary strings in 2.7.2 alpha?<br>> From: jdhardy@gmail.com<br>> To: fernandez_dan2@hotmail.com<br>> CC: ironpython-users@python.org<br>> <br>> On Fri, Feb 3, 2012 at 5:00 PM, Daniel Fernandez<br>> <fernandez_dan2@hotmail.com> wrote:<br>> > Hi All,<br>> ><br>> > I'm playing with open source package and I am getting an error with prefix<br>> > "b" with a string literal with expected str and got bytes. Here is a simple<br>> > example, IronPython 2.7.2 alpha I get the following<br>> ><br>> >>>> type(b"/")<br>> > <type 'bytes'><br>> ><br>> > In CPython 2.7.2 I get the following<br>> ><br>> >>>> type(b"/")<br>> > <type 'str'><br>> ><br>> > I searched for more information on this but I didn't find alot on it. I did<br>> > find one site indicating that this is a python 3.0 feature, I just wanted to<br>> > confirm.<br>> <br>> Yeah, IronPython returns bytes for b'' (like Python 3) because its<br>> strings are unicode. On the plus side, it means that what you're<br>> testing probably has some changes to be made for Python 3 support.<br>> <br>> - Jeff<br></div> </div></body>
</html>