Re: [Python-Dev] Requesting that a class be a new-style class

2005-02-19 Thread Michael Walter
But... only as an additional option, not as a replacement, right? Michael On Sat, 19 Feb 2005 03:01:14 -0500, Raymond Hettinger [EMAIL PROTECTED] wrote: This is something I've typed way too many times: Py class C(): File stdin, line 1 class C(): ^

[Python-Dev] Re: Prospective Peephole Transformation

2005-02-19 Thread Fredrik Lundh
Tim Peters wrote: [Fredrik Lundh] wouldn't be the first time... How soon we forget wink. oh, that was in the dark ages of Python 1.4. I've rebooted myself many times since then... Fredrik introduced a pile of optimizations special-casing the snot out of small integers into ceval.c a

[Python-Dev] Re: builtin_id() returns negative numbers

2005-02-19 Thread Fredrik Lundh
Donovan Baarda wrote: Apparently lawyers have decided that you can't give code away. Intellectual charity is illegal :-) what else would a lawyer say? do you really expect lawyers to admit that there are ways to do things that don't involve lawyers? /F

Re: [Python-Dev] builtin_id() returns negative numbers

2005-02-19 Thread Martin v. Löwis
Donovan Baarda wrote: Seriously, on the Python lists there has been a discussion rejecting an md5sum implementation because the author donated it to the public domain. Apparently lawyers have decided that you can't give code away. Intellectual charity is illegal :-) Despite the smiley: It is not

Re: [Python-Dev] Re: Prospective Peephole Transformation

2005-02-19 Thread Aahz
On Sat, Feb 19, 2005, Martin v. L?wis wrote: Fredrik Lundh wrote: I'd say that this explains why it would still make sense to let the code generator change x in (a, b, c) to x == a or x == b or x == c, as long as a, b, and c are all integers. How often does that happen in real code? Dunno

Re: [Python-Dev] Requesting that a class be a new-style class

2005-02-19 Thread Guido van Rossum
This is something I've typed way too many times: Py class C(): File stdin, line 1 class C(): ^ SyntaxError: invalid syntax It's the asymmetry with functions that gets to me - defining a function with no arguments still requires parentheses in the