Skip to content

Instantly share code, notes, and snippets.

@ctb
Created October 24, 2020 16:03
Show Gist options
  • Save ctb/a839b5989e7fb6fb2750bb8b41000575 to your computer and use it in GitHub Desktop.
Save ctb/a839b5989e7fb6fb2750bb8b41000575 to your computer and use it in GitHub Desktop.
import numpy
# works fine
numpy.array([5, 6, 7, 8], dtype=numpy.uint64)
# fails
numpy.array(set([5, 6, 7, 8]), dtype=numpy.uint64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment