Exception Handling
dieter
dieter at handshake.de
Sat Apr 11 01:39:23 EDT 2015
More information about the Python-list mailing list
Sat Apr 11 01:39:23 EDT 2015
- Previous message (by thread): Exception Handling
- Next message (by thread): How to convert .doc file to .txt in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Palpandi <palpandi111 at gmail.com> writes: > Thanks for your responses. And I have one more question. > This is the situation. A python application which reads data from one .xml file and generates some other file. Here what kind of exceptions occur? Ideally, you would not get any exceptions. In the not ideal case, you may get exceptions from the XML parser (in case, your XML input file is not valid), the "os" module (for permission or filesystem related problems) and potentially exceptions (such as "AttributeError") from your own program logic (in case it would be faulty). I support Chris' recommendation to not care about exceptions intially (as they are exceptions - and do not occur frequently) and decide what to do should they really occur.
- Previous message (by thread): Exception Handling
- Next message (by thread): How to convert .doc file to .txt in Python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list