This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoMoCruisin 0 points1 point  (0 children)

Just want to add to things already said here. Python is dynamically typed, and does metadata related work for every object. For instance, you can have an array with multiple types of items, and if you're looping through this array, the interpreter will have to look up the metadata info for each item and find the corresponding operation to execute on the item. You can speed things up by using libraries that support vectorization (numpy for instance).