Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

NamedObject 2

Language: Layout:
+ ] Show input
Absolute running time: 0.16 sec, cpu time: 0.03 sec, memory peak: 5 Mb, absolute service time: 0.16 sec 
fork mode |  history  | discussion
                                            expression  eval(expression)

named_objects['LikeNone'] is named_objects['LikeNone']  True
    named_objects['LikeNone'] is named_objects['Test']  False
                             named_objects['LikeNone']  LikeNone
                                              object()  <object object at 0x7ff75f98d070>
                     type(named_objects['LikeNone'])()  Exception: TypeError: __init__() missing 1 required positional argument: 'name'
                                         named_objects  {'Test': Test, 'LikeNone': LikeNone}