Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@inducer
Copy link
Owner

@inducer inducer commented Feb 19, 2025

assumptions="nels>=1 and nbf >= 1 and nels mod 4 = 0")

print(knl)
logger.info("%s", knl)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is kind of a weird pattern to me. Does logger.info(knl) not work?

Copy link
Contributor

@alexfikl alexfikl Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never actually tried that, but yeah, seems to work! :)) That would have been much easier to search and replace..

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I'm in love with these changes. print seems just fine to me; pytest suppresses stdout anyway. Could you explain the motivation a bit?

Copy link
Contributor

@alexfikl alexfikl Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't say I feel very strongly about this, so feel free to drop it. πŸ˜•

I mostly tried to use logging things because (1) they can write to stderr (by default, right?) or files and (2) add time stamps and things like that. But yeah, not sure those are super useful in tests..

@inducer inducer mentioned this pull request Feb 19, 2025
@inducer
Copy link
Owner Author

inducer commented Feb 19, 2025

Thanks for responding! I think I might just leave this here for now. Maybe it'll turn out later that we want it. πŸ™‚

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

Successfully merging this pull request may close these issues.

2 participants