[Django] #27235: Avoid using mutable default arguments where possible

6 views
Skip to first unread message

Django

unread,
Sep 16, 2016, 5:15:36 AM9/16/16
to django-...@googlegroups.com
#27235: Avoid using mutable default arguments where possible
--------------------------------------+--------------------
Reporter: lamby | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Uncategorized | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
eg. def foo(x=[])

--
Ticket URL: <https://code.djangoproject.com/ticket/27235>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 16, 2016, 5:16:07 AM9/16/16
to django-...@googlegroups.com
#27235: Avoid using mutable default arguments where possible
-------------------------------------+-------------------------------------
Reporter: lamby | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Uncategorized | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by lamby):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

https://github.com/django/django/pull/7253

--
Ticket URL: <https://code.djangoproject.com/ticket/27235#comment:1>

Django

unread,
Sep 16, 2016, 3:48:37 PM9/16/16
to django-...@googlegroups.com
#27235: Avoid using mutable default arguments where possible
-------------------------------------+-------------------------------------
Reporter: lamby | Owner: nobody
Type: | Status: closed
Cleanup/optimization |
Component: Uncategorized | Version: 1.10
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage:
| Unreviewed

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"9027e6c8a3711034d345535036d1a276d9a8b829" 9027e6c8]:
{{{
#!CommitTicketReference repository=""
revision="9027e6c8a3711034d345535036d1a276d9a8b829"
Fixed #27235 -- Removed some usage of mutable default arguments.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27235#comment:2>

Reply all
Reply to author
Forward
0 new messages