Skip to content

Commit

Permalink
MAINT: Add a proper implementation for structured zerofill
Browse files Browse the repository at this point in the history
This reorganizes the generic traversal functions for structured
dtypes a bit (before it wasn't quite generic).

Then uses that for zerofilling.  We could get the two a bit closer
by also supporting `func==NULL` explicitly for clearing.
(I have not includes this here.)

The old `FillObjectArray` is still in use now, this is not ideal
and the new approach should be duplicated to add an "emptyfill"
(same semantics, normally just memset to 0, but for objects we
place an explicit `None` object).

This is a necessary follow-up to gh-23591.
  • Loading branch information
seberg committed Apr 20, 2023
1 parent e20f110 commit 534c2e5
Show file tree
Hide file tree
Showing 6 changed files with 202 additions and 92 deletions.

0 comments on commit 534c2e5

Please sign in to comment.