IndentationErrorIndentationError
Code में गलत indentation है, जो Python में वाक्य-रचनात्मक रूप से महत्वपूर्ण है।
AttributeErrorकिसी ऑब्जेक्ट में अनुरोधित attribute या method नहीं है।
आपने किसी ऐसे attribute या method को access करने की कोशिश की जो ऑब्जेक्ट पर मौजूद नहीं है। ऑब्जेक्ट None हो सकता है जब आप भिन्न type की अपेक्षा कर रहे थे, method का नाम गलत हो सकता है, या आप गलत type उपयोग कर रहे हों।
`type(obj)` से ऑब्जेक्ट का type जाँचें। Access करने से पहले `hasattr(obj, 'attr')` से जाँचें। None हो सकने वाले ऑब्जेक्ट्स के लिए None checks जोड़ें। उपलब्ध attributes सूचीबद्ध करने के लिए `dir(obj)` उपयोग करें। Class documentation देखें।
None.split() # AttributeError: 'NoneType' has no attribute 'split'IndentationErrorCode में गलत indentation है, जो Python में वाक्य-रचनात्मक रूप से महत्वपूर्ण है।
Model.DoesNotExist.get() के साथ Django ORM query को कोई मेल खाता रिकॉर्ड नहीं मिला।
KeyboardInterruptउपयोगकर्ता ने चल रहे प्रोग्राम को बाधित करने के लिए Ctrl+C दबाया।
pickle.UnpicklingErrorpickle module प्रदान किए गए डेटा को deserialize नहीं कर सका।
IndexErrorएक sequence index दी गई sequence की वैध range से बाहर है।
StopIterationIterator में कोई और items न होने पर next() function द्वारा raise किया जाता है।