[Patches] [ python-Patches-470680 ] Clean output of __repr__ in asyncore

noreply@sourceforge.net noreply@sourceforge.net
Fri, 12 Oct 2001 15:42:55 -0700


Patches item #470680, was opened at 2001-10-12 12:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=470680&group_id=5470

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Cesar Eduardo Barros (cesarb)
Assigned to: Nobody/Anonymous (nobody)
Summary: Clean output of __repr__ in asyncore

Initial Comment:
This changes the following in asyncore.dispatcher.__repr__:

- Removes double space when status is empty
- Adds 0x in front of hex address to be more like
classes with no __repr__
- Adds module name in front of class name to be more
like classes with no __repr__

Patch against asyncore.py 1.21

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-10-12 15:42

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. I have applied a similar patch 
achieving the same effect for the normal case, not 
touching the "failed" case (asyncore 1.22). Could you ever 
produce the failed case in real life? If so, we should 
rather work on not having that fail.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=470680&group_id=5470