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/2003-June/036232.html below:

[Python-Dev] Default constructor values (Re: [Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.134,1.135)

[Python-Dev] Default constructor values (Re: [Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.134,1.135)Guido van Rossum guido@python.org
Thu, 12 Jun 2003 09:44:30 -0400
> > Types with constructors that insist on an argument are problematic to
> > generic code that tries to instantiate a type by simply calling it.
> 
> Why on earth would you be trying to instantiate something
> without having any idea what parameters are required?

It could be the other way though: something could have a protocol
where you can pass in a factory function that's called without
arguments, and maybe you'd like to be able to pass it a built-in
type.  Something very close to this happened to me when testing Zope 3
filesystem synchronization.

--Guido van Rossum (home page: http://www.python.org/~guido/)




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