Re: [Python-Dev] bytes / unicode

2010-06-27 Thread Antoine Pitrou
On Sat, 26 Jun 2010 23:49:11 -0400 P.J. Eby p...@telecommunity.com wrote: Remember, bytes and strings already have to detect mixed-type operations. Not in Python 3. They just raise a TypeError on bad (mixed-type) arguments. Regards Antoine. ___

Re: [Python-Dev] thoughts on the bytes/string discussion

2010-06-27 Thread Greg Ewing
Stefan Behnel wrote: Greg Ewing, 26.06.2010 09:58: Would there be any sanity in having an option to compile Python with UTF-8 as the internal string representation? It would break Py_UNICODE, because the internal size of a unicode character would no longer be fixed. It's not fixed anyway

[Python-Dev] Adopt A Demo [was: Signs of neglect?]

2010-06-27 Thread Georg Brandl
Am 26.06.2010 00:38, schrieb Steve Holden: I was pretty stunned when I tried this. Remember that the Tools subdirectory is distributed with Windows, so this means we got through almost two releases without anyone realizing that 2to3 does not appear to have touched this code. Yes, I have:

Re: [Python-Dev] #Python3 ! ? (was Python Library Support in 3.x)

2010-06-27 Thread Georg Brandl
Am 22.06.2010 01:01, schrieb Terry Reedy: On 6/21/2010 3:59 PM, Steve Holden wrote: Terry Reedy wrote: On 6/21/2010 8:33 AM, Nick Coghlan wrote: P.S. (We're going to have a tough decision to make somewhere along the line where docs.python.org is concerned, too - when do we flick the switch

Re: [Python-Dev] Adopt A Demo [was: Signs of neglect?]

2010-06-27 Thread Mark Dickinson
On Sun, Jun 27, 2010 at 10:41 AM, Georg Brandl g.bra...@gmx.net wrote: So -- if every dev adopted a Tool or Demo, that would be quite a manageable piece of work, and maybe a few demos can be brought up to scratch instead of be deleted. I'll go ahead and promise to care for the Demo/classes

Re: [Python-Dev] thoughts on the bytes/string discussion

2010-06-27 Thread Eric Smith
On 6/27/2010 5:48 AM, Greg Ewing wrote: Stefan Behnel wrote: Greg Ewing, 26.06.2010 09:58: Would there be any sanity in having an option to compile Python with UTF-8 as the internal string representation? It would break Py_UNICODE, because the internal size of a unicode character would no

Re: [Python-Dev] bytes / unicode

2010-06-27 Thread Stephen J. Turnbull
P.J. Eby writes: At 12:42 PM 6/26/2010 +0900, Stephen J. Turnbull wrote: What I'm saying here is that if bytes are the signal of validity, and the stdlib functions preserve validity, then it's better to have the stdlib functions object to unicode data as an argument. Compare the

Re: [Python-Dev] Adopt A Demo [was: Signs of neglect?]

2010-06-27 Thread Alexander Belopolsky
On Sun, Jun 27, 2010 at 5:57 AM, Mark Dickinson dicki...@gmail.com wrote: On Sun, Jun 27, 2010 at 10:41 AM, Georg Brandl g.bra...@gmx.net wrote: So -- if every dev adopted a Tool or Demo, that would be quite a manageable piece of work, and maybe a few demos can be brought up to scratch instead

Re: [Python-Dev] Adopt A Demo [was: Signs of neglect?]

2010-06-27 Thread M.-A. Lemburg
Alexander Belopolsky wrote: On Sun, Jun 27, 2010 at 5:57 AM, Mark Dickinson dicki...@gmail.com wrote: On Sun, Jun 27, 2010 at 10:41 AM, Georg Brandl g.bra...@gmx.net wrote: So -- if every dev adopted a Tool or Demo, that would be quite a manageable piece of work, and maybe a few demos can be

Re: [Python-Dev] bytes / unicode

2010-06-27 Thread P.J. Eby
At 03:53 PM 6/27/2010 +1000, Nick Coghlan wrote: We could talk about this even longer, but the most effective way forward is going to be a patch that improves the URL parsing situation. Certainly, it's the only practical solution for the immediate problems in 3.2. I only mentioned that I hate

[Python-Dev] pybench

2010-06-27 Thread Antoine Pitrou
On Sun, 27 Jun 2010 10:47:08 -0400 Alexander Belopolsky alexander.belopol...@gmail.com wrote: I have a patch for pybench attached to a not so related issue at http://bugs.python.org/issue5180 . All it took was a 2to3 run and a one line change. Of course it need a review before it can go in,

Re: [Python-Dev] #Python3 ! ? (was Python Library Support in 3.x)

2010-06-27 Thread Terry Reedy
On 6/27/2010 5:44 AM, Georg Brandl wrote: Am 22.06.2010 01:01, schrieb Terry Reedy: On 6/21/2010 3:59 PM, Steve Holden wrote: Terry Reedy wrote: On 6/21/2010 8:33 AM, Nick Coghlan wrote: P.S. (We're going to have a tough decision to make somewhere along the line where docs.python.org is

Re: [Python-Dev] #Python3 ! ? (was Python Library Support in 3.x)

2010-06-27 Thread Martin v. Löwis
Am 21.06.2010 17:13, schrieb Stephan Richter: On Monday, June 21, 2010, Nick Coghlan wrote: A decent listing of major packages that already support Python 3 would be very handy for the new Python2orPython3 page I created on the wiki, and easier to keep up-to-date. (the old Early2to3Migrations

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Roumen Petrov
Brett Cannon wrote: On Sat, Jun 26, 2010 at 16:37, M.-A. Lemburgm...@egenix.com wrote: Brett Cannon wrote: On Wed, Jun 23, 2010 at 14:53, Brett Cannonbr...@python.org wrote: [SKIP] Since no one objected I swapped the order in r82259. In case anyone else uses clang to compile Python, this

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Mark Dickinson
On Sun, Jun 27, 2010 at 12:37 AM, M.-A. Lemburg m...@egenix.com wrote: Brett Cannon wrote: On Wed, Jun 23, 2010 at 14:53, Brett Cannon br...@python.org wrote: I finally realized why clang has not been silencing its warnings about unused return values: I have -Wno-unused-value set in CFLAGS

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Mark Dickinson
On Sun, Jun 27, 2010 at 6:46 AM, Jeffrey Yasskin jyass...@gmail.com wrote: AC_PROG_CC is the macro that sets CFLAGS to -g -O2 on gcc-based systems (http://www.gnu.org/software/hello/manual/autoconf/C-Compiler.html#index-AC_005fPROG_005fCC-842). If Python's configure.in sets an otherwise-empty

Re: [Python-Dev] #Python3 ! ? (was Python Library Support in 3.x)

2010-06-27 Thread Terry Reedy
Sure. Since I expect that the argument for treating 3.2 as a regular production-use-ready release will be stronger then than now, I agree on differing discussion. I meant 'deferring' -- Terry Jan Reedy ___ Python-Dev mailing list

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Jeffrey Yasskin
On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: On Sun, Jun 27, 2010 at 6:46 AM, Jeffrey Yasskin jyass...@gmail.com wrote: AC_PROG_CC is the macro that sets CFLAGS to -g -O2 on gcc-based systems

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Brett Cannon
On Sun, Jun 27, 2010 at 13:37, Jeffrey Yasskin jyass...@gmail.com wrote: On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: On Sun, Jun 27, 2010 at 6:46 AM, Jeffrey Yasskin jyass...@gmail.com wrote: AC_PROG_CC is the macro that sets CFLAGS to -g -O2 on gcc-based systems

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-27 Thread Mark Dickinson
On Sun, Jun 27, 2010 at 9:37 PM, Jeffrey Yasskin jyass...@gmail.com wrote: On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: I think saving and restoring CFLAGS across AC_PROG_CC was attempted in http://bugs.python.org/issue8211 . It turned out that it broke OS X

Re: [Python-Dev] thoughts on the bytes/string discussion

2010-06-27 Thread Greg Ewing
Eric Smith wrote: But isn't this currently ignored everywhere in python's code? It's true that code using a utf-8 build would have to be aware of the fact much more often. But I'm thinking of applications that would otherwise want to keep all their strings encoded to save memory. If they do

Re: [Python-Dev] bytes / unicode

2010-06-27 Thread R. David Murray
I've been watching this discussion with intense interest, but have been so lagged in following the thread that I haven't replied. I got caught up today On Sun, 27 Jun 2010 15:53:59 +1000, Nick Coghlan ncogh...@gmail.com wrote: The difference is that we have three classes of algorithm here:

Re: [Python-Dev] thoughts on the bytes/string discussion

2010-06-27 Thread R. David Murray
On Fri, 25 Jun 2010 15:40:52 -0700, Bill Janssen jans...@parc.com wrote: Guido van Rossum gu...@python.org wrote: So you're really just worried about space consumption. I'd like to see a lot of hard memory profiling data before I got overly worried about that. While I've seen some big

Re: [Python-Dev] email package status in 3.X

2010-06-27 Thread R. David Murray
On Fri, 18 Jun 2010 18:52:45 -, l...@rmi.net wrote: What I'm suggesting is that extreme caution be exercised from this point forward with all things 3.X-related. Whether you wish to accept this or not, 3.X has a negative image to many. This suggestion specifically includes not abandoning

Re: [Python-Dev] [ANN]: newthreading - an approach to simplified thread usage, and a path to getting rid of the GIL

2010-06-27 Thread Gregory P. Smith
fyi - newthreading has been picked up by lwn. http://lwn.net/Articles/393822/#Comments ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: