Use literal syntax instead of function calls to create data structure (#9516)
It is slower to call e.g. dict() than using the empty literal, because the name dict must be looked up in the global scope in case it has been rebound. Same for the other two types like list() and tuple().
K
Kaxil Naik committed
87fdbd0708d942af98d35604fe5962962e25d246
Parent: d914a9c
Committed by GitHub <noreply@github.com>
on 6/25/2020, 3:35:37 PM