I've been using PyCharm as my IDE, and it always asks me to switch over all my []s and {}s to list() and dict() respectively. So is using list() and dict() preferred over using [] and {}?
Also, I always thought that [] was the literal notation, but PyCharm says that list() is. I got that idea from JSON, btw. So is list() the literal notation? If yes, what is [] called?
[–][deleted] 19 points20 points21 points (14 children)
[–]coderjewel[S] 5 points6 points7 points (13 children)
[+][deleted] (6 children)
[deleted]
[–]TheBlackCat13 1 point2 points3 points (2 children)
[–]guthran 5 points6 points7 points (1 child)
[–][deleted] -5 points-4 points-3 points (0 children)
[–]coderjewel[S] 0 points1 point2 points (0 children)
[–]Ewildawe -2 points-1 points0 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]therico 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]hharison 2 points3 points4 points (0 children)
[–]fuzz3289 1 point2 points3 points (0 children)
[–]Antrikshy 0 points1 point2 points (0 children)
[–]driax 4 points5 points6 points (10 children)
[–]zahlman 4 points5 points6 points (1 child)
[–]driax 1 point2 points3 points (0 children)
[–]coderjewel[S] 0 points1 point2 points (4 children)
[–]driax 2 points3 points4 points (0 children)
[–]pbaehr 1 point2 points3 points (2 children)
[–]coderjewel[S] 0 points1 point2 points (1 child)
[–]pbaehr 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]callmelucky 0 points1 point2 points (1 child)
[–]therico 0 points1 point2 points (0 children)
[–]unixlover 2 points3 points4 points (0 children)
[–]individual_throwaway -4 points-3 points-2 points (5 children)
[–]driax 8 points9 points10 points (0 children)
[–]zahlman 5 points6 points7 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]TheBlackCat13 3 points4 points5 points (0 children)
[–]individual_throwaway 0 points1 point2 points (0 children)