Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Automated update-Scrapy V0.1 Fixing Navigation links Automatic Nagivation Script

...

Wiki Markup
Joshua Bloch \[[Bloch 2008|AA. Bibliography#Bloch 08]\] suggests implementing a {{stop()}} method explicitly such that it leaves the class in an unusable state beyond its lifetime. A {{private}} field within the class can signal whether the class is unusable. All the class methods must check this field prior to operating on the class. This is akin to [the first exception|OBJ04OBJ05-J. Do not allow access to partially initialized objects#OBJ04-EX1] discussed in guideline [OBJ04OBJ05-J. Do not allow access to partially initialized objects]. As always, a good place to call the termination logic is in the {{finally}} block.

...