Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Stefan Behnel
James Y Knight, 10.03.2011 06:52: But you're also left with not being able to 'import hashlib'. While python has fallback code, those modules (_md5, _sha, _sha256, _sha512) aren't built if openssl was found at build time. So you can't just select at runtime that you didn't want to use openssl.

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Stephen J. Turnbull
Westley Martínez writes: > Is it legal to distribute GPL programs that use the Win32 API? Yes. Their use of the Win32 API falls under the "essential system library" clause. The criterion for "essential" is that normal, basic use of the system would fail without the library. Windows won't boot

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread James Y Knight
On Mar 9, 2011, at 6:45 PM, Sandro Tosi wrote: > It seems introduced by the patch debian/patches/setup-modules-ssl.diff > with description "# DP: Modules/Setup.dist: patch to build _hashlib > and _ssl extensions statically" Indeed you're right -- out of the box, python still builds _ssl.so as a s

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Stephen J. Turnbull
Joao S. O. Bueno writes: > Any libraries commonly avaliable with a CPython instalation can be > considered as "system libraries" for GPL purposes - and so > this would fall in the "system library exception" as described by the FAQ: Note that your interpretation would allow Python to distribute

Re: [Python-Dev] Bugs in thread_nt.h

2011-03-09 Thread Martin v. Löwis
Am 09.03.11 20:25, schrieb Sturla Molden: These methods require the memory to be aligned on 32-byte boundaries. You misread the documentation - it's a 32-*bit* boundary that the LONG variable must be on. The malloc() call that is currently used trivially meets this requirement. As for the vola

Re: [Python-Dev] hg diff

2011-03-09 Thread Daniel Stutzbach
On Tue, Mar 8, 2011 at 6:30 PM, Éric Araujo wrote: > What’s the command you use with git? Maybe someone will find the Mercurial one. > Something like the following, assuming we're both working on branch "master" to begin with. git fetch their-repository master:experimental-branch git diff mas

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Joao S. O. Bueno
On Thu, Mar 10, 2011 at 12:49 AM, Westley Martínez wrote: > On Wed, 2011-03-09 at 18:20 -0500, James Y Knight wrote: >> It's well known that OpenSSL is incompatible with the GPL. [1] Python (from >> 2.6) is *always* linked against openssl, instead of waiting for you to >> "import ssl". >> >> Doe

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Martin v. Löwis
Am 09.03.11 18:20, schrieb James Y Knight: [1] Python (from 2.6) is *always* linked against openssl Others have already pointed that out, but let me stress it again: this statement is false. It is as possible and easy to build Python without OpenSSL as it always was. > instead of waiting for y

Re: [Python-Dev] hg diff

2011-03-09 Thread Martin v. Löwis
> IMO, it's "hg diff --git" that's broken, as it doesn't include the base > revision (other formats, such as "hg export", do). I agree that it's poor form to omit the revisions, and we should supplicate Mercury at his temple. But I don't see the problem for Reitveld integration; they're ea

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Westley Martínez
On Wed, 2011-03-09 at 18:20 -0500, James Y Knight wrote: > It's well known that OpenSSL is incompatible with the GPL. [1] Python (from > 2.6) is *always* linked against openssl, instead of waiting for you to > "import ssl". > > Doesn't this mean it's now impossible (rather, a license violation)

Re: [Python-Dev] Bugs in thread_nt.h

2011-03-09 Thread Sturla Molden
Den 10.03.2011 03:02, skrev Mark Hammond: These issues are best put in the tracker so they don't get lost - especially at the moment with lots of regulars at pycon. Ok, sorry :-) It would also be good to know if there is an actual behaviour bug caused by this (ie, what problems can be obse

Re: [Python-Dev] Support the /usr/bin/python2 symlink upstream

