I just found sys.float_repr_style is configured as "legacy" in Python 2.7 
runtime of GAE.
Which may be a surprise for most users.

The full discussion can be found here.
https://stackoverflow.com/questions/51851578/why-does-reprfloat-return-more-digits-on-google-app-engine-than-others

Is there any strong motivation to set "legacy" other than "short"?

For me I have at lease 3 reasons to sit with "short"
1. To keep consistent with other platforms. (Python 2.7 default is "short")
2. To keep consistent with SDK
3. To get shorter string when dumps to json.

Actually the 3rd one makes most sense for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/23b614e0-fa71-42f6-801b-9b6898396fb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengin... limin xiao

Reply via email to