Eric V. Smith added the comment: The case with 10000.__format__ is confusing the parser. It sees: <floating point number 10000.> __format__ which is indeed a syntax error.
Try: >>> 10000 .__format__(u'n') '10000' or: >>> (10000).__format__(u'n') '10000' ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com