Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Présence de références à has_key (méthode dépréciée depuis Python 3.0) #1

Open
AdrienVH opened this issue Dec 8, 2022 · 0 comments

Comments

@AdrienVH
Copy link
Collaborator

AdrienVH commented Dec 8, 2022

Chapitre : Dictionnaires > Méthodes spécifiques aux dictionnaires > Tester l’existence d’une valeur dans le dictionnaire

Une étudiante m'a fait remarquer que la méthode has_key ne fonctionne pas.

En effet, elle a été retiré de Python 3 :

Removed. dict.has_key() – use the in operator instead.

Source : Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant