Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Martin v. Löwis
Greg Ewing schrieb: If distributing the source doesn't violate the patent, and distributing a binary doesn't violate the patent, then what *would* constitute a violation of a software patent? IANAL, but AFAICT, the rights controlled by patent law are the right to make, to use, to sell, to

Re: [Python-Dev] 2.5 status

2006-08-09 Thread Georg Brandl
Tim Peters wrote: [Georg Brandl, on http://python.org/sf/1523610 - PyArg_ParseTupleAndKeywords potential core dump ] This one's almost fixed if we can decide what to do with levels. I wrote some time ago: With respect to this bug (which is about stack issues in Python/getargs.c

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Martin v. Löwis
Gregory P. Smith schrieb: disabling/enabling a cipher in openssl that isn't commonly used and isn't even directly exposed via any API to a python user hardly sounds like dropping a feature to me. Strictly speaking, it is dropping a feature: a connection that can get established with 2.5b3

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Gregory P. Smith
Strictly speaking, it is dropping a feature: a connection that can get established with 2.5b3 might not get established with 2.5c1, assuming a server that requires some IDEA-based cipher. (any sane SSL connection will negotiate AES or 3DES as its cipher; IDEA isn't required) Ok, I'll

Re: [Python-Dev] 2.5b3, commit r46372 regressed PEP 302 machinery (sf not letting me post)

2006-08-09 Thread Robin Bryce
This has an sf number now #1537167, and hopefully a clearer explanation of what I think the problem is. This is not a duplicate of the earlier PEP 302 Fix thread. Thanks, Robin On 07/08/06, Robin Bryce [EMAIL PROTECTED] wrote: Hi, Appologies for the lack of an sf#. I tried to submit this

[Python-Dev] Is this a bug?

2006-08-09 Thread Georg Brandl
Is this considered a bug? Sure, deleting modules from sys.modules isn't quite common, but it happened to me on one occasion. Python 2.4.3 (#1, Jul 29 2006, 10:52:20) import logging import sys del logging del sys.modules['logging'] ^D Error in atexit._run_exitfuncs: Traceback (most

Re: [Python-Dev] Is this a bug?

2006-08-09 Thread Matt Fleming
On 09/08/06, Georg Brandl [EMAIL PROTECTED] wrote: Is this considered a bug? Sure, deleting modules from sys.modules isn't quite common, but it happened to me on one occasion. Python 2.4.3 (#1, Jul 29 2006, 10:52:20) import logging import sys del logging del sys.modules['logging']

Re: [Python-Dev] Is this a bug?

2006-08-09 Thread Josiah Carlson
Georg Brandl [EMAIL PROTECTED] wrote: Is this considered a bug? Sure, deleting modules from sys.modules isn't quite common, but it happened to me on one occasion. Python 2.4.3 (#1, Jul 29 2006, 10:52:20) import logging import sys del logging del sys.modules['logging'] ^D

Re: [Python-Dev] Is this a bug?

2006-08-09 Thread skip
Matt Could it be considered a bug in the atexit module (or is that what Matt you meant)? Or a bug in the logging package? Skip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Jim Jewett
On 8/8/06, Greg Ewing [EMAIL PROTECTED] wrote: If distributing the source doesn't violate the patent, and distributing a binary doesn't violate the patent, then what *would* constitute a violation of a software patent? Writing new code using the algorithm? Compiling something which uses

[Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Neal Becker
class X (object): pass X() += 2 SyntaxError: can't assign to function call Suppose I actually had defined __iadd__ for class X. Python says this syntax is invalid. I wish is wasn't. Here's where I might use it. Suppose I have a container class. Suppose I could make a slice of this

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Josiah Carlson
Neal Becker [EMAIL PROTECTED] wrote: class X (object): pass X() += 2 SyntaxError: can't assign to function call [snip] Does anyone else think this would be a good addition to Python? No. += implies assignment. As the syntax error states, can't assign to function call. -1 -

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Terry Reedy
Neal Becker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] class X (object): pass X() += 2 SyntaxError: can't assign to function call Suppose I actually had defined __iadd__ for class X. Python says this syntax is invalid. I wish is wasn't. If you translate to x() = x()

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Michael Hudson
Neal Becker [EMAIL PROTECTED] writes: 1) Should assignment to a temporary object be allowed? The question doesn't make sense: in Python, you assign to a name, an attribute or a subscript, and that's it. Cheers, mwh -- exarkun I think there's a rather large difference between a stale

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Georg Brandl
Terry Reedy wrote: Neal Becker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] class X (object): pass X() += 2 SyntaxError: can't assign to function call Suppose I actually had defined __iadd__ for class X. Python says this syntax is invalid. I wish is wasn't. If you

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Guido van Rossum
On 8/9/06, Georg Brandl [EMAIL PROTECTED] wrote: Terry Reedy wrote: Neal Becker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] class X (object): pass X() += 2 SyntaxError: can't assign to function call Suppose I actually had defined __iadd__ for class X. Python

Re: [Python-Dev] SyntaxError: can't assign to function call

2006-08-09 Thread Georg Brandl
Guido van Rossum wrote: This is similar to x = ([1], 2) x[0] += [2] which doesn't currently work either, though it could. No it couldn't. You can't assign to x[0]. L += R is defined as L = L.__iadd__(R) so L must be a valid assignment target. Thanks for making that clear. I actually

[Python-Dev] Dict suppressing exceptions

2006-08-09 Thread Guido van Rossum
I've been happily ignoring python-dev for the last three weeks or so, and Neal just pointed me to some thorny issues that are close to resolution but not quite yet resolved, yet need to be before beta 3 on August 18 (Friday next week). Here's my take on the dict-suppressing-exceptions issue (I'll

[Python-Dev] __index__ clipping

2006-08-09 Thread Guido van Rossum
Here's another issue where Neal thought it would be useful if I weighed in. I'm not quite sure of the current status, but perhaps the following would work? - Called from Python, (10**10).__index__() should return 100L, not raise an exception or return sys.maxint. - The nb_index slot is

[Python-Dev] cgi DoS attack

2006-08-09 Thread Guido van Rossum
This is regarding #1112549. I think this can go in. It should also be backported to 2.4 and to 2.3 (if we ever release another one of that). I reviewed the code and added some minor comments to the SF tracker. -- --Guido van Rossum (home page: http://www.python.org/~guido/)

[Python-Dev] Dict suppressing exceptions

2006-08-09 Thread Jim Jewett
It wasn't my idea to stop ignoring exceptions in dict lookups; I would gladly have put this off until Py3k, where the main problem (str-unicode __eq__ raising UnicodeError) will go away. But since people are adamant that they want this in sooner, Is this true for dictionaries specifically?

Re: [Python-Dev] openSSL and windows binaries - license

2006-08-09 Thread Greg Ewing
Martin v. Löwis wrote: In the context of an encryption algorithm, the right to use would be the most prominent one; you wouldn't be allowed to use the algorithm unless you have a patent license. But what does use *mean* in relation to an algorithm? -- Greg

Re: [Python-Dev] __index__ clipping

2006-08-09 Thread Travis E. Oliphant
Guido van Rossum wrote: Here's another issue where Neal thought it would be useful if I weighed in. I'm not quite sure of the current status, but perhaps the following would work? - Called from Python, (10**10).__index__() should return 100L, not raise an exception or return

Re: [Python-Dev] __index__ clipping

2006-08-09 Thread Guido van Rossum
On 8/9/06, Travis E. Oliphant [EMAIL PROTECTED] wrote: Guido van Rossum wrote: Here's another issue where Neal thought it would be useful if I weighed in. I'm not quite sure of the current status, but perhaps the following would work? - Called from Python, (10**10).__index__() should

Re: [Python-Dev] Is this a bug?

2006-08-09 Thread Neal Norwitz
On 8/9/06, Josiah Carlson [EMAIL PROTECTED] wrote: 2.4 performed these imports silently, while 2.5 complains SystemError: Parent module 'x' not loaded, which is actually a useful message, and helped me fix it. Can you make a small, self-contained test case? The SystemError should be a normal

[Python-Dev] DRAFT: python-dev summary for 2006-07-01 to 2006-07-15

2006-08-09 Thread Steven Bethard
Here's the summary for the first half of July. Corrections and comments are greatly apprecieated. Particularly for the section on restricted execution (though my understanding is that the current plans are somewhat different than what was discussed during the first half of July). =