Edgewall Software

Opened 11 years ago

Last modified 11 years ago

#11306 closed enhancement

Replace uses of `has_key` with `in` — at Version 1

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: general Version:
Severity: normal Keywords: python3
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Since has_key is formally deprecated since Python 2.6 and even removed in Python 3.0, and I've been removing these in various refactoring changesets (e.g. [11956]), I thought it might be better to create a ticket and replace these everywhere at once.

Additionally, it sounds like this will give a small performance improvement (negligible for nearly all cases I'm sure), and an increment towards #10083.

Change History (1)

comment:1 by Ryan J Ollos, 11 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.