[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Sean Reifschneider

Sean Reifschneider [EMAIL PROTECTED] added the comment:

I don't know if this is still relevent, if it is please provide a test
that demonstrates it.  I've checked the code and found that the code to
be patched no longer exists.  To me, it looks like it might be resolved.

--
keywords: +patch
nosy: +jafo
priority:  - normal
resolution:  - out of date
status: open - closed
type:  - behavior

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2074
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-03-18 Thread Simon Percivall

Simon Percivall [EMAIL PROTECTED] added the comment:

It's still a problem, as the test case demonstrates.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2074
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2074] pprint._safe_repr() unsafe on ordering differently types objects with same str represenation

2008-02-11 Thread Simon Percivall

New submission from Simon Percivall:

_safe_repr() tries to handle the case where two objects are unorderable by 
ordering on (str(type(key)), key, value), but this fails when 
str(type(key)) is equal for two objects, but key is different and 
unorderable. Easy fix: order just on the string representation.

--
components: Library (Lib)
files: pprint.diff
messages: 62303
nosy: percivall
severity: normal
status: open
title: pprint._safe_repr() unsafe on ordering differently types objects with 
same str represenation
versions: Python 3.0
Added file: http://bugs.python.org/file9413/pprint.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2074
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com