New submission from Mark Dickinson <dicki...@gmail.com>:

Proposal:  make the str of a float (or complex number) identical to the repr of 
a float (or complex number), in Python 3.2.  This idea came up a couple of 
times at EuroPython, and generally met with approval.

An open question: what should be done on platforms that don't support the short 
float repr?  In practice, I don't think this matters too much:  it's difficult 
to find such platforms.  The simplest thing to do would be to make __str__ 
identical to __repr__ on all platforms.

This change *will* inevitably break code;  the question is whether this level 
of breakage is acceptable for 3.1 -> 3.2.

I'll also bring this up on the python-dev mailing list.

----------
assignee: mark.dickinson
components: Interpreter Core
messages: 111268
nosy: eric.smith, mark.dickinson
priority: normal
severity: normal
stage: needs patch
status: open
title: Make float.__str__ behave identically to float.__repr__
type: feature request
versions: Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9337>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to