A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-September/038113.html below:

[Python-Dev] pending deprecation warning for Set.update

[Python-Dev] pending deprecation warning for Set.update [Python-Dev] pending deprecation warning for Set.updateJeremy Hylton jeremy at alum.mit.edu
Wed Sep 17 11:05:27 EDT 2003
It looks like current CVS has grown a pending deprecation warning for
the update() method of Sets and that this change has been backported to
the 2.3 branch.  It seems to me to be bad form to add a warning in a
maintenance release.  The update() method was new in 2.3 and documented
in the 2.3 docs.  So people are going to write code using update() and
then update to 2.3.1 and get warnings?

I'm also not clear on the rationale for the warning.  update() seems to
match the semantics of dict.update(), and it less verbose than the
suggested alternative -- union_update().

Jeremy



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4