GeneratorExitGeneratorExit
Generator के close() method को call करने पर cleanup के लिए raise किया जाता है।
SyntaxErrorPython को अमान्य syntax मिला जिसे parse नहीं किया जा सका।
Code में syntax error है जैसे if/for/def statements के बाद colon का अभाव, असंगत parentheses/brackets, अमान्य characters, या Python 2 में Python 3 syntax का उपयोग। Parser code संरचना नहीं समझ सका।
traceback में बताई गई line जाँचें। Missing colons, असंगत brackets, या अमान्य characters खोजें। `pylint` या `flake8` जैसे linter का उपयोग करें। caret (^) संकेतक पर ध्यान दें जो बताता है कि Python कहाँ उलझा।
if True
print("missing colon") # SyntaxErrorGeneratorExitGenerator के close() method को call करने पर cleanup के लिए raise किया जाता है।
UnicodeTranslateErrorकिसी विशिष्ट character के लिए Unicode अनुवाद ऑपरेशन विफल हुआ।
EnvironmentErrorOSError का एक उपनाम। Python 2 के साथ पश्चगामी अनुकूलता के लिए मौजूद है।
django.core.exceptions.ImproperlyConfiguredDjango ने प्रोजेक्ट की settings में गलत कॉन्फ़िगरेशन का पता लगाया।
json.JSONDecodeErrorJSON decoder प्रदान की गई string को valid JSON के रूप में parse नहीं कर सका।
ProcessLookupErrorजब दिया गया प्रोसेस (सामान्यतः एक PID) मौजूद नहीं होता, तब यह exception उठाया जाता है।