Aug-28-2019, 05:27 AM
i run into this problem a lot. i'm writing a new script that does some major stuff like create lots of processes on my laptop for so purpose or downloads a bunch files or creates lots of a cloud resource. the script is done (roughly) and i want to test it out. but some of the call can be very dangerous if the script misbehaves. so what i like to do is comment out the dangerous functions for a while until i am sure it will call them appropriately. what i run into is that these calls were coded to assign results to a variable. when i comment the line,the variable is not assigned, later code that uses that variable will fail. in C at least the variable continues to exist even if it has a wrong value. i wish python had some way to easily deal with this on one line, keeping the variable but not doing the action.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.