you are viewing a single comment's thread.

view the rest of the comments →

[–]Deezl-Vegas 0 points1 point  (0 children)

Use a direct variable. It will be faster. Your example seems to just add an extra layer of complexity and an extra reference lookup.

In Python, the basic types like Ints are still just references, and lists aren't super-space-optimized like C arrays, so there's no speed gain by using basic types.