tag:blogger.com,1999:blog-27854051.post2807170194077041156..comments2025-03-06T21:33:36.994+02:00Comments on PythonWise: Speed: Default value vs checking for NoneMiki Tebekahttp://www.blogger.com/profile/03296782049507092947noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-27854051.post-61733062682772774852019-04-07T18:36:53.086+03:002019-04-07T18:36:53.086+03:00`d.get(x,i)` is probably as good as `d.get(x) or i...`d.get(x,i)` is probably as good as `d.get(x) or i` for primitive values (int, str, bool, ...)alb3rtohttps://www.blogger.com/profile/00617892830611046209noreply@blogger.comtag:blogger.com,1999:blog-27854051.post-52573289392544364352019-04-07T18:36:04.273+03:002019-04-07T18:36:04.273+03:00This comment has been removed by the author.alb3rtohttps://www.blogger.com/profile/00617892830611046209noreply@blogger.comtag:blogger.com,1999:blog-27854051.post-89868383442845250112019-03-20T23:48:34.275+02:002019-03-20T23:48:34.275+02:00So what would be the case for using d.get(x,i) ins...So what would be the case for using d.get(x,i) instead of "d.get(x) or i" ?Anonymousnoreply@blogger.com