git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to keep Dict[str, List] default method parameter as local to the method?


On 2020-06-14 19:44:32 +0200, Peter J. Holzer wrote:
> [1] There is a very good talk by Raymond Hettinger on how variables and
>     objects in Python work. Unfortunately I can't find it at the moment.

Sorry, that talk was by Ned Batchelder (that's why I couldn't find it):

https://www.youtube.com/watch?v=_AEJHKGk9ns

        hp


-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp at hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20200614/6247d2b6/attachment.sig>