Re: [Python-Dev] Ext4 data loss

2009-03-16 Thread Valentino Volonghi
"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

Re: [Python-Dev] Let's just *keep* lambda

2006-02-10 Thread Valentino Volonghi aka Dialtone
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

Re: [Python-Dev] Let's just *keep* lambda

2006-02-09 Thread Valentino Volonghi aka Dialtone
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

Re: [Python-Dev] threadsafe patch for asynchat

2006-02-08 Thread Valentino Volonghi aka Dialtone
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

Re: [Python-Dev] Small any/all enhancement

2005-12-27 Thread Valentino Volonghi aka Dialtone
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

[Python-Dev] Small any/all enhancement

2005-12-27 Thread Valentino Volonghi aka Dialtone
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