Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context locals #12

Open
dag opened this issue Jan 16, 2011 · 1 comment
Open

Context locals #12

dag opened this issue Jan 16, 2011 · 1 comment

Comments

@dag
Copy link

dag commented Jan 16, 2011

Yea, I keep thinking of things that are in Werkzeug that are neat :D while I don't want to depend on the whole of Werkzeug for something non-WSGI.

Would be useful to have thread and process safe stacks á la Werkzeug, for example in Attest to count assertions "per run()" and in the future I might need to keep a context-local "configuration" for e.g. whether to evaluate function calls or not.

(Hm, I wonder if it would mess with your using Attest if Attest used Brownie?)

@DasIch
Copy link
Owner

DasIch commented Jan 16, 2011

This isn't possible with processes as they don't share memory. A context is usually a thread or greenlet.

Anyway I'm a little bit unsure on whether to add this or not, I will have to think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants