Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-08 Thread Daniel Urban
On Wed, May 9, 2012 at 3:10 AM, Nick Coghlan wrote: > On Wed, May 9, 2012 at 8:37 AM, Tres Seaver wrote: >>> No, the "mcl" in the call is just the designated metaclass - the >>> *actual* metaclass of the resulting class definition may be something >>> different. That's why this is a separate meth

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Xavier Morel
On 2012-05-09, at 01:41 , Alex Leach wrote: > > True. I might not need the CDATA tag to wrap the javascript then, but I still > need < and > symbols. I have no idea how to write a loop in javascript > without > one. Erm… you have them? What do you think `<` and `>` are? As to writing a loop

Re: [Python-Dev] sys.implementation

2012-05-08 Thread Eric Snow
On Tue, May 8, 2012 at 7:14 PM, Barry Warsaw wrote: > Hi Eric, > > Great job on the latest PEP 421.  I really like it. Encouragement appreciated. :) >  A few additional > comments/questions. > >  * sys.implementation.version > >   This is defined as the version of the implementation, while >  

Re: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages

2012-05-08 Thread Barry Warsaw
On May 09, 2012, at 02:17 AM, Matthias Klose wrote: >IMO, the correct fix would be not to hard-code the system include and library >directories, but get them from gcc directly (if CC is gcc), and not relying on >dpkg-architecture. > >$ gcc -v -E - [...] >#include <...> search starts here: > /usr/l

Re: [Python-Dev] sys.implementation

2012-05-08 Thread Barry Warsaw
Hi Eric, Great job on the latest PEP 421. I really like it. A few additional comments/questions. * sys.implementation.version This is defined as the version of the implementation, while sys.version_info is the version of the language. The semantics of sys.version_info have been suff

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-08 Thread Nick Coghlan
On Wed, May 9, 2012 at 8:37 AM, Tres Seaver wrote: >> No, the "mcl" in the call is just the designated metaclass - the >> *actual* metaclass of the resulting class definition may be something >> different. That's why this is a separate method from mcl.__new__. > > Why not make it a static method,

Re: [Python-Dev] Debian wheezy, amd64: make not finding files for bz2 and other packages

2012-05-08 Thread Matthias Klose
On 05.05.2012 16:13, Antoine Pitrou wrote: > On Sat, 05 May 2012 16:04:40 +0200 > Christian Heimes wrote: >> Am 05.05.2012 15:39, schrieb Antoine Pitrou: >>> On Sat, 05 May 2012 15:31:24 +0200 >>> Christian Heimes wrote: Am 05.05.2012 12:36, schrieb Antoine Pitrou: > > Hello, > >

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
On Tuesday 08 May 2012 23:15:43 And Clover wrote: | | CDATA sections are of use for hand-authoring readability, but don't help | in machine-serialised documents. You don't get away from the need to | encode out-of-band sequences (notably ]]> is still invalid) so it | doesn't buy you any simplicity

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/07/2012 09:59 PM, Nick Coghlan wrote: > On Mon, May 7, 2012 at 11:42 PM, Hrvoje Niksic > wrote: >> On 05/07/2012 02:15 PM, Nick Coghlan wrote: >>> >>> Benjamin's suggestion of a class method on type may be a good >>> one, though. Then the invoc

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread And Clover
On 08/05/12 17:21, Alex Leach wrote: > The w3c SVG specification / recommendation > allows for

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Terry Reedy
On 5/8/2012 12:21 PM, Alex Leach wrote: Is there a better way? This really looks like a python-list question. I don't see that it has much to do with developing 3.3. (any more than most pythonl-list questions.) -- Terry Jan Reedy ___ Python-Dev m

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-08 Thread Terry Reedy
On 5/8/2012 12:50 PM, Barry Warsaw wrote: On May 08, 2012, at 11:59 AM, Nick Coghlan wrote: No, the "mcl" in the call is just the designated metaclass - the *actual* metaclass of the resulting class definition may be something different. That's why this is a separate method from mcl.__new__.

Re: [Python-Dev] Point of building without threads?

2012-05-08 Thread Antoine Pitrou
On Tue, 8 May 2012 19:40:32 +0200 Stefan Krah wrote: > Antoine Pitrou wrote: > > I guess a long time ago, threading support in operating systems wasn't > > very widespread, but these days all our supported platforms have it. > > Is it still useful for production purposes to configure > > --withou

Re: [Python-Dev] c/ElementTree XML serialisation

2012-05-08 Thread Alex Leach
Furthermore, if I use the "html" method (an option given to ElementTree.write), closing tags are converted to lower case, which leads to an XML parsing error with camel-cased tag names. Using the "text" method instead removes all tags, and I get a ValueError if I try to use the "c14n" method. T

Re: [Python-Dev] Point of building without threads?

2012-05-08 Thread Stefan Krah
Antoine Pitrou wrote: > I guess a long time ago, threading support in operating systems wasn't > very widespread, but these days all our supported platforms have it. > Is it still useful for production purposes to configure > --without-threads? Do people use this option for something else than > c

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-08 Thread Paul Moore
On 8 May 2012 17:14, Carl Meyer wrote: > I don't think anyone has proposed making symlinks the default on Windows. At > this point the two options on Windows would be to use the --symlink option > explicitly, or else to need to run "pyvenv --upgrade" on your envs if you > upgrade the underlying Py

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-08 Thread Barry Warsaw
On May 08, 2012, at 11:59 AM, Nick Coghlan wrote: >No, the "mcl" in the call is just the designated metaclass - the >*actual* metaclass of the resulting class definition may be something >different. That's why this is a separate method from mcl.__new__. I'm not completely sold on adding a class m

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-08 Thread Carl Meyer
Hi Paul, On 05/07/2012 04:16 PM, Paul Moore wrote: On 7 May 2012 21:55, "Martin v. Löwis" wrote: This sounds to me like a level of complexity unwarranted by the severity of the problem, especially when considering the additional burden it imposes on alternative Python implementations. OTOH,

Re: [Python-Dev] Python 3.3 cannot find BeautifulSoup but Python 3.2 can

2012-05-08 Thread Barry Warsaw
On May 08, 2012, at 11:13 AM, Brett Cannon wrote: >This really isn't the right mailing list to ask this kind of question (I >know you got help last time with your Debian-specific problem, but that was >because people got overly excited =). Python-dev is meant for discussing >the development *of* P

Re: [Python-Dev] Python 3.3 cannot find BeautifulSoup but Python 3.2 can

2012-05-08 Thread Brett Cannon
This really isn't the right mailing list to ask this kind of question (I know you got help last time with your Debian-specific problem, but that was because people got overly excited =). Python-dev is meant for discussing the development *of* Python, not using it or developing *with* it. I would t

Re: [Python-Dev] PEP 405 (pyvenv) and system Python upgrades

2012-05-08 Thread Vinay Sajip
Carl Meyer oddbird.net> writes: > The "version" key could in theory be useful to know whether a particular > venv created by that Python has or has not yet been upgraded to match, > but since the upgrade is trivial and idempotent I don't think that is > important. Agreed it's not essential, b

Re: [Python-Dev] Point of building without threads?

2012-05-08 Thread Kristján Valur Jónsson
> > I guess a long time ago, threading support in operating systems wasn't very > widespread, but these days all our supported platforms have it. > Is it still useful for production purposes to configure --without-threads? Do > people use this option for something else than curiosity of mind? F