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/2002-November/030365.html below:

* (and **?) in assignments

[Python-Dev] Half-baked proposal: * (and **?) in assignments [Python-Dev] Half-baked proposal: * (and **?) in assignmentsMartin v. Loewis martin@v.loewis.de
23 Nov 2002 17:44:19 +0100
"Fredrik Lundh" <fredrik@pythonware.com> writes:

> > Readability counts.
> > 
> > Actually, you may just avoid the assignments altogether, and just use
> > the named fields.
> 
> with names like "tm_mday", doesn't your second statement
> contradict the first one?

It depends on the reader. A reader familiar with the time module will
recognize tm_foo as a field of struct tm, and then figure out what
field it is. That the field is called mday and not just day is
surprising; if the reader is surprised enough, he will look up the
documentation, and the rationale will become clear immediately.

Regards,
Martin




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