Re: [Tutor] threading tutorial

2017-05-25 Thread Cameron Simpson
On 25May2017 11:52, Michael C wrote: Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread,

Re: [Tutor] threading tutorial

2017-05-25 Thread Michael C
Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread, and because I'll restart the thread later, I'd like to get the

[Tutor] threading tutorial

2017-05-25 Thread Michael C
Hi all: I tried to google for tutorials of threading, but they are all equally confusing. Does someone know of a good page or a book that talk about threading? thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] airflow dag

2017-05-25 Thread Peter Otten
Alan Gauld via Tutor wrote: >>dag=dag > > I'm not sure what you think the line above does but > in normal Python it would have zero effect. The context makes it a keyword argument. dag = DAG(...) ... SimpleHttpOperator( ... dag=dag ) ___

Re: [Tutor] airflow dag

2017-05-25 Thread Peter Otten
shubham goyal wrote: > He guys, > > I want to ask that can we pass the parameters as commandline arguments in > airflow when we are triggering the dag and access them inside the dag's > python script/file. > script: > like this here i am trying to create a cluster but i need to pass password >

Re: [Tutor] airflow dag

2017-05-25 Thread Alan Gauld via Tutor
On 25/05/17 13:15, shubham goyal wrote: > He guys, > > I want to ask that can we pass the parameters as commandline arguments in > airflow when we are triggering the dag and access them inside the dag's > python script/file. I've no idea what a dag is. This list is for people learning Python as

[Tutor] airflow dag

2017-05-25 Thread shubham goyal
He guys, I want to ask that can we pass the parameters as commandline arguments in airflow when we are triggering the dag and access them inside the dag's python script/file. script: from airflow import DAG from datetime import datetime,timedelta default_args = { 'owner': 'airflow',

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

2017-05-25 Thread Mats Wichmann
On 05/24/2017 04:10 PM, Juan C. wrote: > I have some Python 3.6.0 scripts that my co-workers use for some small > and medium tasks. Whenever I have time I fix some bugs and add some > features to said scripts to make their lives (and mine :D) easier, but > there's a problem: I need to send a new

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

2017-05-25 Thread Abdur-Rahmaan Janhangeer
a basic idea would be to get a webpage and put your code there. This is where you edit your codes Now you make a program which has - an updater - the script to execute in a separate file the updater each times pull the program on the webpage and compare it with the script file if they are the