Skip to content

Fix bugs in jackhammer - #516

Merged
tristpinsm merged 2 commits into
masterfrom
tpm/jackhammer-tty
Aug 26, 2026
Merged

Fix bugs in jackhammer#516
tristpinsm merged 2 commits into
masterfrom
tpm/jackhammer-tty

Conversation

@tristpinsm

Copy link
Copy Markdown
Contributor
  1. Parts of the script are run in docker containers. This allocates a TTY by default which messes with standard output afterwards. Disable this except for interactive sessions.
  2. Remove mutable defaults trap. fixes Mutable defaults in jackhammer functions #515

@msilvafe msilvafe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. I love when the python documentation calls me a neophyte.

@tristpinsm

Copy link
Copy Markdown
Contributor Author

Looks good. I love when the python documentation calls me a neophyte.

yeah I only learned about this from Brian a few months ago! That FAQ entry is pretty smug

@BrianJKoopman BrianJKoopman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good! Just one small suggestion, which you can change if you'd like, otherwise merge away.

Comment thread sodetlib/hammers/jackhammer.py Outdated
Comment thread sodetlib/hammers/jackhammer.py Outdated
@tristpinsm
tristpinsm merged commit a9d7c55 into master Aug 26, 2026
2 checks passed
@tristpinsm
tristpinsm deleted the tpm/jackhammer-tty branch August 26, 2026 19:56
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.

Mutable defaults in jackhammer functions

3 participants