python-blogs icon indicating copy to clipboard operation
python-blogs copied to clipboard

Default argument initialization with list found which is a loop hole in python

Open neel004 opened this issue 2 years ago • 1 comments

Describe the bug When an argument is initialized with an empty list in python, it retains previous values it has accumulated while executing the method.

To Reproduce Steps to reproduce the behavior: Link to code: https://github.com/python-gsoc/python-blogs/blob/master/aldryn_people/cms_toolbars.py#L47:

Additional context Link for reference: https://web.archive.org/web/20200221224620id_/http://effbot.org/zone/default-values.htm

neel004 avatar Nov 16 '22 10:11 neel004

Can I work on this issue?

vrac10 avatar Jan 18 '23 06:01 vrac10

Closing in preparation for archiving this repo.

terriko avatar Aug 26 '24 19:08 terriko