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

2016-06-26 Thread INADA Naoki
>> Another idea (though it has several issues and seems like a step backward): >> a split-table dict can have a separate iteration list, indexing into the >> entry table. There are ways to share iteration lists, and make it so that >> adding the same keys in the same order each time results in the

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

2016-06-26 Thread André Malo
* Serhiy Storchaka wrote: > 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 trunc

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

2016-06-26 Thread Guido van Rossum
I think this is an interesting idea and quite in line with the meaning of EOFError. --Guido (mobile) On Jun 26, 2016 5:02 AM, "André Malo" wrote: > * Serhiy Storchaka wrote: > > > On 22.06.16 19:22, André Malo wrote: > > > I often concatenate multiple pickles into one file. When reading them, >

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

2016-06-26 Thread Guido van Rossum
> One of the big issues that makes library authors reluctant to use metaclasses > (even when they would be appropriate) is the risk of metaclass conflicts. Really? I've written and reviewed a lot of metaclasses and this has never worried me. The problem is limited to multiple inheritance, right?

Re: [Python-Dev] PEP 520: Preserving Class Attribute Definition Order (round 5)

2016-06-26 Thread Guido van Rossum
On Fri, Jun 24, 2016 at 3:46 PM, Eric Snow wrote: > On Fri, Jun 24, 2016 at 4:37 PM, Nick Coghlan wrote: > > This version looks fine to me. > > \o/ > Same to me, mostly. > > The definition order question has been dropped from PEP 487, so this > > cross-reference doesn't really make sense any

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

2016-06-26 Thread Rob Cliffe
So how about an EmptyFileError (or similar name) as a subclass of EOFError? On 26/06/2016 21:42, Guido van Rossum wrote: I think this is an interesting idea and quite in line with the meaning of EOFError. --Guido (mobile) On Jun 26, 2016 5:02 AM, "André Malo" > wrote

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

2016-06-26 Thread Guido van Rossum
But that use case is not about an empty file. It's about finding nothing at the current position where something was expected. This is similar to the original use case for EOFError, which was raised by input() (or rather, raw_input()) when there was no more data on sys.stdin. On Sun, Jun 26, 2016

[Python-Dev] [RELEASED] Python 3.4.5 and Python 3.5.2 are now available

2016-06-26 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 and Python 3.5 release teams, I'm thrilled to announce the availability of Python 3.4.5 and Python 3.5.2. Python 3.4 is now in "security fixes only" mode. This is the final stage of support for Python 3.4. All changes made t

Re: [Python-Dev] PEP 520: Preserving Class Attribute Definition Order (round 5)

2016-06-26 Thread Armin Rigo
Hi, On 24 June 2016 at 23:52, Eric Snow wrote: > Pending feedback, the impact on Python implementations is expected to > be minimal. If a Python implementation cannot support switching to > `OrderedDict``-by-default then it can always set ``__definition_order__`` > to ``None``. That's wishful t