Mar-10-2019, 06:48 AM
In[1]: getattr(None, '') is None Traceback (most recent call last): File "C:\Users\myluo\AppData\Local\Programs\Python\Python36\lib\site-packages\IPython\core\interactiveshell.py", line 3265, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-8-dd6743d652c1>", line 1, in <module> getattr(None, '') is None AttributeError: 'NoneType' object has no attribute '' In[2]: getattr(None, '', None) is None Out[2]: TrueWhat's happend?