Skip to content

Conversation

fabianp
Copy link

@fabianp fabianp commented Feb 28, 2011

A couple of fixes that 2to3 could not handle. These deal with some of the
most obscure parts of joblib, hopefully you'll find a more elegant solution.

  • in joblib.my_exceptions: exception module has been removed
    somewhere between 3.1 and 3.2, so I just parse the builtins.
  • in joblib.numpy_pickle : Unpickler object has no attribute
    dispatch, so I use the private class _Unpickler. I ignore if it
    could be implemented using any of the Unpickler methods [0].

[0] http://docs.python.org/release/3.1.3/library/pickle.html#pickle.Unpickler

A couple of fixes that 2to3 could not handle:

  * in joblib.my_exceptions: exception module has been removed
    somewhere between 3.1 and 3.2, so I just parse the builtins.

  * in joblib.numpy_pickle : Unpickler object has no attribute
    dispatch, so I use the private class _Unpickler. I ignore if it
    could be implemented using any of the Unpickler methods [0].

[0] http://docs.python.org/release/3.1.3/library/pickle.html#pickle.Unpickler
@fabianp
Copy link
Author

fabianp commented Feb 28, 2011

The second fix doesn't seem to be good since I get errors in test_numpy_persistence

ogrisel added a commit that referenced this pull request Jan 10, 2014
fcharras pushed a commit to fcharras/joblib that referenced this pull request Apr 29, 2018
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 29, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request May 6, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request May 12, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request Oct 24, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request Oct 24, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request Nov 16, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request Nov 21, 2022
fcharras added a commit to fcharras/joblib that referenced this pull request Feb 6, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Feb 15, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Feb 15, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Feb 16, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Feb 18, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 11, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 14, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 14, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 14, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 17, 2023
fcharras added a commit to fcharras/joblib that referenced this pull request Apr 17, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants