Re: gnulib-tool.py: Don't use mutable default arguments.

2024-04-13 Thread Bruno Haible
Hi Collin, > Here is a test program to demonstrate: > > > #!/usr/bin/env python3 > > def function(arg1, arg2 = dict()): > arg2[arg1] = 0 > print(arg2) > > function('one') > function('two') > function('three') > > > When

gnulib-tool.py: Don't use mutable default arguments.

2024-04-13 Thread Collin Funk
it is None. CollinFrom 07dcab221be80ca4d8dae4bfafc0dd80bff85c69 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 13 Apr 2024 18:51:06 -0700 Subject: [PATCH] gnulib-tool.py: Don't use mutable default arguments. * pygnulib/GLFileSystem.py (GLFileAssistant.__init__): Set the def