Re: [Python-Dev] Split MIME headers into multiple lines near a space

2005-06-05 Thread Noam Raphael
On 5/30/05, Nick Coghlan <[EMAIL PROTECTED]> wrote: > Noam's suggestion seems reasonable to me, but I'm not > sure what the performance implications are. I think that they are not critical. The number of lines can grow by at most twice, because shorter words would not have a line of their own. The

Re: [Python-Dev] PEP 343 rewrite complete

2005-06-05 Thread Guido van Rossum
On 6/5/05, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Guido van Rossum wrote: > >> @with_template > >> def closing(obj): > >> try: > >> yield obj > >> finally: > >> obj.close() > >> > > I just realized this has a race condition. The bytecode for the > > expre

Re: [Python-Dev] PEP 343 rewrite complete

2005-06-05 Thread Martin v. Löwis
Guido van Rossum wrote: >> @with_template >> def closing(obj): >> try: >> yield obj >> finally: >> obj.close() >> > I just realized this has a race condition. The bytecode for the > expression closing(open("...")) must necessarily contain a bytecode > that calls

Re: [Python-Dev] PEP 343 rewrite complete

2005-06-05 Thread Paul Moore
On 6/1/05, Guido van Rossum <[EMAIL PROTECTED]> wrote: > I hope that I've got the rewrite of PEP 343 to include generator > extensions right now. I've chosen the 'with' keyword. Please review > here; I think this is ready for review by the unwashed masses. :-) > > http://www.python.org/peps/pep-

Re: [Python-Dev] Summer of Code: Developing complete SSL support for Python

2005-06-05 Thread Gustavo J. A. M. Carneiro
On Sat, 2005-06-04 at 12:26 -0600, Shane Hathaway wrote: > Florencio Cano Gabarda wrote: > > I would like to do the new SSL module as good as possible. A piece of > > art and efficiency if possible and obviusly having in mind all > > programming standards. > > Guido and much of the community would