[issue20150] API change in string formatting with :s option should be documented in What's New.

2018-03-06 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

I believe this has been added to the 3.4 What's New already:

object.__format__() no longer accepts non-empty format strings, it now raises a 
TypeError instead. Using a non-empty string has been deprecated since Python 
3.2. This change has been made to prevent a situation where previously working 
(but incorrect) code would start failing if an object gained a __format__ 
method, which means that your code may now raise a TypeError if you are using 
an 's' format code with objects that do not have a __format__ method that 
handles it. See bpo-7994 for background

Closing as resolved.

--
nosy: +csabella
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20150] API change in string formatting with :s option should be documented in What's New.

2014-01-06 Thread Eric V. Smith

Eric V. Smith added the comment:

Oops, I missed the should be documented part of your message. That's true, 
and I'll leave this open. But I'll change it to a doc request and assign it 
accordingly.

--
assignee: eric.smith - docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python
resolution: invalid - 
status: closed - open
title: API breakage in string formatting with :s option - API change in string 
formatting with :s option should be documented in What's New.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20150
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com