SyntaxErrorSyntaxError
Python को अमान्य syntax मिला जिसे parse नहीं किया जा सका।
UnicodeEncodeErrorएक Unicode स्ट्रिंग को लक्ष्य encoding में encode नहीं किया जा सका।
स्ट्रिंग का एक character लक्ष्य encoding में represent नहीं किया जा सकता। उदाहरण के लिए, non-ASCII characters वाली स्ट्रिंग को ASCII में encode करना, या लक्ष्य encoding की range से बाहर का character।
UTF-8 encoding का उपयोग करें जो सभी Unicode characters का समर्थन करती है: string.encode('utf-8')। error handlers का उपयोग करें: string.encode('ascii', errors='replace') या errors='ignore'। अपने environment में डिफ़ॉल्ट encoding UTF-8 सेट करें।
"\u00e9".encode("ascii") # UnicodeEncodeErrorSyntaxErrorPython को अमान्य syntax मिला जिसे parse नहीं किया जा सका।
ValueErrorकिसी फ़ंक्शन को सही type का लेकिन अनुपयुक्त मान वाला argument मिला।
multiprocessing.AuthenticationErrormultiprocessing server से कनेक्ट होते समय authentication विफल हुई।
TimeoutErrorblocking ऑपरेशन के दौरान सिस्टम-स्तर timeout हुआ।
NotADirectoryErrorकिसी ऐसे path पर directory operation का प्रयास किया गया जो directory नहीं है।
InterruptedErrorएक आने वाले signal द्वारा system call बाधित हो गई।