diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-07-24 08:13:12 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-07-24 08:13:12 -0400 |
commit | 89bbbf3626a783cc15484cedbb4c5a663d95e824 (patch) | |
tree | 048fe66f7c4ff308b5017248afd97548ab187550 /doc | |
parent | 1d242a3e18bae642fce14b3192fee051a7122a1c (diff) |
Added a paragraph to the documentation about the fact that bs4 Tag implements __hash__ and bs3 Tag doesn't.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/index.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst index 1159195..f655327 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -3495,6 +3495,11 @@ B.string. (Previously, it was None.) their values, not strings. This may affect the way you search by CSS class. +``Tag`` objects now implement the ``__hash__`` method, such that two +``Tag`` objects are considered equal if they generate the same +markup. This may change your script's behavior if you put ``Tag`` +objects into a dictionary or set. + If you pass one of the ``find*`` methods both :ref:`string <string>` `and` a tag-specific argument like :ref:`name <name>`, Beautiful Soup will search for tags that match your tag-specific criteria and whose |