[RELEASE] Python 3.7.0b5 bonus beta!

2018-05-30 Thread Ned Deily
A 3.7 update: Python 3.7.0b5 is now the final beta preview of Python 3.7, the next feature release of Python. 3.7.0b4 was intended to be the final beta but, due to some unexpected compatibility issues discovered during beta testing of third-party packages, we decided to revert some changes in how P

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Ben Bacarisse
Steven D'Aprano writes: > On Wed, 30 May 2018 21:53:05 +0100, Ben Bacarisse wrote: > >> Rob Gaddi writes: >> >>> On 05/30/2018 09:34 AM, Paul Rubin wrote: I think Usenet posts are no longer getting forwarded to the mailing list, but now I wonder if this is getting out at all, even to

leetv 1.12 released

2018-05-30 Thread Jim Lee
Hello, python-list members! This is my first post.  I have created 'leetv', a Python application.  You can find it at: https://github.com/oregonjim/leetv There are several 'firsts' here (besides my first post...).  This is my first time using Github.  This is my first major Python effort,

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Chris Angelico
On Thu, May 31, 2018 at 9:34 AM, Cameron Simpson wrote: > On 30May2018 21:29, MRAB wrote: >> >> On 2018-05-30 21:01, Paul St George wrote: >>> >>> Is this equivalent? >>> p = subprocess.Popen('display', + imagepath) >>> >> p = subprocess.Popen(['display', imagepath]) >> >>> so >>> >>> p = subpr

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Steven D'Aprano
On Wed, 30 May 2018 21:53:05 +0100, Ben Bacarisse wrote: > Rob Gaddi writes: > >> On 05/30/2018 09:34 AM, Paul Rubin wrote: >>> I think Usenet posts are no longer getting forwarded to the mailing >>> list, but now I wonder if this is getting out at all, even to usenet. >>> >>> Does anyone see it

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Cameron Simpson
On 30May2018 21:29, MRAB wrote: On 2018-05-30 21:01, Paul St George wrote: Is this equivalent? p = subprocess.Popen('display',  + imagepath) p = subprocess.Popen(['display', imagepath]) so p = subprocess.Popen('display',  'test.png') p = subprocess.Popen(['display', 'test.png']) Remem

Re: Indented multi-line strings (was: "Data blocks" syntax specification draft)

2018-05-30 Thread Peter J. Holzer
On 2018-05-29 07:57:18 -0600, Ian Kelly wrote: > On Tue, May 29, 2018 at 3:19 AM, Peter J. Holzer wrote: > > On 2018-05-23 11:08:48 -0600, Ian Kelly wrote: > >> [...] > > What if I want all lines to start with some white space? [...] > > Fair points. [...] > >> Also, how about using a string pr

Re: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to

2018-05-30 Thread Peter J. Holzer
On 2018-05-29 16:20:36 +, Steven D'Aprano wrote: > On Tue, 29 May 2018 14:04:19 +0200, Peter J. Holzer wrote: > > > The OP has one file. > > We don't know that. All we know is that he had one file which he was > unable to read. For all we know, he has a million files, and this was > merely

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Peter J. Holzer
On 2018-05-30 10:02:06 -0700, Rob Gaddi wrote: > On 05/30/2018 09:34 AM, Paul Rubin wrote: > > I think Usenet posts are no longer getting forwarded to the mailing > > list, but now I wonder if this is getting out at all, even to usenet. > > > > Does anyone see it? > > > > Can't speak for the mai

Re: a Python bug report

2018-05-30 Thread Peter J. Holzer
On 2018-05-29 21:34:21 -0400, José María Mateos wrote: > On Wed, May 30, 2018 at 01:07:38AM +, Ruifeng Guo wrote: > > We encountered a bug in Python recently, we checked the behavior for Python > > version 2.7.12, and 3.1.1, both version show the same behavior. Please see > > below the unexpe

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Karsten Hilbert
On Wed, May 30, 2018 at 11:01:17PM +0200, Peter J. Holzer wrote: > On 2018-05-30 22:08:45 +0200, Paul St George wrote: > > Ha! No, my question was clumsy. > > > > If I know the name of the viewer that I want to use (say for example: > > ‘ImageMagick’), where do I find the argument that should be

