[Tutor] using sudo pip install

2017-04-20 Thread bruce
Hey guys.. Wanted to get thoughts? On an IRC chat.. someone stated emphatically... Never do a "sudo pip install --upgrade..." The claim was that it could cause issues, enought to seriously (possibly) damage the OS.. So, is this true?? ___ Tutor

Re: [Tutor] using sudo pip install

2017-04-20 Thread Mats Wichmann
On 04/20/2017 01:24 PM, bruce wrote: > Hey guys.. > > Wanted to get thoughts? > > On an IRC chat.. someone stated emphatically... > > Never do a "sudo pip install --upgrade..." > > The claim was that it could cause issues, enought to seriously > (possibly) damage the OS.. > > So, is this

Re: [Tutor] using sudo pip install

2017-04-20 Thread Random832
On Thu, Apr 20, 2017, at 15:48, Mats Wichmann wrote: > On 04/20/2017 01:24 PM, bruce wrote: > > Hey guys.. > > > > Wanted to get thoughts? > > > > On an IRC chat.. someone stated emphatically... > > > > Never do a "sudo pip install --upgrade..." > > > > The claim was that it could cause

[Tutor] classproperty: readonly and inheritance - not more needed

2017-04-20 Thread Thomas Güttler
Am 19.04.2017 um 11:16 schrieb Steven D'Aprano: On Wed, Apr 19, 2017 at 09:28:26AM +0200, Thomas Güttler wrote: [code for a classproperty] Nice, if it is that simple. Is there a reason why this is not in the standard library? I haven't had a chance to test Peter's classproperty code yet,

[Tutor] Could anyone provide a complex data processing automation testing example

2017-04-20 Thread John R
Hi All, Most of the examples in google are looking simple in automation so I am not getting an understanding of how a complex data processing application is to be tested using python. Can anyone please provide some real time examples for my understanding? Thanks In advance 91-9886754545

Re: [Tutor] classproperty: readonly and inheritance - not more needed

2017-04-20 Thread Steven D'Aprano
On Thu, Apr 20, 2017 at 10:39:57AM +0200, Thomas Güttler wrote: > >- its hard to get classproperty to work right. > > What is "righ"? > > In my case a read-only classproperty is enough. Inheritance should be > supported. > > I don't have a usecase for a setter. The standard library is not

[Tutor] classproperty, three times in virtualenv

2017-04-20 Thread Thomas Güttler
Am 19.04.2017 um 09:43 schrieb Alan Gauld via Tutor: On 19/04/17 08:28, Thomas Güttler wrote: Nice, if it is that simple. Is there a reason why this is not in the standard library? Probably because it is such a rare use case and because its not that hard to do yourself if you really need

[Tutor] What are the few senarios of data science testing using Python

2017-04-20 Thread John R
Hi All, I am just trying to understand that how it is possible to frame test cases on data science projcets using python! could anyone provide few sample real time senarios? I searched in google but couldnot find anything suitable to my need. If anyone works on this type of projects they can help

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Alan Gauld via Tutor
On 20/04/17 10:33, Phil wrote: >> So, for a Suduko grid put 3x3 Entry boxes into a Frame. >> Then put 3x3 such frames into another frame. > > OK, so I'll go back to my original idea and use edit boxes. A grid of 9 x 9 > edit boxes does actually work and it makes it easy to keep track of the >

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Phil
On Thu, 20 Apr 2017 09:27:27 +0100 Alan Gauld via Tutor wrote: > Eek! that's a recipe for premature baldness! Baldness is not a problem, however, slowing the onset of dementia is the aim of this project. > So, for a Suduko grid put 3x3 Entry boxes into a Frame. > Then put

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Palm Tree
for entering digits on the canva i think better create a sort of sudoku generator and display it on the canva in a create_text object. On 20 Apr 2017 05:24, "Phil" wrote: > I'm looking for ideas here. > > A working solution for my sudoku solver is a 9 x 9 grid of entry

Re: [Tutor] Could anyone provide a complex data processing automation testing example

2017-04-20 Thread Alan Gauld via Tutor
On 20/04/17 11:56, John R wrote: > Most of the examples in google are looking simple in automation so I am not > getting an understanding of how a complex data processing application is > to be tested using python. Is this a different question to the other one you posted? If so in what way?

Re: [Tutor] What are the few senarios of data science testing using Python

2017-04-20 Thread Alan Gauld via Tutor
On 20/04/17 11:48, John R wrote: > I am just trying to understand that how it is possible to > frame test cases on data science projcets using python! Can you clarify what you mean by "data science" projects? Do you mean projects built in Python and how to use, say, unittest with that code? Or

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Alan Gauld via Tutor
On 20/04/17 13:43, Alan Gauld via Tutor wrote: > So the 7th element becomes > divmod(7) -> 2,1 > > ie. element 7 maps to the 2nd cell, element 1 That should of course be the 3rd cell (0 based), oops. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Alan Gauld via Tutor
On 19/04/17 23:48, Phil wrote: > I created a 9 x 9 grid on a canvas which looks much better. > I can display digits in the centre of the squares but > entering the digits from the keyboard seems to be beyond me. Eek! that's a recipe for premature baldness! Canvas is designed to display things

Re: [Tutor] Visual Studio Community 2017

2017-04-20 Thread Rafael Knuth
> PyCharm :) I dumped VS 2017, after testing several IDEs I am perfectly happy with PyCharm EDU :) It comes with Python 3.5 and importing & working with libraries like matplotlib is really, really easy. PyCharm EDU is a very nice IDE for me as a student

Re: [Tutor] Tkinter layout question

2017-04-20 Thread Phil
On Wed, 19 Apr 2017 22:21:28 -0500 boB Stepp wrote: Thank you Bob and Palm for your replies. They have given me something more tto think about. ideas > I don't know (now) how to solve your challenges below. But if I were > trying to figure this out, I would try to find

Re: [Tutor] Tkinter layout question - solved

2017-04-20 Thread Phil
On Wed, 19 Apr 2017 22:21:28 -0500 Just to save people answering this question unnecessarily I have solved the immediate problem. I can now enter a digit at the mouse coordinates. Some refinement is still necessary. -- Regards, Phil ___ Tutor