Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-28 Thread Alexander Belopolsky
On Sun, Jul 25, 2010 at 10:52 PM, Guido van Rossum gu...@python.org wrote: .. How hard would it be to recode the sprintf language but with the locale fixed to C? That would always be ASCII. This is exactly what I proposed at http://bugs.python.org/issue7584#msg110240 not so long ago.  Given

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Eric Smith
On 7/23/10 2:44 AM, Guido van Rossum wrote: Indeed, we meant b'...{}...{}...'.format(x, y). The problem is that it can't invoke x.__format__() or y.__format__() since those will return text strings instead of bytes. A proposed solution was to try x.__bformat__() etc. Another proposed solution

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Alexander Belopolsky
On Fri, Jul 23, 2010 at 2:44 AM, Guido van Rossum gu...@python.org wrote: .. Indeed, we meant b'...{}...{}...'.format(x, y). The problem is that it can't invoke x.__format__() or y.__format__() since those will return text strings instead of bytes. A proposed solution was to try

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Alexander Belopolsky
On Sun, Jul 25, 2010 at 1:13 PM, Eric Smith e...@trueblade.com wrote: On 7/23/10 2:44 AM, Guido van Rossum wrote: Indeed, we meant b'...{}...{}...'.format(x, y). The problem is that it can't invoke x.__format__() or y.__format__() since those will return text strings instead of bytes. A

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Guido van Rossum
On Sun, Jul 25, 2010 at 10:41 AM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: On Sun, Jul 25, 2010 at 1:13 PM, Eric Smith e...@trueblade.com wrote: On 7/23/10 2:44 AM, Guido van Rossum wrote: Indeed, we meant b'...{}...{}...'.format(x, y). The problem is that it can't invoke

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Alexander Belopolsky
On Sun, Jul 25, 2010 at 9:46 PM, Guido van Rossum gu...@python.org wrote: .. If I had to choose I'd never show the microseconds. Or the timezone offset, right? ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Alexander Belopolsky
On Sun, Jul 25, 2010 at 9:46 PM, Guido van Rossum gu...@python.org wrote: .. Maybe self.__format__(..).encode('ascii')?  ...encode('utf-8') is a tempting alternative as well. -1 That would bring back the it fails for some users but passes for the developer problem. (True, if the developer

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-25 Thread Guido van Rossum
On Sun, Jul 25, 2010 at 7:20 PM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: On Sun, Jul 25, 2010 at 9:46 PM, Guido van Rossum gu...@python.org wrote: .. Maybe self.__format__(..).encode('ascii')?  ...encode('utf-8') is a tempting alternative as well. -1 That would bring

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-23 Thread Guido van Rossum
On Thu, Jul 22, 2010 at 6:50 PM, Eric Smith e...@trueblade.com wrote: Thanks for writing this, Tim. On 7/21/10 11:11 AM, Tim Golden wrote: The issue of a __format__ equivalent for bytes was also raised as was the idea of object methods to render an object as string or bytes, which could be

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-23 Thread Brett Cannon
On Thu, Jul 22, 2010 at 13:00, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 22 Jul 2010 08:51:57 +0100 Brett Cannon br...@python.org wrote: That's an option. I just remember Tim bringing up something about that approach that didn't quite work as a complete replacement for __del__.

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Brett Cannon
On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 21 Jul 2010 11:42:00 -0400 Jesse Noller jnol...@gmail.com wrote: On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk wrote: [...snip...] A messy discussion turned on the question of garbage

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Maciej Fijalkowski
On Thu, Jul 22, 2010 at 9:51 AM, Brett Cannon br...@python.org wrote: On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 21 Jul 2010 11:42:00 -0400 Jesse Noller jnol...@gmail.com wrote: On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk wrote:

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Barry Warsaw
On Jul 21, 2010, at 04:11 PM, Tim Golden wrote: The email module needs some work in Py3. David Murray has been given some money by the PSF but needs more from other sources to complete the work. This is hampered by the legalities around commercial organisations making donations to not-for-profits

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Antoine Pitrou
On Thu, 22 Jul 2010 08:51:57 +0100 Brett Cannon br...@python.org wrote: That's an option. I just remember Tim bringing up something about that approach that didn't quite work as a complete replacement for __del__. Basically the whole setting a module's globals to None was done before gc

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Benjamin Peterson
2010/7/22 Antoine Pitrou solip...@pitrou.net: On Thu, 22 Jul 2010 08:51:57 +0100 Brett Cannon br...@python.org wrote: That's an option. I just remember Tim bringing up something about that approach that didn't quite work as a complete replacement for __del__. Basically the whole setting a

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Eric Smith
Thanks for writing this, Tim. On 7/21/10 11:11 AM, Tim Golden wrote: The issue of a __format__ equivalent for bytes was also raised as was the idea of object methods to render an object as string or bytes, which could be used in the polymorphic functions above. Does this mean

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-22 Thread Stefan Behnel
Maciej Fijalkowski, 22.07.2010 10:43: On Thu, Jul 22, 2010 at 9:51 AM, Brett Cannon wrote: Basically the whole setting a module's globals to None was done before gc came into the language. Now that it's there it seems that it might work to simply let gc clean up the module itself. But this

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Jesse Noller
On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk wrote: [...snip...] A messy discussion turned on the question of garbage collection of module objects, and the order in which finalisers are called if at all, especially when reference cycles exist. Marc Andre was proposing a

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Antoine Pitrou
On Wed, 21 Jul 2010 11:42:00 -0400 Jesse Noller jnol...@gmail.com wrote: On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden m...@timgolden.me.uk wrote: [...snip...] A messy discussion turned on the question of garbage collection of module objects, and the order in which finalisers are called if at

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Dirkjan Ochtman
On Wed, Jul 21, 2010 at 17:11, Tim Golden m...@timgolden.me.uk wrote: The Mercurial migration should move forward once Dirkjan has finished work on his thesis. Martin insisted that a for-real repository would have to be set up so that people can really see how it would work. An outstanding

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Bill Janssen
Tim, thanks for this write-up! Bill ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Tarek Ziadé
Thanks Tim ! On Wed, Jul 21, 2010 at 5:11 PM, Tim Golden m...@timgolden.me.uk wrote: [..] Several people outlined the recent heated discussion over the addition of a checkbox to the PyPI user-registration pages. Tarek has already undertaken to patch PyPI to move the checkbox back one step,

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Martin v. Löwis
Am 21.07.10 17:47, schrieb Dirkjan Ochtman: Martin Tim brought up the issue of externals which the buildbots use on Windows to bring in and build slightly patched versions of external libraries such as OpenSSL and sqlite3. The issue in hgsubversion (which is different from hgsvn) has been

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Ian Bicking
On Wed, Jul 21, 2010 at 10:11 AM, Tim Golden m...@timgolden.me.uk wrote: A discussion on the Cheeseshop / Package Index highlighted the fact that the packaging infrastructure has become increasingly important especially since setuptools, buildout and pip all download from it. Richard produced

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Dirkjan Ochtman
On Wed, Jul 21, 2010 at 19:38, Ian Bicking i...@colorstudy.com wrote: From what I've been able to tell from afar, I strongly suspect PyPI's downtimes would be greatly reduced with a move to mod_wsgi (currently it is using mod_fcgi, and most downtime is solved with an Apache restart -- mod_wsgi

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Steve Holden
On 7/21/2010 6:21 PM, Tarek Ziadé wrote: Thanks Tim ! On Wed, Jul 21, 2010 at 5:11 PM, Tim Golden m...@timgolden.me.uk wrote: [..] Several people outlined the recent heated discussion over the addition of a checkbox to the PyPI user-registration pages. Tarek has already undertaken to

Re: [Python-Dev] Python Language Summit EuroPython 2010

2010-07-21 Thread Steve Holden
On 7/21/2010 10:40 PM, Dirkjan Ochtman wrote: On Wed, Jul 21, 2010 at 19:38, Ian Bicking i...@colorstudy.com wrote: From what I've been able to tell from afar, I strongly suspect PyPI's downtimes would be greatly reduced with a move to mod_wsgi (currently it is using mod_fcgi, and most