[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2014-02-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset f56b98143792 by R David Murray in branch 'default': whatsnew: object.__format__ raises TypeError on non-empty string. http://hg.python.org/cpython/rev/f56b98143792 -- ___ Python tracker

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perhaps the versionchanged tag for format() is more suitable than versionadded. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-19 Thread R. David Murray
R. David Murray added the comment: Since Eric indicated he'd close this unless someone felt strongly that the status quo should be changed, and the arguments are in favor of *maintaining* the status quo, I'm going to close this for him :) -- nosy: +r.david.murray resolution: - fixed

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-13 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: +1 to Terry for If its class does not override .__format__, then it seems that it should act the same as a direct object instance -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: @Eric: when you say: If the type of the object really is object, then it can use string formatting. It's only for non-objects that I want to add the error.. I am confused. Let me demonstrate what I'm thinking according to the statement above. First let

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: Please replace integer.__format__(s) with integer.__format__('') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Eric V. Smith
Eric V. Smith added the comment: But int has its own __format__ method, so this does not apply. Per the title of this issue, this only refers to object.__format__. For example: This works now, and will continue working: format(2, '1') '2' This is currently an error, and will remain an

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-05-12 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: It's this case that is currently an error, but it need not be: format(object(), '1') Traceback (most recent call last): File stdin, line 1, in module TypeError: non-empty format string passed to object.__format__ I believe that should continue to remain an

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2013-02-15 Thread Ankur Ankan
Changes by Ankur Ankan ankuran...@gmail.com: -- nosy: +Ankur.Ankan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___ Python-bugs-list

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Viktor Ershov
Viktor Ershov added the comment: As I can see this is already implemented in 3.4 -- nosy: +asvetlov, krinart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset d91c14788729 by Andrew Svetlov in branch 'default': Issue #9856: Replace deprecation warinigs to raising TypeError in object.__format__ http://hg.python.org/cpython/rev/d91c14788729 -- ___ Python

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Committed. Thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f6ec67636b8 by Andrew Svetlov in branch 'default': Add NEWS and docs for #9856 http://hg.python.org/cpython/rev/2f6ec67636b8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Updated NEWS and docs -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___ Python-bugs-list mailing

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Eric V. Smith
Eric V. Smith added the comment: The more I think about this, the more overly restrictive I realize it is. If the type of the object really is object, then it can use string formatting. It's only for non-objects that I want to add the error. I'll re-open it and give it some more thought.

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-12-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Ok -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-10-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: -berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2012-02-14 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2011-12-12 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berkerpeksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___ ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2011-12-12 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Patch is ready for python 3.4 :-) -- keywords: +patch nosy: +flox Added file: http://bugs.python.org/file23936/issue9856_python-3.4.diff ___ Python tracker rep...@bugs.python.org

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2011-03-13 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9856 ___

[issue9856] Change object.__format__(s) where s is non-empty to a TypeError

2011-03-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Next step is to make it a TypeError in 3.4. -- priority: normal - release blocker title: Change object.__format__(s) where s is non-empty to a DeprecationWarning - Change object.__format__(s) where s is non-empty to a TypeError versions: