A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-March/072209.html below:

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

[Python-Dev] I vote to reject: Adding timeout tosocket.pyand httplib.py. [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4