[
https://issues.apache.org/jira/browse/ARROW-1250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097836#comment-16097836
]
Phillip Cloud commented on ARROW-1250:
--------------------------------------
The thing here is that it's hard to enforce *only* this usage. I removed this
from the public API because it's too easy to have an unpleasant experience with
these types. They are really only for wrapping their C++ counterparts and about
the only thing useful you can do with them within Python is type checking. I
think these should remain outside of the top level public API and be made
public in one module deep (maybe {{pyarrow.types}}?).
> [Python] Define API for user type checking of array types
> ---------------------------------------------------------
>
> Key: ARROW-1250
> URL: https://issues.apache.org/jira/browse/ARROW-1250
> Project: Apache Arrow
> Issue Type: New Feature
> Components: Python
> Reporter: Wes McKinney
>
> We have some subclasses of {{pyarrow.lib.DataType}}, but we haven't been
> designing with the intent of writing {{isinstance(arr.type,
> pyarrow.TimestampType)}}. We should think about the public API for such
> type-checking or other type of schema validation.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)