Case-insensitive string equality

Tim Chase python.list at tim.thechases.com
Thu Aug 31 12:26:06 EDT 2017


On 2017-08-31 18:17, Peter Otten wrote:
> A quick and dirty fix would be a naming convention:
> 
> upcase_a = something().upper()

I tend to use a "_u" suffix as my convention:

  something_u = something.upper()

which keeps the semantics of the original variable-name while hinting
at the normalization.

-tkc





More information about the Python-list mailing list