correct way to catch exception with Python 'with' statement
woooee at gmail.com
woooee at gmail.com
Tue Nov 29 18:59:59 EST 2016
More information about the Python-list mailing list
Tue Nov 29 18:59:59 EST 2016
- Previous message (by thread): correct way to catch exception with Python 'with' statement
- Next message (by thread): correct way to catch exception with Python 'with' statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
If you want to do something only if the file exists (or does not), use os.path.isfile(filename)
- Previous message (by thread): correct way to catch exception with Python 'with' statement
- Next message (by thread): correct way to catch exception with Python 'with' statement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list