2011-03-09 Thread Ronald Oussoren
On 4 Mar, 2011, at 16:35, Martin v. Löwis wrote: > > > I'd still like the PEP to tell me whether it's python3w.exe or > pythonw3.exe (and yes, that's bikeshedding - so somebody just tell > me). It would also be good if the PEP took a position on providing > pythonXY.exe binaries on Windows (with

Re: [Python-Dev] constant folding of -0

2011-03-09 Thread Eugene Toder
> Indeed, see http://bugs.python.org/issue11244 Yes, I've noticed that too. However, if I'm not missing something, your patches do not address folding of -0. Btw, there's an alternative approach to allow "recursive" constant folding. Instead of keeping a stack of last constants, you can keep a po

Re: [Python-Dev] Bugs in thread_nt.h

2011-03-09 Thread Mark Hammond
These issues are best put in the tracker so they don't get lost - especially at the moment with lots of regulars at pycon. It would also be good to know if there is an actual behaviour bug caused by this (ie, what problems can be observed which are caused by the current code?) Cheers, Mark

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Joao S. O. Bueno
On Wed, Mar 9, 2011 at 8:20 PM, James Y Knight wrote: > It's well known that OpenSSL is incompatible with the GPL. [1] Python (from > 2.6) is *always* linked against openssl, instead of waiting for you to > "import ssl". > > Doesn't this mean it's now impossible (rather, a license violation) to

[Python-Dev] Bugs in thread_nt.h

2011-03-09 Thread Sturla Molden
Atomic operations (InterlockedCompareExchange, et al.) are used on the field 'owned' in NRMUTEX. These methods require the memory to be aligned on 32-byte boundaries. They also require the volatile qualifer. Three small changes are therefore needed (see below). Regards, Sturla Molden t

Re: [Python-Dev] constant folding of -0

2011-03-09 Thread Antoine Pitrou
Hello, > I've noticed since version 3.2 python doesn't fold -0: Indeed, see http://bugs.python.org/issue11244 Regards Antoine. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

[Python-Dev] constant folding of -0

2011-03-09 Thread Eugene Toder
Hello, I've noticed since version 3.2 python doesn't fold -0: Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07) >>> def foo(): return -0 >>> dis(foo) 1 0 LOAD_CONST 1 (0) 3 RETURN_VALUE Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) >>> def foo(): return -0

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Sandro Tosi
On Thu, Mar 10, 2011 at 00:32, Antoine Pitrou wrote: > Also, with the system Python 2.6 shipped on a Mandriva distribution: > > $ ldd /usr/bin/python >        linux-vdso.so.1 =>  (0x7fff8456d000) >        libpython2.6.so.1.0 => /usr/lib64/libpython2.6.so.1.0 > (0x7f1a0b1e2000) libc.so.6 =>

