[Twisted-Python] Woven example for article, Part II

Moshe Zadka wrote: |page = open(PAGE+'.tmp', 'w') |... |page.close() |os.rename(PAGE+'.tmp', PAGE) |is safer, and lacks race condition. Moshe is right here, of course. I was being sloppy in trying to write a quick example; but I'll make his change for the actual article. Yours, David... P.S. To Itamar: OK, I'll adjust my usage to properly call the package just "Twisted". To Andrew, and generally: I have installed a local copy of 1.0.5, and that at least makes the PicturePile example work (there are a few minor errors in the samples, but straightforward to fix)--it might be worth mentioning a minimum (maximum?) version of the package needed for tutorial examples. For someone trying to get a handle, like me, it is not immediately obvious what will fail subtely in 1.0.3 but work in 1.0.5.

On Thu, 29 May 2003, david mertz <ibook@gnosis.cx> wrote:
There is a reason the documentation comes with the package: it is relevant to the version it comes with. In particular, the documentation on tm.com is only relevant to "latest stable". This is just like Python: if you read documentation from http://www.python.org/doc/current/, don't count on it working with Python 2.1. -- Moshe Zadka -- http://moshez.org/ Buffy: I don't like you hanging out with someone that... short. Riley: Yeah, a lot of young people nowadays are experimenting with shortness. Agile Programming Language -- http://www.python.org/

On Thu, 29 May 2003, david mertz <ibook@gnosis.cx> wrote:
There is a reason the documentation comes with the package: it is relevant to the version it comes with. In particular, the documentation on tm.com is only relevant to "latest stable". This is just like Python: if you read documentation from http://www.python.org/doc/current/, don't count on it working with Python 2.1. -- Moshe Zadka -- http://moshez.org/ Buffy: I don't like you hanging out with someone that... short. Riley: Yeah, a lot of young people nowadays are experimenting with shortness. Agile Programming Language -- http://www.python.org/
participants (2)
-
david mertz
-
Moshe Zadka