Re: [Python-Dev] Compact ordered dict is not ordered for split table. (was: PEP XXX: Compact ordered dict

2016-06-25 Thread INADA Naoki
On Sun, Jun 26, 2016 at 8:40 AM, Franklin? Lee wrote: > On Jun 21, 2016 11:12 AM, "INADA Naoki" wrote: >> >> I'm sorry, but I hadn't realized which compact ordered dict is >> not ordered for split table. >> >> For example: >> >>> class A: >> ... ... >> ... >> >>> a = A() >> >>> b = A() >> >>> a

Re: [Python-Dev] Compact ordered dict is not ordered for split table. (was: PEP XXX: Compact ordered dict

2016-06-25 Thread Franklin? Lee
On Jun 21, 2016 11:12 AM, "INADA Naoki" wrote: > > I'm sorry, but I hadn't realized which compact ordered dict is > not ordered for split table. > > For example: > >>> class A: > ... ... > ... > >>> a = A() > >>> b = A() > >>> a.a = 1 > >>> a.b = 2 > >>> b.b = 3 > >>> b.a = 4 > >>> a.__dict__.it

Re: [Python-Dev] When to use EOFError?

2016-06-25 Thread Serhiy Storchaka
On 22.06.16 19:22, André Malo wrote: I often concatenate multiple pickles into one file. When reading them, it works like this: try: while True: yield pickle.load(fp) except EOFError: pass In this case the truncation is not really unexpected. Maybe it should distinguish betwe

Re: [Python-Dev] When to use EOFError?

2016-06-25 Thread Serhiy Storchaka
On 22.06.16 00:17, Victor Stinner wrote: When loading truncated data with pickle, I expect a pickle error, not a generic ValueError nor EOFError. Many modules raise EOFError when read truncated data. ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] PEP 487: Simpler customization of class creation

2016-06-25 Thread Martin Teichmann
Hi Nick, hi List, thanks for the good comments! I'll update the PEP and the implementation soon, as discussed at the end, I'll do it in C this time. For now just some quick responses: > This part isn't entirely clear to me, so you may want to give some > Python pseudo-code that: I will actually