• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 2
I'm tempted to think so based on an explanation for the 'guard' function used to implement 'with...open': http://effbot.org/zone/JUMP_LINK__&&__python__&&__JUMP_LINK-with-statement.htm It seems to be preferred because files still close on exceptions: http://docs.quantifiedcode.com/python-code-patterns/maintainability/not_using_with_to_open_files.html Admittedly: I'm not able to verify exceptions right now but I'll keep an eye out.
23rd Oct 2016, 12:48 AM
Kirk Schafer
Kirk Schafer - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Hello can anyone help me to learn gdscript
0 Votes
What coding language should i use to make a custom coding language?
0 Votes
hello world i need help
2 Votes
Anyone Learning Godot?
1 Votes
Any easy game ideas for beginners?
0 Votes
Which is more important CSS vs HTML vs JS?
1 Votes
How many courses are there on Sololearn
1 Votes
hi
1 Votes
Which databases are the best at injecting dynamic data within websites, and how can you achieve it?
0 Votes
How to increase My Level is SoloLearn ?
0 Votes