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

2016-06-27 Thread Steve Dower
On 26Jun2016 1932, Larry Hastings wrote: https://www.python.org/downloads/release/python-352/ ... /p.s. There appears to be a small oops with the Windows installers for 3.5.2--uploaded to the wrong directory or something. They'll be available soon, honest! That oops is now fixed, but I wanted

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

2016-06-27 Thread Nikolaus Rath
On Jun 21 2016, Serhiy Storchaka wrote: > There is a design question. If you read file in some format or with > some protocol, and the data is ended unexpectedly, when to use general > EOFError exception and when to use format/protocol specific exception? > > For example when load truncated pickle

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

2016-06-27 Thread Ethan Furman
On 06/21/2016 01:48 PM, Serhiy Storchaka wrote: There is a design question. If you read file in some format or with some protocol, and the data is ended unexpectedly, when to use general EOFError exception and when to use format/protocol specific exception? I believe that EOFError was created

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

2016-06-27 Thread Greg Ewing
Nikolaus Rath wrote: I think EOFError conveys more information. UnpicklingError can mean a lot of things, EOFError tells you the precise problem: pickle expected more data, but there was nothing left. I think EOFError should be used for EOF between pickles, but UnpicklingError should be used fo

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

2016-06-27 Thread Ethan Furman
On 06/27/2016 02:54 PM, Greg Ewing wrote: Nikolaus Rath wrote: I think EOFError conveys more information. UnpicklingError can mean a lot of things, EOFError tells you the precise problem: pickle expected more data, but there was nothing left. I think EOFError should be used for EOF between pic

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

2016-06-27 Thread Guido van Rossum
The point is that it's not an error. In Andre Malo's use case, at least, EOFError is used as a control flow exception, not as an error. On Mon, Jun 27, 2016 at 3:06 PM, Ethan Furman wrote: > On 06/27/2016 02:54 PM, Greg Ewing wrote: >> >> Nikolaus Rath wrote: >>> >>> I think EOFError conveys more

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

2016-06-27 Thread Ethan Furman
On 06/27/2016 03:20 PM, Guido van Rossum wrote: The point is that it's not an error. In Andre Malo's use case, at least, EOFError is used as a control flow exception, not as an error. Like StopIteration then: only an error if it escapes. -- ~Ethan~ ___

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

2016-06-27 Thread Random832
On Mon, Jun 27, 2016, at 12:40, Ethan Furman wrote: > On 06/21/2016 01:48 PM, Serhiy Storchaka wrote: > > > There is a design question. If you read file in some format or with some > > protocol, and the data is ended unexpectedly, when to use general > > EOFError exception and when to use format/p

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

2016-06-27 Thread Steven D'Aprano
On Mon, Jun 27, 2016 at 03:47:31PM -0700, Ethan Furman wrote: > On 06/27/2016 03:20 PM, Guido van Rossum wrote: > > >The point is that it's not an error. In Andre Malo's use case, at > >least, EOFError is used as a control flow exception, not as an error. > > Like StopIteration then: only an erro

[Python-Dev] [RELEASE] Python 2.7.12

2016-06-27 Thread Benjamin Peterson
It is my privilege to present you with another release in the Python 2.7 series, Python 2.7.12. Since the release candidate, there were two changes: - The Windows binaries have been changed to use OpenSSL 1.0.2h. - The "about" dialog in IDLE was fixed. Downloads, as always, are on python.org: