Skip to content

Conversation

@pganssle
Copy link
Member

For the upcoming 2.7.0 release, I think it's important for at least tz.gettz to return the same zone for the same inputs unless otherwise specified.

This PR makes tzstr a singleton, adds caching to tz.gettz and adds the .instance alternate constructor for tzoffset and tzstr.

I did not bother with a .instance alternate constructor for tzutc, because the semantics of tzutc are not affected by inter- and intra-zone comparisons (technically true of tzoffset as well, too).

@pganssle pganssle added this to the 2.7.0 milestone Mar 11, 2018
@pganssle
Copy link
Member Author

This partially satisfies #342

@pganssle pganssle mentioned this pull request Mar 11, 2018
@pganssle pganssle merged commit 1a7ebd7 into dateutil:master Mar 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant