You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cmp function is gone. Importing it from past (which is part of the future package) is causing deprecation warnings all over the place due to PythonCharmers/python-future#551. The imp module will be removed in Python 3.10.
Instances where cmp are used should be rewritten and the cmp import removed.
This is also -as far as I can tell- the only remaining* reason for the future package dependency, which could then potentially be dropped. This would be a good thing as the future package is a bit special.
(* There are two range imports from past in prime, which I'll address separately.)
The text was updated successfully, but these errors were encountered:
Anthchirp
added
the
housekeeping
Things which would make cctbx tidier - and easier to understand for regular Python programmers
label
Jul 7, 2020
Use plain 'range' when in a context where an iterator is sufficient,
and explicitly convert to a list otherwise.
Remove one unnecessary intermediate list construction in a 'max()' call,
where an iterator is sufficient.
(cf. #493)
Use plain 'range' when in a context where an iterator is sufficient,
and explicitly convert to a list otherwise.
Remove one unnecessary intermediate list construction in a 'max()' call,
where an iterator is sufficient.
(cf. #493)
The
cmp
function is gone. Importing it frompast
(which is part of thefuture
package) is causing deprecation warnings all over the place due to PythonCharmers/python-future#551. Theimp
module will be removed in Python 3.10.Instances where
cmp
are used should be rewritten and thecmp
import removed.This is also -as far as I can tell- the only remaining* reason for the
future
package dependency, which could then potentially be dropped. This would be a good thing as thefuture
package is a bit special.(* There are two
range
imports frompast
inprime
, which I'll address separately.)The text was updated successfully, but these errors were encountered: