What is a function parameter =[] for?
Random832
random832 at fastmail.com
Fri Nov 20 09:32:51 EST 2015
On 2015-11-20, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> You can substitute list() where ever you use [] with no
> effective change in the semantics. (I wouldn't be surprised if the parser
> was doing that behind the scenes anyway).
No, because list() does a name lookup on "list" (which is the primary issue
behind every request for frozendict/frozenset literals)
More information about the Python-list
mailing list