- From: Rick Leir <web-platform-tests-notifications@w3.org>
- Date: Sat, 04 Jun 2016 00:04:29 GMT
- To: public-web-platform-tests-notifications@w3.org
fixes all occurrences of the following issue: Issue type: Avoid mutable default arguments "_Passing mutable lists or dictionaries as default arguments can have unforeseen consequences. Usually when a programmer uses a list or dictionary as the default argument to a function, the programmer wants the program to create a new list or dictionary every time that the function is called. However, this is not what Python does. The first time that the function is called, Python creates a persistent object for the list or dictionary. Every subsequent time the function is called, Python uses that same persistent object that was created from the first call to the function."_ https://www.quantifiedcode.com/app/issue_class/3P0qV6OB View on GitHub: https://github.com/w3c/web-platform-tests/pull/3113#issuecomment-223721976
Received on Saturday, 4 June 2016 00:04:37 UTC