[Python-Dev] I vote to reject: Adding timeout tosocket.pyand httplib.py.

Robert Brewer fumanchu at amor.org
Wed Mar 21 19:00:52 CET 2007


Facundo Batista wrote:
> It works, but my only issue is that it gets ugly in the help():
> 
> >>> sentinel = object()
> >>> def f(a, b=sentinel):
> ...     pass
> ...
> >>> help(f)
>   ...
>   f(a, b=<object object at 0xb7d64460>)
> 
> I know I can use a class with __str__ instead of object, but 
> what would one print in that case?

I've found "missing" to be the most common (and the most understandable)
thing to print in that case.


Robert Brewer
System Architect
Amor Ministries
fumanchu at amor.org


More information about the Python-Dev mailing list