Edgewall Software

Opened 11 years ago

Last modified 11 years ago

#11306 closed enhancement

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

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

Since has_key is formally deprecated since Python 2.6 and even removed in Python 3.1, 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 (0)

Note: See TracTickets for help on using tickets.