pitrou commented on a change in pull request #8255:
URL: https://github.com/apache/arrow/pull/8255#discussion_r500886938
##########
File path: python/pyarrow/__init__.py
##########
@@ -207,6 +207,28 @@ def show_versions():
import pyarrow.types as types
+
+if _sys.version_info >= (3, 7):
+ def __getattr__(name):
+ _msg = ("'pyarrow.{0}' is deprecated and will be "
+ "removed in a future version. Use pickle or the pyarrow IPC "
+ "functionality instead.")
+ if name == "SerializationContext":
+ _warnings.warn(_msg.format(name), DeprecationWarning)
Review comment:
I think we use `FutureWarning` instead of `DeprecationWarning`? (because
the latter is silent by default)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]