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

Let model.print() respect the same kwargs as print() #448

Open
Jacob-Stevens-Haas opened this issue Jan 3, 2024 · 0 comments
Open

Let model.print() respect the same kwargs as print() #448

Jacob-Stevens-Haas opened this issue Jan 3, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Jacob-Stevens-Haas
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

I want to flush the model.print() output. I expected it to work the same as the builtin print() function, but it doesn't expect a flush kwarg.

Describe the solution you'd like

model.print(flush=True) works the same as print("foo", flush=True)

Describe alternatives you've considered

sys.stdout.flush(), assuming model.print() is connected to sys.stdout

Additional context

Good first issue - if someone wants to take this up, lookup what other kwargs print might accept, too.

@Jacob-Stevens-Haas Jacob-Stevens-Haas added the good first issue Good for newcomers label Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant