Skip to content

Improve tzname_in_python2 decorator#811

Merged
pganssle merged 2 commits intodateutil:masterfrom
pganssle:improved_tzname
Sep 3, 2018
Merged

Improve tzname_in_python2 decorator#811
pganssle merged 2 commits intodateutil:masterfrom
pganssle:improved_tzname

Conversation

@pganssle
Copy link
Copy Markdown
Member

@pganssle pganssle commented Sep 2, 2018

This improves the ability to inspect wrapped tzname methods in Python 2
and removes an unnecessary function call (to the nested function) in
Python 3. From my measurements, this is about twice as fast in Python 3
and approximately the same speed in Python 2.

Pull Request Checklist

  • Changes have tests (N/A)
  • News fragment added in changelog.d. See CONTRIBUTING.md for details

pganssle added a commit to pganssle/dateutil that referenced this pull request Sep 2, 2018
This improves the ability to inspect wrapped tzname methods in Python 2
and removes an unnecessary function call (to the nested function) in
Python 3. From my measurements, this is about twice as fast in Python 3
and approximately the same speed in Python 2.
@pganssle pganssle added this to the 2.8.0 milestone Sep 2, 2018
@pganssle pganssle merged commit 49690ee into dateutil:master Sep 3, 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