Closed anoetos closed 9 years ago
also getattr ran into infinite recursion in python3, breaking copy.deepcopy, you can try by running
from natu.units import K
import copy
v = 1.*K
w = copy.deepcopy(v)
print(w)
so i added a check for existence of '_value'-attribute used to delegate the unknown attribute requests to.
@anoetos, thanks for your encouragement and for the fixes. I'm on vacation and may not get back to this for a while, so I'll just go ahead and approve the pull request.
@kdavies4 hello, missing import of reduce caused following crash in python3
added import of reduce in core.py source file to make it work:
i would also like to take the opportunity to say "thank you" for sharing this wonderful library =)