"a_test") as f:
f.write("hello")
assert file("a_test", "rb").read() == 'hello'
assert os.path.exists(TDIR)
os.rmdir(TDIR)
with topen("a_test", mode="rb") as f:
assert f.read() == "hello&q
On Fri, 10 Feb 2006 16:49:13 +1300, Greg Ewing <[EMAIL PROTECTED]> wrote:
>Valentino Volonghi aka Dialtone wrote:
>
>> when some_operation_that_results_in_a_deferred() -> result:
>> if result == 'Initial Value':
>> when work_on_result
rk to support that
syntax. Something like:
callback(initial_value)
add_callback(callback, *a, **kw)
add_errback(callback, *a, **kw)
(extra methods if needed)
HTH
--
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
New Pet: http://www.stiq.it
have this deferred handler support. When they found some of the stuff
Here I think you meant that medusa didn't handle computation in separate
threads instead.
--
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
New Pe
bother the list then. Thanks for the kind replies.
--
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
http://weever.berlios.de
pgpeKPBtN4P2s.pgp
Description: PGP signature
___
Python-Dev mailing list
Py
on before
passing it to any/all.
Thanks.
--
Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
http://weever.berlios.de
pgpm3YZZLyclq.pgp
Description: PGP signature
___
Python-Dev mailing list
Python