title: python cyclic shifting of the characters in the string
body: <p>Subclass sstr of the standard str type that implements the "&lt;&lt;" and ">>" methods as a cyclic shifting of the characters in the string.What trying to do is</p>
  
  <pre><code> &gt;&gt;&gt; s1 = sstr("abcde")
   &gt;&gt;&gt; s1 &lt;&lt; 0
  'abcde'
   &gt;&gt;&gt; s1 &gt;&gt; 0
  'abcde'
   &gt;&gt;&gt; s1 &lt;&lt; 2
  'cdeab'
  &gt;&gt;&gt; s1 &gt;&gt; 2
  'deabc'
  &gt;&gt;&gt; s1 &gt;&gt; 5
   'abcde'
  
  # my attempt:
  import string
  class sstr(str):
  def __new__(self, other):
      return str.__new__(self, other.upper())
  def __ilshift__(self, other):
      return str.__ilshift(other)
  def __rshift__(self, other):
      return str.__rshift(other)    
  </code></pre>