Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
So, we have had this: The 1000% Speedup, or, the stdlib sucks. It demonstrates a rather bad bug that is probably costing the universe a load of cycles even as we speak. It's fixed now, which is great.
So what parts of the standard library have you noticed to be evil?
I would expect all the responsible people to match up an answer with a bug report (if suitable) and a patch (if superman).
The rexec module has so many security holes in it that it's almost useless.
(since this is a different module, placing it in a different answer)
cgitb has some weird threading issues. See this bug report.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 months ago.
Improve this question
What are some acceptable use cases for using while true. I’ve heard that it’s not good practice to use while true and break. For simple use cases like let’s say a rps game, would it be worth using. If not, I’m considering to use boiler plate code.
You can use while(True) in such conditions when you need to make the code running until interrupted by the person running the code.
A use case can be fee submitting system. The program needs to be running for the entire day. There are a lot of other use cases too.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am learning Django.
I came across the term "contrib" but I don't know what it actually means
It obviously seems from the word "contribution" but why is it named like that?
Thank you
Contrib name is for software that has been contributed to the project,
but which might not actually be maintained by the core developers.
Naming it "contrib" or "Contrib" is a long-established convention, but
there's really nothing special about the name, and it's usually only
used by fairly large projects. Incase of Django it's a package that
contains some of the common functionality required by in web
development [answer copied from below links]
Batteries included is a jargon that refers to a tool that comes packed with stuff that can get you going immediately.
P.S for more details have a look here and first few lines here
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I just want to know if it's possible to use WHMCS with Django framework ?
Thank in advance !
Yes, it is most definitely possible, but your question lacks some clarity... Aside from the fact that everything is possible if you really put your mind to it (except time travel - I tried), you can use some of the libraries that nice people have written for nice people like you. Some examples:
https://github.com/jawr/django-whmcs
https://pypi.python.org/pypi/pywhmcs/0.0.2
You will definitely run into problems with newer versions of WHMCS and Django since the libraries haven't been updated since the stone age - but you have something to build on. That often counts for more than you can expect.
But TL;DR (answer in the same style as the question): Yes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm working on a program, where in some part of it, it needs to listen to the OP for when files are created/saved, so I can work on said file.
I know the basic concept of hooking, but I don't know exactly how to implement it in this specific use(I know how to attach a hook to a specific PID, but here I need to listen to all processes and see if one of them is creating a file).
I'm using pydbg for my hooking needs, but if your answer uses something different, feel free to still answer.
Thanks :)
It seems you need something like watchdog, pyinotify or python-inotify. You can also see this SO question for other options.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
is PEP8 simply a style guide, or does it actually help the interpreter make optimizations to run your code faster? I'm simply curious since I really like PEP8 and wanted to know of any other benefits other than more readable code.
There is a single item in PEP8 that clearly has potential performance consequences:
Code should be written in a way that does not disadvantage other implementations of Python (PyPy, Jython, IronPython, Cython, Psyco, and such).
That is, PEP8 recommends that code be written such that it performs well across a variety of Python implementations. This is a bit hand-wavy, of course (do you have to try all the available implementations?).
Other than that, nothing in PEP8 stands out as likely to impact performance or anything measurable apart from the storage space required for the code itself (e.g. four-space indentation).