Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread Terry Reedy
On 3/20/2019 7:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! that suggests that what you typed above is not what you ran. Did you run

Re: Determining latest stable version for download

2019-03-20 Thread Michael Torrie
On 03/20/2019 07:10 PM, Tim Johnson wrote: > * Ian Kelly [190320 12:00]: >> 1) https://www.python.org/downloads/ has release information. Based on that >> you would currently want 3.7.2. Make sure you actually download 3.7.2 and >> not 3.7.2rc1. > Understood. Thanks. Your info is the solution.

Re: I wrote a free book about TDD and clean architecture in Python

2019-03-20 Thread Akkana Peck
> On 20/03/19 7:18 AM, Leonardo Giordani wrote: > > Ha ha ha, yes I get it! =) I'm sorry, that depends entirely on the LeanPub > > processing chain (I believe, I'll have a look just to be sure). I hope the > > book will be useful even with this little issue. Thanks for reading it! DL Neil writes

Re: Determining latest stable version for download

2019-03-20 Thread Tim Johnson
* Ian Kelly [190320 12:00]: > 1) https://www.python.org/downloads/ has release information. Based on that > you would currently want 3.7.2. Make sure you actually download 3.7.2 and > not 3.7.2rc1. Understood. Thanks. Your info is the solution. > 2) The tarfiles are not distro-specific. For Lin

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread MRAB
On 2019-03-21 00:12, DL Neil wrote: Jason, On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! It would be most helpful i

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread DL Neil
Jason, On 21/03/19 12:34 PM, jasonanyil...@gmail.com wrote: So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! It would be most helpful if you gave us the exact error msg, in

Re: Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread CrazyVideoGamez
On Wednesday, March 20, 2019, at 7:34:53 PM UTC-4, CrazyVideoGamez wrote: > So, I typed in code: > from turtle import * > forward(100) > right(120) > clear() > It didn't work! It kept on saying that there was an indent and the first line > was wrong. Help! I'm a beginner by the way. -- https://

Might be doing this wrong? (Turtle graphics)

2019-03-20 Thread jasonanyilian
So, I typed in code: from turtle import * forward(100) right(120) clear() It didn't work! It kept on saying that there was an indent and the first line was wrong. Help! -- https://mail.python.org/mailman/listinfo/python-list

Re: File not closed

2019-03-20 Thread DL Neil
On 2019-03-20, ast wrote: In the following snippet, a file is opened but without any variable referring to it. So the file can't be closed. [line.split(":")[0] for line in open('/etc/passwd') if line.strip() and not line.startswith("#")] What do you think about this practice ? As other

Re: Potential Security Bug

2019-03-20 Thread Ian Kelly
On Wed, Mar 20, 2019 at 5:14 AM Laish, Amit (GE Digital) wrote: > > Hello, > I’m Amit Laish, a security researcher from GE Digital. > During one of our assessments we discovered something that we consider a bug with security implications which can cause a denial of service by disk exhausting, and

Re: Determining latest stable version for download

2019-03-20 Thread Ian Kelly
1) https://www.python.org/downloads/ has release information. Based on that you would currently want 3.7.2. Make sure you actually download 3.7.2 and not 3.7.2rc1. 2) The tarfiles are not distro-specific. For Linux there are really only two options: Python-3.7.2.tar.xz and Python-3.7.2.tgz. The onl

Re: Can my python program send me a text message?

2019-03-20 Thread mm0fmf
On 19/03/2019 18:23, Steve wrote: I have a program that triggers a reminder timer. When that timer is done, I would like to receive a text message on my phone to tell me that it is time to reset the experiment. Can this be done using Python? Steve Yes. After playing with assorted "free" sys

Determining latest stable version for download

2019-03-20 Thread Tim Johnson
Some time in the near future I will want to install the latest current stable version of python on a remote server. I anticipate that I will either use wget from the server shell or download to my workstation and transfer via FTP. I will need source to compile. I see python source at https://www.p

Re: File not closed

2019-03-20 Thread Chris Angelico
On Thu, Mar 21, 2019 at 1:16 AM Grant Edwards wrote: > > On 2019-03-20, ast wrote: > > Hello > > > > In the following snippet, a file is opened but > > without any variable referring to it. > > So the file can't be closed. > > > > [line.split(":")[0] > > for line in open('/etc/passwd') > > if

RE: Can my python program send me a text message?

2019-03-20 Thread Steve
This is a very good point since I am already finding that the arrival of texts, and voice mail, seem to be irregular with respect to delivery times with my phone as it is. On the other hand, I was not thinking fourth dimensionally when I thought about using text mail for this project. Since I am p

Re: File not closed

2019-03-20 Thread Grant Edwards
On 2019-03-20, ast wrote: > Hello > > In the following snippet, a file is opened but > without any variable referring to it. > So the file can't be closed. > > [line.split(":")[0] > for line in open('/etc/passwd') > if line.strip() and not line.startswith("#")] > > What do you think about this

Re: Can my python program send me a text message?

2019-03-20 Thread Rhodri James
On 19/03/2019 19:33, Abdur-Rahmaan Janhangeer wrote: - 1) use pi with gsm module. or - 2) find some free sms api for python then use Slightly off-topic, but you (the OP) should be aware that carriers do not guarantee that texts will be delivered in a timely manner. In fact they don't guarant

Re: tkinter

2019-03-20 Thread Informatico de Neurodesarrollo
Thanks MRAB, for your advice. I will have close the connection before, the code fixed are below. def isInternet():         testConn = socket.socket(socket.AF_INET,socket.SOCK_STREAM)         testConn.settimeout(5)         output = testConn.connect_ex(('8.8.8.8', 80))         testConn.close() <--

Potential Security Bug

2019-03-20 Thread Laish, Amit (GE Digital)
Hello, I’m Amit Laish, a security researcher from GE Digital. During one of our assessments we discovered something that we consider a bug with security implications which can cause a denial of service by disk exhausting, and we would like to share it with you, and hear you opinion about it. Lin

nltk in 3.7.2 for win 10 64 bit

2019-03-20 Thread Türkcan Kurt
is there a way to install nltk in win 10 64 bit in python 3.7.2 ? -- Teşekkürler, iyi çalışmalar. ODTU - BİDB Lisanslı Yazılım Sorumlusu swb...@metu.edu.tr Tel: 210 3311 -- https://mail.python.org/mailman/listinfo/python-list

Re: File not closed

2019-03-20 Thread Peter Otten
ast wrote: > Hello > > In the following snippet, a file is opened but > without any variable referring to it. > So the file can't be closed. The file will be closed implicitly when the file object gets garbage- collected: $ python3 Python 3.4.3 (default, Nov 12 2018, 22:25:49) [GCC 4.8.4] on l

File not closed

2019-03-20 Thread ast
Hello In the following snippet, a file is opened but without any variable referring to it. So the file can't be closed. [line.split(":")[0] for line in open('/etc/passwd') if line.strip() and not line.startswith("#")] What do you think about this practice ? -- https://mail.python.org/mailm