summaryrefslogtreecommitdiffhomepage
path: root/zh-tw
diff options
context:
space:
mode:
authorRoman Garanin <evilkhaoskat@gmail.com>2018-12-19 22:09:29 +0300
committerGitHub <noreply@github.com>2018-12-19 22:09:29 +0300
commit7bdc3d8f2f256c4ab704226e392948cad2a0ff13 (patch)
tree607b4e3633e566dd378e4fc4c0af0f5e530c71a7 /zh-tw
parentd5b09d5b13f2dcb29b812c6b55011ab8bab8d1be (diff)
[python3/en] A note about common gotcha with mutable defaults
A reminder to be aware of using mutable defaults. Whether it is a real problem or not depends on exact use-case, but an update fully describing that and updating code with copying list, or defaulting with None and conditional initialization, would probably negatively affect readability of the example.
Diffstat (limited to 'zh-tw')
0 files changed, 0 insertions, 0 deletions