COMPSCI 61A Lecture Notes - Lecture 19: Mobile World Congress, Kaspersky Lab, Function Object
COMPSCI 61A verified notes
19/20View all
Document Summary
Your bionic hand is now at risk of hackers . Kaspersky lab announces at mobile world congress 2019. Now equipped with smart features and more advanced technology. Means that also requires more software that must be connected to cloud. Third party could hypothetically now hack in and manipulate your data. Object value behaves like what is meant to represent. Python will always produce two representations of any string. Str = readable version we are used to seeing. Repr = representation that python interpreter understands. Repr function takes in python string object. Eval(repr(object)) is the same as object repr(object) is the same as string. This is why if call print on a function object displays something like: Polymorphic function = can be applied on different types of data. Str and repr are polymorphic because can call on any object type. Though return value may be messier depending (thing function object) Using dot notation with str and repr does same thing.