Did I miss something? Where was there an F word? I did say #yuck# but nowhere did I drop the f-bomb.
My point is, shelling out to bash sounds like a complete hack. Not to mention that if someone were capable enough to cause your code to segfault, they could be left with elevated privileges on the target system...if the code were in python and it segfaulted, so would their access... On Mon, Jun 11, 2012 at 10:25 AM, Tomas Neme <[email protected]> wrote: > > > what the difference between calling Python based API with some > functionality > > instead of calling bash script with Popen if both will do the same > > functional work? > > Try to Explain your point of view instead of using f... words., cause > THAT > > is definitely unprofessional, cheers. > > easier to debug, cleaner code, more cross-platform... I wanted to do that > too, once, but I also came to the conclusion it wasn't a good idea. > > And.. while you're right, "ugly" is a perfectly good reason for not doing > something, it's in the very first line of the Zen of Python: > > lacrymology@Roller:boilerplate$ python -c 'import this' > The Zen of Python, by Tim Peters > > Beautiful is better than ugly. > Explicit is better than implicit. > Simple is better than complex. > Complex is better than complicated. > Flat is better than nested. > Sparse is better than dense. > Readability counts. > Special cases aren't special enough to break the rules. > Although practicality beats purity. > Errors should never pass silently. > Unless explicitly silenced. > In the face of ambiguity, refuse the temptation to guess. > There should be one-- and preferably only one --obvious way to do it. > Although that way may not be obvious at first unless you're Dutch. > Now is better than never. > Although never is often better than *right* now. > If the implementation is hard to explain, it's a bad idea. > If the implementation is easy to explain, it may be a good idea. > Namespaces are one honking great idea -- let's do more of those! > > ****** > > with that out of the way, also, whatever it is you want to do, it sounds > blocking and time-consuming, which is something you probably don't want in > a template. > > I recommend you explain what you need to do, and you'll get a > recommendation on how to do it in a more pythonic way > > -- > "The whole of Japan is pure invention. There is no such country, there are > no such people" --Oscar Wilde > > |_|0|_| > |_|_|0| > |0|0|0| > > (\__/) > (='.'=)This is Bunny. Copy and paste bunny > (")_(") to help him gain world domination. > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > -- http://www.sudovi.com/ http://www.twitter.com/lifewithryan http://www.thecommontongue.com http://www.lifewithryan.com/ -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
