[Python-Dev] Re: A proposal to modify `None` so that it hashes to a constant

2022-12-03 Thread Carl Friedrich Bolz-Tereick
On 29/11/2022 00:51, Guido van Rossum wrote: To stir up some more fire, I would personally be fine with sets having the same ordering guarantees as dicts, *IF* it can be done without performance degradations. So far nobody has come up with a way to ensure that. "Sets weren't meant to be determini

Re: [Python-Dev] Opcode frequency

2008-06-18 Thread Carl Friedrich Bolz
thon's opcodes. Then there are some completely optional optimizations which add opcodes (like CALL_LIKELY_BUILTIN and LOOKUP_METHOD) that can be enabled at compile time. Cheers, Carl Friedrich Bolz ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] bug or a feature?

2008-06-12 Thread Carl Friedrich Bolz
Phillip J. Eby wrote: > At 01:34 PM 6/12/2008 +0200, Carl Friedrich Bolz wrote: >> Phillip J. Eby wrote: >> > As it happens, most objects' __dict__ slots are settable by default, >> and >> > *require* that you set it to a dict or subclass thereof. >> >

Re: [Python-Dev] bug or a feature?

2008-06-12 Thread Carl Friedrich Bolz
In fact it seems to me that there is no way to set non-string keys into a type dict after class creation: Cls.__dict__ supports no setitem, setattr checks for a string argument. I think there are good arguments for not allowing strings keys in type dicts, or at least leaving it u

Re: [Python-Dev] Question about dictobject.c:lookdict_string

2007-06-11 Thread Carl Friedrich Bolz
ictionary. So you need to change to lookdict, otherwise that lookup might fail. Cheers, Carl Friedrich Bolz ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.o

Re: [Python-Dev] pypy's interpreter/highlevel backend features

2007-03-15 Thread Carl Friedrich Bolz
Terry Reedy wrote: > "holger krekel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | We'd be very happy about feedback and opinions/questions > | (preferably until Monday, 19th March) > | > | > http://codespeak.net/pypy/extradoc/eu-report/D12.1_H-L-Backends_and_Feature_Prototype

Re: [Python-Dev] pypy-0.9.0: stackless, new extension compiler

2006-06-26 Thread Carl Friedrich Bolz
arted into the world of PyPy see here: http://codespeak.net/pypy/dist/pypy/doc/getting-started.html Sorry for the fuss and cheers, Carl Friedrich Bolz ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-d

Re: [Python-Dev] Simplify lnotab? (AST branch update)

2005-10-14 Thread Carl Friedrich Bolz
ith PyPy's inlining capabilities, since inlining in PyPy happens on a completely different level, that has nothing at all to do with Python code objects any more. So your proposed changes would not make a difference for PyPy (not even to speak about benefits). [snip] chee