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

Fix rename by removing has exported binding to haskey #694

Merged
merged 5 commits into from
Oct 10, 2020
Merged

Fix rename by removing has exported binding to haskey #694

merged 5 commits into from
Oct 10, 2020

Conversation

musm
Copy link
Member

@musm musm commented Oct 7, 2020

No description provided.

@musm musm requested a review from jmert October 7, 2020 04:09
src/HDF5.jl Outdated Show resolved Hide resolved
src/deprecated.jl Outdated Show resolved Hide resolved
@musm
Copy link
Member Author

musm commented Oct 8, 2020

Updated.

I kinda dont' get the purpose of https://confluence.hdfgroup.org/display/HDF5/H5A_EXISTS_BY_NAME compared to https://confluence.hdfgroup.org/display/HDF5/H5A_EXISTS

src/HDF5.jl Outdated Show resolved Hide resolved
test/plain.jl Show resolved Hide resolved
test/runtests.jl Outdated
@@ -4,6 +4,23 @@ using Pkg

println("HDF5 version ", HDF5.h5_get_libversion())

# Copied over from JuliaLang/Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Why copy this? As far as I can tell, Test has exported GenericString since v0.5:

$ grep -ne 'export.*GenericString' stdlib/Test/src/Test.jl
23:export GenericString, GenericSet, GenericDict, GenericArray, GenericOrder
$ git log --oneline --no-patch -L 23,23:stdlib/Test/src/Test.jl
744ead41cb fix maximum on generic orders (#30441)
66ef347631 Base.Test: add GenericArray type and use it in test/random.jl (#22790)
c6799e6437 enable rand(::Union{AbstractSet,Associative}) (#22228)
0a61406e5a GenericString: move into Base.Test and export; rm CharString.
$ contrib/commit-name.sh 0a61406e5a
0.5.0-dev+4653

Copy link
Member Author

@musm musm Oct 9, 2020

Choose a reason for hiding this comment

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

Thanks, didn't realize it was exported

@jmert
Copy link
Contributor

jmert commented Oct 9, 2020

This will also need some updates to the docs: https://juliaio.github.io/HDF5.jl/dev/#Getting-information

@jmert
Copy link
Contributor

jmert commented Oct 9, 2020

I kinda dont' get the purpose of https://confluence.hdfgroup.org/display/HDF5/H5A_EXISTS_BY_NAME compared to https://confluence.hdfgroup.org/display/HDF5/H5A_EXISTS

I'm guessing there's some internal library overhead which can be avoided if with the two-names version provided by H5A_EXISTS_BY_NAME versus the one-name H5A_EXISTS since it is maybe skipping some processing when you don't first have to create a valid dataset handle that can be returned to the user.

@musm
Copy link
Member Author

musm commented Oct 10, 2020

Many thanks for the review

@musm musm mentioned this pull request Oct 10, 2020
jmert added a commit that referenced this pull request Oct 29, 2020
#694 deprecated exists, but that PR left it within the explicit export list so the deprecation binding still worked with the false final argument. Then in #701 it was removed from the main export list, so the deprecation itself needs to do the [implicit] export for the deprecation to be useful to downstream users.

Fixes #721.
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