Front End Web Developer Question:
Please tell me what is a Thread-Local object in Python Flask?
Answer:
Flask uses thread local objects internally so that user don’t have to pass objects around from function to function within a request in order to stay threadsafe. This approach is useful, but it requires a valid request context for dependency injection or when attempting to reuse code which uses a value pegged to the request.
Previous Question | Next Question |
Tell me some Common Ie6 Bugs And How You Dealt With Them? | Tell me a time that you used Prototypal OO in JavaScript? |