2

In an interview they asked me about Python with keyword implementation. I could not answer except its use in opening files and in lock. Then they asked me why don't we close file in with open("x.txt") as f:

Can anyone tell about with implementation and how does it behave differently for files and locks?

Netro
  • 7,119
  • 6
  • 40
  • 58

0 Answers0