Update `_dill.py` to use `co_linetable` for Python 3.10+ in place of `co_lnotab`
NONE
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7609). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
2025-06-12T13:49:24Z
https://github.com/huggingface/datasets/pull/7609#issuecomment-2966816572
https://api.github.com/repos/huggingface/datasets/issues/7609
IC_kwDODunzps6w1gc8
https://api.github.com/repos/huggingface/datasets/issues/comments/2966816572/reactions
2025-06-12T13:49:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2966816572
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
MEMBER
not 100% sure either, I tried removing unnecessary checks - let me know if they sound good to you otherwise I'll revert
2025-06-12T14:49:28Z
https://github.com/huggingface/datasets/pull/7609#issuecomment-2967154225
https://api.github.com/repos/huggingface/datasets/issues/7609
IC_kwDODunzps6w2y4x
https://api.github.com/repos/huggingface/datasets/issues/comments/2967154225/reactions
2025-06-12T14:49:28Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2967154225
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
MEMBER
I can't reproduce the warning anymore... 🤦🏻‍♂️

2025-06-13T14:01:05Z
https://github.com/huggingface/datasets/pull/7609#issuecomment-2970508932
https://api.github.com/repos/huggingface/datasets/issues/7609
IC_kwDODunzps6xDl6E
https://api.github.com/repos/huggingface/datasets/issues/comments/2970508932/reactions
2025-06-13T14:01:05Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2970508932
https://avatars.githubusercontent.com/u/45557362?v=4
https://api.github.com/users/qgallouedec/events{/privacy}
https://api.github.com/users/qgallouedec/followers
https://api.github.com/users/qgallouedec/following{/other_user}
https://api.github.com/users/qgallouedec/gists{/gist_id}
https://github.com/qgallouedec
qgallouedec
MDQ6VXNlcjQ1NTU3MzYy
https://api.github.com/users/qgallouedec/orgs
https://api.github.com/users/qgallouedec/received_events
https://api.github.com/users/qgallouedec/repos
https://api.github.com/users/qgallouedec/starred{/owner}{/repo}
https://api.github.com/users/qgallouedec/subscriptions
User
https://api.github.com/users/qgallouedec
public
MEMBER
Ah now I can reproduce!, and I can confirm that the warning is gone when you apply the change in this PR
2025-06-14T18:07:50Z
https://github.com/huggingface/datasets/pull/7609#issuecomment-2972940039
https://api.github.com/repos/huggingface/datasets/issues/7609
IC_kwDODunzps6xM3cH
https://api.github.com/repos/huggingface/datasets/issues/comments/2972940039/reactions
2025-06-14T18:07:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2972940039
https://avatars.githubusercontent.com/u/45557362?v=4
https://api.github.com/users/qgallouedec/events{/privacy}
https://api.github.com/users/qgallouedec/followers
https://api.github.com/users/qgallouedec/following{/other_user}
https://api.github.com/users/qgallouedec/gists{/gist_id}
https://github.com/qgallouedec
qgallouedec
MDQ6VXNlcjQ1NTU3MzYy
https://api.github.com/users/qgallouedec/orgs
https://api.github.com/users/qgallouedec/received_events
https://api.github.com/users/qgallouedec/repos
https://api.github.com/users/qgallouedec/starred{/owner}{/repo}
https://api.github.com/users/qgallouedec/subscriptions
User
https://api.github.com/users/qgallouedec
public
Not 100% about this one, but it seems to be recommended.

```
/fsx/qgallouedec/miniconda3/envs/trl/lib/python3.12/site-packages/datasets/utils/_dill.py:385: DeprecationWarning: co_lnotab is deprecated, use co_lines instead.
```
Tests pass locally. And the warning is gone with this change.

https://peps.python.org/pep-0626/#backwards-compatibility