Re: [Tutor] Using venv

2017-05-29 Thread Jim
On 05/29/2017 08:09 PM, Ben Finney wrote: You should probably disregard this message as I have since solved the problem I was asking about. I originally wrote this message on 01/27/17, how it make it back to the list I don't know. Regards, Jim Jim writes: It has

Re: [Tutor] Using venv

2017-05-29 Thread Ben Finney
Jim writes: > It has been suggested to me that I should use a virtual environment > and venv would be a good choice. I've read through PEP405 and this > link [1]. One possible confusion is the terminology. You have “a virtual environment” when you create one. The ‘venv’

Re: [Tutor] Problem with if statements and else statements

2017-05-29 Thread Alex Kleider
On 2017-05-29 16:08, Cameron Simpson wrote: snip BTW, in Python we tend to use named like "Fred" for classes (or factories), and "fred" for regular variables. And "FRED" for things that would be constants in other languages. Eg: MAX_THINGS = 16 class Foo: def FooBah(x): return

Re: [Tutor] Problem with if statements and else statements

2017-05-29 Thread Cameron Simpson
On 29May2017 01:17, Alan Gauld wrote: On 29/05/17 00:12, Alex Kleider wrote: Would if Month in {'January', '1'}: be even better? (regarding efficiency perhaps? Trivial point, I know, but just wondering.) If in doubt try it out and profile/time it. But I don't

Re: [Tutor] 3D plotting

2017-05-29 Thread Alan Gauld via Tutor
On 29/05/17 21:40, Jack Lambert wrote: > I am very new to python and am using it for some astronomy data analysis. > What I am trying to is plot a 3D scatter plot of three variables that are > being read from a file. I've tried using code from other examples of 3d > plots but, having little idea

[Tutor] 3D plotting

2017-05-29 Thread Jack Lambert
Hello! I am very new to python and am using it for some astronomy data analysis. What I am trying to is plot a 3D scatter plot of three variables that are being read from a file. I've tried using code from other examples of 3d plots but, having little idea how the code functions, I have had very

Re: [Tutor] How to deploy seamless script updates to your "clients"?

2017-05-29 Thread Abdur-Rahmaan Janhangeer
What does a webpage has to do with it? (topic : web scraping) well i meant you put your script in a webpage no need to put any html tags if you wish. then your program has two files. an updater and the script the updater on startup scrape your web page and see if the text is same as the script

Re: [Tutor] Counting a string backwards

2017-05-29 Thread C W
Wow, that's the best explanation I've seen so far, now it's gonna stick with me! Thank you! On Sun, May 28, 2017 at 10:00 PM, Steven D'Aprano wrote: > On Sun, May 28, 2017 at 01:58:22PM -0400, C W wrote: > > Dear Python list, > > > > I am having trouble understanding the

Re: [Tutor] Counting a string backwards

2017-05-29 Thread C W
Hi Alan Thank you very much, I got it. So in this case, there is no need to specify where it ends. In fact, even if I wanted to specify the ending, I can't! Thank you! On Sun, May 28, 2017 at 7:19 PM, Alan Gauld via Tutor wrote: > On 28/05/17 18:58, C W wrote: > > > Now if

Re: [Tutor] airflow dag

2017-05-29 Thread shubham goyal
Hello, See this is the code: from airflow import DAG from datetime import datetime,timedelta default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime.now(), 'email': ['airf...@airflow.com'], 'email_on_failure': False, 'email_on_retry': False