On 8/10/20 7:20 AM, haael wrote:
>     myset = set.UNIVERSAL
>     myset.remove(element)

You do realize that set.UNIVERSAL isn't the set of everything anymore?

You bound myset to be an alias for set.UNIVERSAL and then modified it.

You likely wanted to make a copy of set.UNIVERSAL, not just bind an
alias to it here.

-- 
Richard Damon
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/B5U23UQFG5UNWNDDRPG5K6DGOS6XVNQP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to