Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-02 Thread Ben Finney
C W writes: > I am an R user learning Python. What is a good editor? Either of Vim or Emacs – together with a good multi-tabbed terminal program – make an excellent programmer IDE. -- \“When I was a baby I kept a diary. Recently I was re-reading | `\ it, it

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread meenu ravi
Great, thanks! On Jun 2, 2017 10:26 PM, "Danny Yoo" wrote: > Steven says: > > >> I don't think "what the authors might want" is the only factor here. > >> Personally, I think these programming challenge sites probably do more > >> harm than good, discouraging people that

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Danny Yoo
Steven says: >> I don't think "what the authors might want" is the only factor here. >> Personally, I think these programming challenge sites probably do more >> harm than good, discouraging people that they're not good enough to be a >> programmer because they can't solve the (often exceedingly

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread meenu ravi
Thank you all for your views. I was hesitating for the same reason. Now I'm clear that I shouldn't go for a blog that gives straightforward solution for the challenges. Thanks, Meena On Jun 2, 2017 7:30 PM, "Steven D'Aprano" wrote: > On Fri, Jun 02, 2017 at 05:00:37PM

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Steven D'Aprano
On Fri, Jun 02, 2017 at 05:00:37PM -0700, Danny Yoo wrote: > Legality is the lowest of bars. We should aim higher. > > I'm pretty sure that the listed sites should strongly prefer *not* to have > solutions available like this. > > The more I think about this, the more I'm tending to say: don't

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Danny Yoo
Legality is the lowest of bars. We should aim higher. I'm pretty sure that the listed sites should strongly prefer *not* to have solutions available like this. The more I think about this, the more I'm tending to say: don't do this. It may feel like charity, but the authors of the problem sets

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Danny Yoo
I'm not a fan of the idea of publishing solutions of coding challenge problems because it often violates the honor codes of institutions. Even if some sites are okay with this, the majority probably are not. Rather than muddy the water, might be best to skirt the issue. What is the problem

Re: [Tutor] Pasting an image with transparency

2017-06-02 Thread Terry
On 06/02/2017 08:31 AM, Peter Otten wrote: Terry wrote: We read the docstring so you don't have to ;) I have to remember to utilize available help functions... my bad. from PIL import Image image = Image.open("sample.jpg") # some random pic I have lying around help(image.paste) Help on

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Mats Wichmann
On 06/02/2017 11:27 AM, meenu ravi wrote: > Hello, > > I'm planning to create a blog that provides solution with explanation for > python programming challenges available in websites like Hackerearth, > codecademy, etc., so that if others also share their solution along with > explanation in the

[Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-02 Thread C W
Dear Python list, I am an R user learning Python. What is a good editor? 1) Pycharm PyCharm evaluates the entire script, I just want to change a few lines in the script. For example, import matplotlib.pyplot as plt import numpy as np x = np.arange(0, 1,0.1) y = np.sin(2 * np.pi * x)

Re: [Tutor] New blog that has solution for python programs

2017-06-02 Thread Japhy Bartlett
The only legal concern is if you're copying challenges directly from the sites; someone has some sort of ownership and copyright on the code and description. Don't copy / paste anything and you'll be fine. If you do, check the license first (it may be open source). On Fri, Jun 2, 2017 at

[Tutor] New blog that has solution for python programs

2017-06-02 Thread meenu ravi
Hello, I'm planning to create a blog that provides solution with explanation for python programming challenges available in websites like Hackerearth, codecademy, etc., so that if others also share their solution along with explanation in the same blog, it will be helpful for beginners. I wanted

Re: [Tutor] Pasting an image with transparency

2017-06-02 Thread Peter Otten
Terry wrote: > Slackware 14.2 64-bit > Python 2.7.13 > > I am trying to automate some photo processing by pasting a > sig or watermark. The sig image is a .png with transparency > but when it pastes it does so with a black background. Is there > a way to paste with transparency? > > > > from

Re: [Tutor] Pasting an image with transparency

2017-06-02 Thread Alan Gauld via Tutor
On 01/06/17 20:34, Terry wrote: > Slackware 14.2 64-bit > Python 2.7.13 > > I am trying to automate some photo processing by pasting a > sig or watermark. The sig image is a .png with transparency > but when it pastes it does so with a black background. Is there > a way to paste with

Re: [Tutor] Issue with wsgi_ref.simple_server - sometimes very slow!

2017-06-02 Thread Alan Gauld via Tutor
This appears to be a duplicate of the message you sent on 31st May. Please don not send multiple copies of the same message, it fragments the threads and messes up the archives for searching. One message is sufficient, if you don't get a response it probably means nobody knows the answer (or maybe

Re: [Tutor] threading tutorial

2017-06-02 Thread Michael C
ihave to look at this tomorrow, thanks for the reply! On Thu, Jun 1, 2017 at 6:18 PM Alan Gauld via Tutor wrote: > On 01/06/17 16:30, Michael C wrote: > > Oh i get it alright, however in my code I have to push the W button like > > this: > > > > import pyautogui > > import

[Tutor] Issue with wsgi_ref.simple_server - sometimes very slow!

2017-06-02 Thread Attila Szabó
Hi All, I'm facing a really strange behavior with python's wsgi_ref.simple_server module. I have the following setup: - Raspberry Pi 2 - Ubuntu Mate 16.04 - Python3.5 - I have the following simple source: #!/usr/bin/env python3 import wsgiref.simple_server def my_func(env, start_response):