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 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 >> t

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 wrote: > On Sun, Jul 25, 2010 at 9:46 PM, Guido van Rossum 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

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 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 calls .

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 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 http://mail.python.org/mailman/listinfo/python-dev Unsubsc

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 wrote: > On Sun, Jul 25, 2010 at 1:13 PM, Eric Smith 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

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 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 proposed soluti

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 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. Anothe

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 was

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

2010-07-23 Thread Brett Cannon
On Thu, Jul 22, 2010 at 13:00, Antoine Pitrou wrote: > On Thu, 22 Jul 2010 08:51:57 +0100 > Brett Cannon 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 se

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

2010-07-22 Thread Guido van Rossum
On Thu, Jul 22, 2010 at 6:50 PM, Eric Smith 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 used in t

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 bring

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 bytes.__format__

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

2010-07-22 Thread Benjamin Peterson
2010/7/22 Antoine Pitrou : > On Thu, 22 Jul 2010 08:51:57 +0100 > Brett Cannon 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

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 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 > came into the

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-prof

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 wrote: > > > On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou wrote: >> >> On Wed, 21 Jul 2010 11:42:00 -0400 >> Jesse Noller wrote: >> > On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden >> > wrote: >> > [...snip...] >> > > A messy discussion turned on the

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

2010-07-22 Thread Brett Cannon
On Wed, Jul 21, 2010 at 16:58, Antoine Pitrou wrote: > On Wed, 21 Jul 2010 11:42:00 -0400 > Jesse Noller wrote: > > On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden > wrote: > > [...snip...] > > > A messy discussion turned on the question of garbage collection of > module > > > objects, and the ord

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 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 w

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 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

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

2010-07-21 Thread Dirkjan Ochtman
On Wed, Jul 21, 2010 at 19:38, Ian Bicking 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 generally recov

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 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 > graphs showing t

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 fi

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 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, allowing > existin

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 Dirkjan Ochtman
On Wed, Jul 21, 2010 at 17:11, Tim Golden 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 issue > in hg-svn prev

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 wrote: > On Wed, Jul 21, 2010 at 11:11 AM, Tim Golden 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 refere

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 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 __cleanup__ magic > f