pep 336: Make None Callable
Grant Edwards
grante at visi.com
Thu Nov 4 10:36:43 EST 2004
On 2004-11-04, The Eternal Squire <eternalsquire at comcast.net> wrote:
> But isn't the point of Pythonic style to write something as
> tersely elegant as possible?
Nope. You seem to have completely missed the Zen of Python.
The "point" of Python is to write something in the manner most
easily read, understood, and maintained. If that takes more
lines of souce code than a "terse and elelgent" one-liner
that's impossible to read the next day, so be it.
> I'd rather not see a bunch of null methods sprinkled thru the
> classes in the libraries that I have to write, and I'd rather
> not to have to import it either.
Then create a single, global Noop object.
--
Grant Edwards grante Yow! I was making donuts
at and now I'm on a bus!
visi.com
More information about the Python-list
mailing list