It requires both a setup phase and a teardown phase. Managing resources properly is often a tricky problem. This kind of issue is called a memory leak because the available memory gets reduced every time you create and open a new instance of a given resource without closing an existing one. Sometimes, a program will retain those resources forever, even if you no longer need them. One common problem you’ll face in programming is how to properly manage external resources, such as files, locks, and network connections. Free Download: Get a sample chapter from Python Tricks: The Book that shows you Python’s best practices with simple examples you can apply instantly to write more beautiful + Pythonic code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |