All Questions
5 questions
-1
votes
1
answer
1k
views
Function returning dynamic value [closed]
Imagine you have a chain of functions calls, in which each function is taking the previous function's output as input for the next calculation in the chain.
Make an assumption that you are leading ...
0
votes
2
answers
243
views
How to query database effectively with the same program millions times
I got a proprietary software (something like a DMS system) to process the documents in file system. The software provide very limited API to manipulate the contents of the documents in DMS but it ...
4
votes
2
answers
263
views
Design of multi-test function to validate a string
Assume that I wish to perform an action on a string (e.g., print the string) if, and only if, the string first passes several tests. The tests are diverse (and may even be complex functions themselves)...
0
votes
1
answer
3k
views
Instantiate a class from a config file. Where should the parse function go?
I have a class in python that is instantiated from the values of a (json) config file. I was wondering what is the best practise to do that (if there is a best practise and is not just a matter of ...
2
votes
2
answers
2k
views
Final steps of wrapping up a Python script into a program
I finished building a Python script containing eight functions which download files, extracts them, manipulate and analyze their data and then produce graphs and export them into PNG files.
The ...