Re: [Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread Antoine Pitrou
On Wed, 9 Mar 2011 18:20:01 -0500 James Y Knight wrote: > It's well known that OpenSSL is incompatible with the GPL. [1] Python (from > 2.6) is *always* linked against openssl, instead of waiting for you to > "import ssl". > > Doesn't this mean it's now impossible (rather, a license violation)

Re: [Python-Dev] PyCObject_AsVoidPtr removed from python 3.2 - is this documented?

2011-03-09 Thread Barry Scott
On 9 Mar 2011, at 06:50, Georg Brandl wrote: > On 08.03.2011 23:47, "Martin v. Löwis" wrote: I think everything here is as it should be. People who really cared about forwards compatibility could have known, but factually, most people don't care enough. Those then learn for the firs

[Python-Dev] GPL'd python code vs Python2.6 linked against OpenSSL

2011-03-09 Thread James Y Knight
It's well known that OpenSSL is incompatible with the GPL. [1] Python (from 2.6) is *always* linked against openssl, instead of waiting for you to "import ssl". Doesn't this mean it's now impossible (rather, a license violation) to distribute a GPL'd python program (or to use a GPL'd library in

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Terry Reedy
On 3/9/2011 9:50 AM, Tim Lesher wrote: We used to do biweekly-ish Python-Dev summaries for this reason. They were, is a sense, too detailed, complete, and voluminous. In whatever format, terser announcement of just things others really need to know - like decisions that affect them, would pro

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Terry Reedy
On 3/9/2011 4:14 PM, Antoine Pitrou wrote: On Wed, 9 Mar 2011 19:42:36 +0100 Perhaps the part of the "what's new" document which deals with porting issues and compatibility breakage would need more highlighting? That could go at the tops. Deletions in 3.3 ... Planned deletions in future ver

Re: [Python-Dev] PEP 395: Module Aliasing

2011-03-09 Thread P.J. Eby
At 05:35 PM 3/4/2011 +, Michael Foord wrote: That (below) is not distutils it is setuptools. distutils just uses `scripts=[...]`, which annoyingly *doesn't* work with setuptools. Er, what? That's news to me. Could you file a bug report about what doesn't work, specifically? ___

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Antoine Pitrou
On Wed, 9 Mar 2011 19:42:36 +0100 Giampaolo Rodolà wrote: > > Actually, why not put up a web page of "upcoming changes" somewhere, that > > lists major decisions with user impact that were taken on python-dev? > > I think "what's new" serves this purpose properly. > Usually, every time I commit a

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Doug Hellmann
On Mar 9, 2011, at 9:50 AM, Tim Lesher wrote: > On Wed, Mar 9, 2011 at 01:15, Stefan Behnel wrote: >> Actually, why not put up a web page of "upcoming changes" somewhere, that >> lists major decisions with user impact that were taken on python-dev? >> Including a link to the relevant discussion

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Giampaolo Rodolà
> Actually, why not put up a web page of "upcoming changes" somewhere, that > lists major decisions with user impact that were taken on python-dev? I think "what's new" serves this purpose properly. Usually, every time I commit a new feature, I update the what's new file as well. In fact we alread

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Jesse Noller
On Wed, Mar 9, 2011 at 1:15 AM, Stefan Behnel wrote: > "Martin v. Löwis", 08.03.2011 23:47: I think everything here is as it should be. People who really cared about forwards compatibility could have known, but factually, most people don't care enough. Those then learn for the

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Tim Lesher
On Wed, Mar 9, 2011 at 01:15, Stefan Behnel wrote: > Actually, why not put up a web page of "upcoming changes" somewhere, that > lists major decisions with user impact that were taken on python-dev? > Including a link to the relevant discussion and decision. Often enough, > decisions are taken ins

Re: [Python-Dev] Implementation of variable sized objects.

2011-03-09 Thread Eric Smith
On 3/9/2011 7:55 AM, Mark Shannon wrote: Hi, I hope this is the right place to ask this. Do anyone know why the str (unicode) object is implemented with an external buffer like list, rather than internal one like tuple and bytes? Would anything bad happen if it were changed? I'm not suggesting

[Python-Dev] Implementation of variable sized objects.

2011-03-09 Thread Mark Shannon
Hi, I hope this is the right place to ask this. Do anyone know why the str (unicode) object is implemented with an external buffer like list, rather than internal one like tuple and bytes? Would anything bad happen if it were changed? I'm not suggesting any changes, just doing some research. C

Re: [Python-Dev] hg mq workflow is broken (issue11450)

2011-03-09 Thread Scott Dial
On 3/9/2011 3:15 AM, Scott Dial wrote: > I wanted to draw attention to issue11450 [1]. In trying to using mq to > work on patches for CPython, I found that I could no longer get regrtest > to run. Just to update this thread, thanks to the swift work of Nadeem Vawda and Antoine for pushing it in, i

Re: [Python-Dev] public visibility of python-dev decisions "before it's too late" (was: PyCObject_AsVoidPtr removed from python 3.2 - is this documented?)

2011-03-09 Thread Nick Coghlan
On Wed, Mar 9, 2011 at 1:15 AM, Stefan Behnel wrote: > A publicly visible list of those decisions would > > a) make it easier for non-core developers to follow important changes on > python-dev > > b) allow potentially impacted people to bring up their POV more quickly, > e.g. during the alpha cyc

Re: [Python-Dev] [PEPs] Support the /usr/bin/python2 symlink upstream

2011-03-09 Thread Paul Moore
On 9 March 2011 06:27, Mark Hammond wrote: > I'm glad solving world hunger is out of scope for this :)  I understand your > position but my personal opinion is that simple support for #! is more > desirable.  I'd be happy to go with the consensus though... Just in case you need some reassurance a

[Python-Dev] hg mq workflow is broken (issue11450)

2011-03-09 Thread Scott Dial
I wanted to draw attention to issue11450 [1]. In trying to using mq to work on patches for CPython, I found that I could no longer get regrtest to run. This issue comes down to the size of the output of "hg id -t ." being much longer than expected. $ hg qnew dummy-patch $ echo "/* dummy change */"

Re: [Python-Dev] [PEPs] Support the /usr/bin/python2 symlink upstream

2011-03-09 Thread Terry Reedy
On 3/9/2011 1:27 AM, Mark Hammond wrote: your position but my personal opinion is that simple support for #! is more desirable. I agree. One weird line in a file is enough! -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org http:/