Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #90630
| References | <CAB1ii-cFpbmdjQfRA_J3TBUZ+Gx8e8vLvqTLo2R-f0ygkykV1A@mail.gmail.com> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2015-05-14 13:48 -0600 |
| Subject | Re: a python pitfall |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17.1431632962.17265.python-list@python.org> (permalink) |
On Thu, May 14, 2015 at 12:06 PM, Billy Earney <billy.earney@gmail.com> wrote: > Hello friends: > > I saw the following example at > http://nafiulis.me/potential-pythonic-pitfalls.html#using-mutable-default-arguments > and did not believe the output produced and had to try it for myself.... See also https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: a python pitfall Ian Kelly <ian.g.kelly@gmail.com> - 2015-05-14 13:48 -0600
csiph-web