Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

ser: Remove superfluous float.to_bits() calls #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrkline
Copy link

@mrkline mrkline commented Jul 21, 2020

float.to_be_bytes() has the same effect as float.to_bits().to_be_bytes()

They're presumably optimized to the same code, but the former's intent
is a bit clearer.

float.to_be_bytes() has the same effect as float.to_bits().to_be_bytes()

They're presumably optimized to the same code, but the former's intent
is a bit clearer.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant