Apple pricing - it was cheaper for me to do a 100 mile round trip to get the laptop charger that I left at work than to buy a new one. I still have 3 more opportunities to forget it before I approach break-even. I just hope I don't have to use them!
also , I would like to know , if we can pass objects as a command line argument from one script to another in python . say script1 calls script 2 , via os.system('python script2 arg1 arg2 ..) as such, can one of the command line arguments be an python object
@arve in short, passing actual Python objects (as oppossed to their serializations) between different runtimes is very difficult (/impossible?) regardless of method.
@matszwecja - thanks. i am relatively new to python. unfortunately, the code i'm working on right now, i have to pass a user object with user credentials from one script to another. and i was wondering , if i can simply pass the user object. not sure, if serializing the user object and passing the authentication token as string from one script to another is safe
however, both scripts will run in the same container. so may be it is ok
@arve There isn't much to do. The subprocess has various means to write to stdin - for example, you can directly pass a string as input to subprocess.run.
@Aran-Fey Those are exposed at least on UNIX as well.
Security is really though to get right, especially so in a language you are new to. And no system is gonna be 100% secure. It's important to get your expectations right when working on securing a system
@arve what is the ultimate fate of your docker container? Note that the filesystem of containers is transparent so .env would be visible if you distribute it
@MisterMiyagi I remember you asking if it was really true that you have to hold strong references to asyncio tasks. I'm currently looking through the asyncio source code and I can tell you that asyncio internally definitely doesn't do that
(and yes, I'm sure that the task survives, because it annoys me with a "task exception was never retrieved" warning when the program exits)
@Aran-Fey I did finally get a real-life example, actually. While the inter-task events (say, a lock) are safe, the event loop events (say, waiting for a socket) are not. Tasks keep their events and thus each other alive, but the event loop happily forgets about any events requested from it.