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

2017-05-24 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 sc

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

2017-05-24 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 sam

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

2017-05-24 Thread Juan C.
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 script via email/chat/whatever and they have to r

Re: [Tutor] deleting elements of a dictionary (Mats Wichmann)

2017-05-24 Thread Sergio Rojas
Having now done a quick check, mydict.pop() is no better for this case. Here's a simplistic sample that does work: d = { 100:3, 200:4, 111:5, 222:5, 333:5, 500:6, } print "original: ", d new = {key:value for (key,value) in d.iteritems() if value != 5} print "new: ", new ==

Re: [Tutor] real time response

2017-05-24 Thread Alan Gauld via Tutor
On 23/05/17 21:07, Michael C wrote: > def do_stuff: > blah > check() > blah > check() > blah > check() > blah > > and then either break or return if condition is met? > > But that just isn't responsive enough. Is there a way to make function > check for the ev