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

bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720) #29720

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

tiran
Copy link
Member

@tiran tiran commented Nov 23, 2021

Signed-off-by: Christian Heimes <christian@python.org>
[ndbm], [],
[gdbm], [have_gdbm_dbmliborder=yes],
[bdb], [],
[with_dbmliborder=error]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd just put AC_MSG_ERROR here, avoiding the AS_VAR_IF below, but I'm fine with this variant as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried it. For unknown reasons it does not work. I get a bunch of shell error messages when the error case is triggered.

Comment on lines +3380 to +3381
as_save_IFS=$IFS
IFS=:
Copy link
Contributor

Choose a reason for hiding this comment

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

BTW, why do we save IFS here? AFAICS, there's nothing touching it, but I may be mistaken.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm saving and setting IFS here so the for loop uses : as a field separator.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, just found it in the man page. Learned something new today.

@tiran tiran changed the title bpo-45847: Port _gdbm to PY_STDLIB_MOD bpo-45847: Port _gdbm to PY_STDLIB_MOD (GH-29720) Nov 23, 2021
@tiran tiran merged commit 9cf5646 into python:main Nov 23, 2021
@tiran tiran deleted the bpo-45847-gdbm branch November 23, 2021 21:58
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants