move default arguments [] to (), because mutable may be dangerous (especially in a recursive environment

This commit is contained in:
David Halter committed 2013-02-11 01:21:51 +01:00
1 parent f423de1956
commit 52b32a01c1
4 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -520,7 +520,7 @@ def assign_tuples(tup, results, seek_name):
@recursion.RecursionDecorator
@cache.memoize_default(default=[])
@cache.memoize_default(default=())
def follow_statement(stmt, seek_name=None):
"""
The starting point of the completion. A statement always owns a call list,