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
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
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
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
==
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