On Sun, Apr 20, 2014 at 4:46 AM, Dimitri <
dimitri.pa...@gmail.com> wrote:
> The code posted above breaks compatibility.
...
> I wish pydicom had returned DA, DT and TM as datetime objects from the
> start. It's too late now, compatibility cannot be broken, can it?
Compatibility can certainly be broken; it has in the past. We're
still running 0.9.6 because something in 0.9.8 didn't work for us out
of the box, and we haven't felt the need to upgrade (sadly, I don't
recall what it actually was that was giving us trouble).
I'm not sure if the project uses Semantic Versioning[1] or not, but
this could be handled by announcing that the project will be using SV,
cutting a 1.0.0 with the desired behavior, and clearly stating what
the compatibility breaking change was in the release notes (see points
4 and 5 on the page linked below).
I would recommend that if if a change like this is going to go into
the project, that the pytz[2] project be looked into to make sure that
the problems that it solves aren't going to be issues for this
project. I'm not an expert, but the engineer who was the expert at my
last position swore by pytz for fixing whatever the deficiency was in
the stdlib datetime implementation.
Cheers,
Eli
[1] -
http://semver.org/
[2] -
http://pytz.sourceforge.net/