RE: checking protocols.

2019-01-23 Thread Avi Gross
See reply BELOW in sections marked by ==: -Original Message- From: DL Neil Sent: Wednesday, January 23, 2019 7:39 PM To: Avi Gross ; python-list@python.org Subject: Re: checking protocols. Avi Haven't noticed an answer to this. Did I miss anything? ==REPLY ON non-TOP a

Re: checking protocols.

2019-01-23 Thread Chris Angelico
On Thu, Jan 24, 2019 at 11:40 AM DL Neil wrote: > > Avi > > Haven't noticed an answer to this. Did I miss anything? > No idea where you originally sent it, but I didn't see it until just now. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: checking protocols.

2019-01-23 Thread DL Neil
Avi Haven't noticed an answer to this. Did I miss anything? On 20/01/19 11:07 AM, Avi Gross wrote: Short question. Checking if a protocol is set up? =do you mean that to check/require that a class exhibits a particular protocol we should use abstract classes - will not instantiate unless a

Re: ValueError: Input contains NaN, infinity or a value too large for dtype('float32')

2019-01-23 Thread paulmattheww
> You may be using the sklearn package incorrectly; you'll > have to read the (apparently quite prolific) documentation yourself, > I've never used it. > > -- > Rhodri James *-* Kynesim Ltd So why would you try to answer it? I have the same issue but there are no NaN, infinites, negative inf

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-23 Thread Ian Kelly
On Wed, Jan 23, 2019 at 1:36 PM Stefan Behnel wrote: > > Cameron Simpson schrieb am 23.01.19 um 00:21: > > from __future__ import absolute_imports, print_function > > > > gets you a long way. > > ... and: division. All right, but apart from absolute imports, the print function, and true division

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-23 Thread Stefan Behnel
Cameron Simpson schrieb am 23.01.19 um 00:21: >  from __future__ import absolute_imports, print_function > > gets you a long way. ... and: division. Stefan -- https://mail.python.org/mailman/listinfo/python-list

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-23 Thread Cameron Simpson
On 23Jan2019 14:15, Grant Edwards wrote: On 2019-01-22, Cameron Simpson wrote: On 22Jan2019 19:20, Grant Edwards wrote: On 2019-01-22, Schachner, Joseph wrote: For anyone who has moved a substantial bunch of Python 2 to Python 3, can you please reply with your experience? If you used byt

SCons 3.0.4 Release

2019-01-23 Thread Bill Deegan
A new SCons release, 3.0.4, is now available on the SCons download page: http://www.scons.org/download.php Or via pypi: pip install scons Here is a summary of the changes since 3.0.3: NEW FUNCTIONALITY - Added TEMPFILESUFFIX to allow user to specify suffix for

Re: What is your experience porting Python 2.7.x scripts to Python 3.x?

2019-01-23 Thread Grant Edwards
On 2019-01-22, Cameron Simpson wrote: > On 22Jan2019 19:20, Grant Edwards wrote: >>On 2019-01-22, Schachner, Joseph wrote: >>> For anyone who has moved a substantial bunch of Python 2 to Python >>> 3, can you please reply with your experience? >> >>If you used bytes (or raw binary strings) at al

generate matplotlib images without having access to an X server

2019-01-23 Thread joseph pareti
The following piece of code is supposed to generate images for plotting: (in *bold*, my added / corrected statements) ... *# JP handle non X server* *import matplotlib* *matplotlib.use('Agg')* # JP import matplotlib.pyplot as plt import numpy as np import tensorflow as tf ... # Generate images

Re: How to force the path of a lib ?

2019-01-23 Thread Neal Becker
dieter wrote: > Vincent Vande Vyvre writes: >> I am working on a python3 binding of a C++ lib. This lib is installed >> in my system but the latest version of this lib introduce several >> incompatibilities. So I need to update my python binding. >> >> I'm working into a virtual environment (py37