[New-bugs-announce] [issue14726] Lib/email/*.py use an EMPTYSTRING global instead of ''

Gregory P. Smith report at bugs.python.org
Sat May 5 03:14:08 CEST 2012


New submission from Gregory P. Smith <greg at krypto.org>:

Lib/email/*.py are fond of using

EMPTYSTRING = ''

and within the code:

    EMPTYSTRING.join(...)

instead of just writing:

    ''.join(...)

They should just do the latter.  It'll avoid a name lookup and look less silly to people reading the code.  ;)

----------
messages: 159974
nosy: gregory.p.smith
priority: low
severity: normal
status: open
title: Lib/email/*.py use an EMPTYSTRING global instead of ''
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14726>
_______________________________________


More information about the New-bugs-announce mailing list