Re: cProfile, timed call tree

2018-05-30 Thread Peter J. Holzer
On 2018-05-30 07:45:07 +0200, dieter wrote: > "Peter J. Holzer" writes: > > On 2018-05-26 07:38:09 +0200, dieter wrote: > >> But, in general, you are right: you cannot reconstruct complete > >> call trees. The reason is quite simple: maintaining information > >> for the complete caller ancestry (r

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Peter J. Holzer
On 2018-05-30 22:08:45 +0200, Paul St George wrote: > Ha! No, my question was clumsy. > > If I know the name of the viewer that I want to use (say for example: > ‘ImageMagick’), where do I find the argument that should be used in a line > of code such as this: > > ImageShow.register(MyViewer("gwe

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Ben Bacarisse
Rob Gaddi writes: > On 05/30/2018 09:34 AM, Paul Rubin wrote: >> I think Usenet posts are no longer getting forwarded to the mailing >> list, but now I wonder if this is getting out at all, even to usenet. >> >> Does anyone see it? > > Can't speak for the mailing list, but this came out to Usenet

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread MRAB
On 2018-05-30 21:01, Paul St George wrote: True, but I wanted to have some control over the image window, fullscreen, colour depth, etc. I am also exploring pygame. I will try your suggestion as it is so much simpler. Being a novice, I had been frightened off using shell=True. See

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Paul St George
Ha! No, my question was clumsy. If I know the name of the viewer that I want to use (say for example: ‘ImageMagick’), where do I find the argument that should be used in a line of code such as this: ImageShow.register(MyViewer("gwenview"), -1) I want to replace ‘gwenview’ with the name of my

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Paul St George
True, but I wanted to have some control over the image window, fullscreen, colour depth, etc. I am also exploring pygame. I will try your suggestion as it is so much simpler. Being a novice, I had been frightened off using shell=True. See

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Peter Otten
Rob Gaddi wrote: > On 05/30/2018 09:34 AM, Paul Rubin wrote: >> I think Usenet posts are no longer getting forwarded to the mailing >> list, but now I wonder if this is getting out at all, even to usenet. >> >> Does anyone see it? >> > > Can't speak for the mailing list, but this came out to Us

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Paul
I see it on the mailing list. Paul C On Wed, May 30, 2018, 10:07 AM Rob Gaddi wrote: > On 05/30/2018 09:34 AM, Paul Rubin wrote: > > I think Usenet posts are no longer getting forwarded to the mailing > > list, but now I wonder if this is getting out at all, even to usenet. > > > > Does anyone s

Re: Pink Floyd: is there anybody in here?

2018-05-30 Thread Rob Gaddi
On 05/30/2018 09:34 AM, Paul Rubin wrote: I think Usenet posts are no longer getting forwarded to the mailing list, but now I wonder if this is getting out at all, even to usenet. Does anyone see it? Can't speak for the mailing list, but this came out to Usenet just fine. -- Rob Gaddi, Highl

MailingLogger 5.0.0 Released!

2018-05-30 Thread Chris Withers
Hi All, I'm pleased to announce the release of MailingLogger 5.0.0. Mailinglogger provides two handlers for the standard python logging framework that enable log entries to be emailed either as the entries are logged or as a summary at the end of the running process. The handlers have the follo

Re: Problem with OrderedDict

2018-05-30 Thread INADA Naoki
> > So working backwards, I have solved the first problem. I am no nearer to > figuring out why it fails intermittently in my live program. The message > from INADA Naoki suggests that it could be inherent in CPython, but I am not > ready to accept that as an answer yet. I will keep plugging away a

Re: Problem with OrderedDict

2018-05-30 Thread Frank Millman
"Steven D'Aprano" wrote in message news:pem8b8$lm6$4...@blaine.gmane.org... On Wed, 30 May 2018 10:48:06 +0200, Frank Millman wrote: > I tried to reduce it to a simple example. I succeeded, but there are two > problems - > > 1. It always fails, so I have not reproduced the intermittent nature

Re: Problem with OrderedDict

2018-05-30 Thread Steven D'Aprano
On Wed, 30 May 2018 10:48:06 +0200, Frank Millman wrote: > I tried to reduce it to a simple example. I succeeded, but there are two > problems - > > 1. It always fails, so I have not reproduced the intermittent nature > yet. > > 2. It gives a different error - > > RuntimeError: dictionary c

Re: Problem with OrderedDict

2018-05-30 Thread Steven D'Aprano
On Wed, 30 May 2018 23:05:53 +1000, Chris Angelico wrote: > You can always change the *values*, but not the *order* of the keys. Okay, so far we have these operations which are allowed: - changing a value associated with a key and these operations which all raise RuntimeError with the "mutated"

Re: Problem with OrderedDict

2018-05-30 Thread INADA Naoki
> However, the error seems to be intermittent - there are times when it should > fail, but does not - so I want to investigate further. CPython raise RuntimeError *by chance*. Detecting all invalid usage will increase runtime cost. So CPython may and may not raise RuntimeError. > I tried to redu

Re: Problem with OrderedDict

2018-05-30 Thread Chris Angelico
On Wed, May 30, 2018 at 10:55 PM, Steven D'Aprano wrote: > On Wed, 30 May 2018 05:03:02 -0400, Terry Reedy wrote: > >> On 5/30/2018 4:48 AM, Frank Millman wrote: >>> Hi all >>> >>> I want to work backwards to solve this problem, so I have to explain it >>> forwards to put you in the picture. >>> >

Re: Problem with OrderedDict

2018-05-30 Thread Steven D'Aprano
On Wed, 30 May 2018 10:48:06 +0200, Frank Millman wrote: > So my first question is, what is the difference between the two error > messages? I am using an OrderedDict for my test as well, so the > difference is not caused by using a normal dictionary. >From Object/orderdict.c I find: /* Chec

Re: Problem with OrderedDict

2018-05-30 Thread Steven D'Aprano
On Wed, 30 May 2018 05:03:02 -0400, Terry Reedy wrote: > On 5/30/2018 4:48 AM, Frank Millman wrote: >> Hi all >> >> I want to work backwards to solve this problem, so I have to explain it >> forwards to put you in the picture. >> >> I have an Ordered Dictionary. Under certain circumstances I am

Re: Simple question: how do I print output from .get() method

2018-05-30 Thread Rhodri James
On 30/05/18 06:51, Chris Angelico wrote: On Wed, May 30, 2018 at 3:44 PM, MrMagoo2018 wrote: Hello folks, imagine I have the code below and I am getting the "error" message when attempting to print() the output of 'sw_report'. Can you suggest which method I should use to retrieve this? Is that

Re: Problem with OrderedDict

2018-05-30 Thread Terry Reedy
On 5/30/2018 4:48 AM, Frank Millman wrote: Hi all I want to work backwards to solve this problem, so I have to explain it forwards to put you in the picture. I have an Ordered Dictionary. Under certain circumstances I am getting this error -    RuntimeError: OrderedDict mutated during ite

Problem with OrderedDict

2018-05-30 Thread Frank Millman
Hi all I want to work backwards to solve this problem, so I have to explain it forwards to put you in the picture. I have an Ordered Dictionary. Under certain circumstances I am getting this error - RuntimeError: OrderedDict mutated during iteration I can see why this is happening, and

EuroPython 2018: Early Bird Ticket Sales

2018-05-30 Thread M.-A. Lemburg
We are happy to announce that we’ll start early bird tickets on Thursday, at around 12:00 CEST. We have 200 conference tickets available at the Early Bird rate and they usually sell out within a day or two. Invoices will be available in a few weeks

Fitting cubic spline on 2D array

2018-05-30 Thread Priya Singh
Hello all, Can anyone tell me how can I get the functional form of the fitted cubic spline function on to my 2D array? For eg. when we fit the Gaussian on to an array so we have the functional form with the parameters best fitted to my data likewise how can we do for the cubic spline function? A