<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Bug on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/bug/</link>
    <description>Recent content in Bug on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Mon, 03 Dec 2012 00:00:00 +0530</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/bug/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>cStringIO and unicode</title>
      <link>https://punchagan.muse-amuse.in/blog/cstringio-and-unicode/</link>
      <pubDate>Mon, 03 Dec 2012 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/cstringio-and-unicode/</guid>
      <description>&lt;p&gt;StringIO in the cStringIO module in Python 2.7.2 doesn&amp;rsquo;t handle&#xA;unicode strings properly.  This bug has bitten me on a couple of&#xA;occasions, in the recent past.&lt;/p&gt;&#xA;&lt;p&gt;Just making a note for myself:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Use StringIO if speed doesn&amp;rsquo;t matter so much.&lt;/li&gt;&#xA;&lt;li&gt;Whenever possible, just convert the input to StringIO to a&#xA;string, if what you are doing doesn&amp;rsquo;t really require unicode&#xA;strings.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Or may be it&amp;rsquo;s just time to move up to Python 2.7.3&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
