A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/023556.html below:

[Python-Dev] Re: PEP 279 revisited

[Python-Dev] Re: PEP 279 revisitedMichael McLay mclay@nist.gov
Wed, 24 Apr 2002 16:18:26 -0400
On Wednesday 24 April 2002 11:27 am, Bryan L. Fordham wrote:
> Guido van Rossum wrote:
> > (Sigh.  I was only asking for guidance on whether to choose enumerate
> > or itemize for the name, not reopening the whole subject of this PEP.)
>
> Let the language decide:
> >>> choice(['enumerate', 'itemize'])
>
> 'enumerate'
>
> 8)

Hmm, I used a sample size of 8 and it looks like a landslide for 'itemize'. 

>>> choice(['enumerate', 'itemize'])
'enumerate'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'itemize'
>>> choice(['enumerate', 'itemize'])
'enumerate'

None of the choices in the PEP jump out as being ideal. Perhaps itemize is a 
better choice simply because it is shorter.  Advantages?
 - It takes up less space in a line of code.
 - It is easier to type. 

+0 for itemize 





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