Message1172
 
            
            
            
 
   
   
 
 
  
      I'm seeing weird differences between repr() and
__repr__() that don't seem to appear in regular Python.
For example:
>>> foo='foo\b\n'
>>> repr(foo)
"'foo\\b\\n'"
>>> foo.__repr__()
'foo\b\n'
This is especially bad from Java, as the __repr__() is
all you have access to.  To reproduce from Java, I put
code in _codecs.java, in a new escape_encode function;
I'll submit this as part of my first pickle patch.  | 
   
  
 
|
 
| Date | 
User | 
Action | 
Args | 
 
| 2008-02-20 17:17:31 | admin | link | issue1510227 messages |  
| 2008-02-20 17:17:31 | admin | create |  |  
 
 
 |