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

support for use outside of a context #16

Closed
gilesknap opened this issue Dec 31, 2020 · 2 comments
Closed

support for use outside of a context #16

gilesknap opened this issue Dec 31, 2020 · 2 comments

Comments

@gilesknap
Copy link
Contributor

gilesknap commented Dec 31, 2020

It would be useful to support use without a context

e.g.

client =  Client("localhost", 25701, passwd="x")
client.fill(bounds.start, bounds.end, "air", FillMode.REPLACE)
client.close()

This makes it easy to use client in an ipython session which is very useful for experimentation. (I have got around this by calling _enter_ manually)

@conqp
Copy link
Owner

conqp commented Dec 31, 2020

I think this is doable. I personally use the with statement in interactive sessions as well, but I can see your point. Maybe I'll even get it done this year. ;)

@conqp
Copy link
Owner

conqp commented Dec 31, 2020

Delegated to: conqp/rcon#1

@conqp conqp closed this as completed Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants